on spellcast

From Arx Libertatis Wiki
Jump to navigation Jump to search

The spellcast script event is sent by the caster to every entity (*) when a spell is cast. ^$param1 will be set to the spell name and ^#param2 is the caster level. With Arx Libertatis 1.3 or newer, ^$param3 holds the spell ID, which can be used with destroy script command to end the spell.

(*) For the Confuse (Rhaa Rune (decrease)Vista Rune (vision)) and Enchant object (Mega Rune (increase)Stregum Rune (magic)Cosum Rune (object)) spells, this event is only sent to the spell's target.