← Previous | Next →
localCheck
Description
Checks if a local state for the NPC related to a specific player is already marked. If not marked, it sets the state and returns 1; if already marked, it returns 2.
| Name |
Type |
Possibilities |
| localCheck |
interaction |
2 |
Parameters
| # |
Name |
Type |
Mandatory |
Description |
Multiple |
| 1 |
k |
string |
Yes |
The key of the local state to check or set. |
No |
Outputs
| # |
Description |
| 1 |
1 if the local state was not marked and has been set. |
| 2 |
2 if the local state was already marked. |
Example
interaction
localCheck npc_greeted
tell "The NPC has just been greeted."
tell "The NPC was already greeted before."
behaviour
nothing