@NpcActCast

From SphereWiki
Revision as of 19:09, 3 January 2023 by Darksun84 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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
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.