MUDL:has spell active

From WikiName
Revision as of 15:44, 8 November 2018 by Teker (talk | contribs) (Teker moved page MUDL:has spell to MUDL:has spell active)
Jump to: navigation, search


Summary

Function Name has_spell_active
Settable No
Returns Boolean


Parameter Options
Target (character), Spell (integer)


This function returns True if the Target is currently affected by the specified spell.


Example

setproc <mobile> # every_round
if (target(%c),
(
    if (!has_spell_active(target(%c), spell_id('blindness')),
    (
        msg_character(target(%c), '$N does something hideous!', %c),
    )),
    return(true)
}},

return(false)