SPELLFLAGS: Difference between revisions
Jump to navigation
Jump to search
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: ... |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
triggered, it behaves pretty simply. | triggered, it behaves pretty simply. | ||
Description: This script is called when the spell it is attached | 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 | NArg: unused. | ||
Return value: If the return value is 0, the spell casting is continued | |||
Variables: | 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. | |||
[[CATEGORY:Scripts]] | |||
Latest revision as of 10:59, 20 November 2008
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.