Difference between revisions of "@NpcActCast"
From SphereWiki
(Created page with "==Description== This trigger is fired when the NPC is about to select the spell to cast. Fires on: * Characters ==References== The following object references are expl...") |
|||
Line 28: | Line 28: | ||
| '''Argument''' || '''In/Out''' || '''Description''' | | '''Argument''' || '''In/Out''' || '''Description''' | ||
|- | |- | ||
− | | ARGN1 || IO || The spell being cast | + | | ARGN1 || IO || The spell being cast, this can be a spell not found in the NPC's spellbook. |
|- | |- | ||
| ARGN2 || O || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook. | | ARGN2 || O || If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook. |
Revision as of 19:10, 3 January 2023
Description
This trigger is fired when the NPC is about to select the spell to cast.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
ARGO | The current NPC's target. |
I | The NPC caster. |
SRC | The NPC caster. |
REF1 | The new target, this will override the target set on ARGO. |
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 spell being cast, this can be a spell not found in the NPC's spellbook. |
ARGN2 | O | If 1 the spell is being cast by a wand. (If the NPC is wielding a wand it has a 50% chance to cast the spell from the wand instead of the spellbook. |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | Interrupts the spell selection. |