Skip to content

← Previous | Next →


setLocalState

Description

Sets a local state for the NPC related to a specific player.

Basic information

Name Type Possibilities
setLocalState interaction 1

Parameters

# Name Type Mandatory Description Multiple
1 k string Yes The key of the state to set. No
2 v any Yes The value to set for the given key. No

Outputs

# Description
1 The only result is 1.

Example


  interaction 
    setLocalState questComplete true 
      tell "Quest completion status has been set." 

  behaviour 
    nothing