SPELLFLAGS

From AddictHelp
Revision as of 10:58, 20 November 2008 by Kahlan (talk | contribs) (New page: Spell scripts do not use flags. Flags typically determine when/how a script is triggered. Since spell scripts only have one way to be triggered, it behaves pretty simply. Description: ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Spell scripts do not use flags. Flags typically determine when/how a script is triggered. Since spell scripts only have one way to be triggered, it behaves pretty simply.

Description: This script is called when the spell it is attached

 to is cast.

NArg: unused. Return value: If the return value is 0, the spell casting is continued

 by the mud's code.  If the return value is 1, only the script is
 executed.

Variables:

 %caster% will be set to the person casting the spell.
 %victim% is set to the victim of the spell (if there is one).
 %object% is set to the the object the spell is cast on (if there is one).
 %spellnum% is the internal number of the spell.
 %spellname% is the name of the spell.
 %learned% is how well the spell has been practiced.