Skip to content

← Previous | Next →


globalCheck

Description

Checks if a global state for the NPC is already marked. If not marked, it sets the state and returns 1; if already marked, it returns 2.

Basic information

Name Type Possibilities
globalCheck both 2

Parameters

# Name Type Mandatory Description Multiple
1 k string Yes The key of the global state to check or set. No

Outputs

# Description
1 The global state was not marked and has been set.
2 The global state was already marked.

Example


  interaction 
    globalCheck quest_started 
      tell "The quest has just been marked as started." 
      tell "The quest was already marked as started." 

  behaviour 
    nothing