Difference between revisions of "@NPCActWander"
From SphereWiki
(Created page with "==Description== This trigger is called each step an NPC does while wandering. Fires on: * NPCs ==References== The following object references are explic...") |
|||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | This trigger is called each step an NPC does while wandering. | + | X branch only. This trigger is called each step an NPC does while wandering. |
Fires on: | Fires on: |
Latest revision as of 20:03, 28 April 2022
Description
X branch only. This trigger is called each step an NPC does while wandering.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
I | The NPC performing the action. |
SRC | The NPC performing the action. |
Arguments
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
Argument | In/Out | Description |
ARGN1 | IO | 0 if it will continue to wander, 1 if randomly deciding to stop, 2 if deciding to stop because
after looking around it found something interesting. |
ARGN2 | IO | 1 if it's returning to home, 0 otherwise. |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | stops decisions for this step, so it will not return to home, do another step or stop wandering (again, for this step). |