Difference between revisions of "@CallGuards"
From SphereWiki
MrSugarCube (talk | contribs) (Created page with '==Description== This trigger fires when a character calls for the guards to attack a criminal. Fires on: * Characters ==References== The following object references are e...') |
m (→References) |
||
Line 17: | Line 17: | ||
| [[I]] || The [[Characters|character]] calling for guards. | | [[I]] || The [[Characters|character]] calling for guards. | ||
|- | |- | ||
− | | [[REF1]] || The [[Characters|criminal]] who the | + | | [[REF1]] || The [[Characters|criminal]] who the guards are being called upon. |
|- | |- | ||
| [[SRC]] || The [[Characters|criminal]] who the guards are being called upon. | | [[SRC]] || The [[Characters|criminal]] who the guards are being called upon. | ||
|} | |} | ||
− | |||
==Arguments== | ==Arguments== |
Revision as of 15:26, 13 December 2012
Description
This trigger fires when a character calls for the guards to attack a criminal.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
ARGO | The guard character who is going to attack the criminal (if one exists in the area). |
I | The character calling for guards. |
REF1 | The criminal who the guards are being called upon. |
SRC | The criminal who the guards are being called upon. |
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 | The BASEID of the character to spawn as a guard. |
ARGN2 | O | If set to 1, a new guard will be spawned regardless of whether a nearby guard is available. |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | Prevents the guards from reacting. |