@NPCActWander
From SphereWiki
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). |