Difference between revisions of "RemoveSpell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>RobRendell
(Added a comment about the return value of RemoveSpell, which actually returns something useful.)
imported>Vswe
m (Added Search Terms)
 
(12 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Removes the specified spell from the caller's spell list.  This function returns 1 if the spell is successfully removed from the caller, and 0 if the spell cannot be removed (e.g. if they don't have the spell in their spell list in the first place)
'''Syntax:'''
'''Syntax:'''
  RemoveSpell SpellID
  RemoveSpell SpellID
'''Example:'''
 
'''Examples:'''
  RemoveSpell DisTickleBritch
  RemoveSpell DisTickleBritch


 
If Removespell WeirdAbility == 0  ; Toggle Ability on/off
Removes the specified spell from the caller's spell list. This function returns 1 if the spell is successfully removed from the caller, and 0 if the spell cannot be removed (e.g. if they don't have the spell in their spell list in the first place)
  Addspell WeirdAbility
  Endif


==See Also==
==See Also==
[[AddSpell]]
* [[RemoveSpellNS]] - Spamless version of command (OBSE 15).
 
* [[AddSpell]]
* [[Message Spam]] - Avoiding message spam.


[[Category: Functions]]
[[Category: Functions]]
[[Category:Functions (CS)]]
[[Category: Functions (CS 1.0)]]
[[Category: Actor Functions]]
[[Category: Actor Functions (CS 1.0)]]
[[Category: Magic Functions]]
[[Category: Magic Functions]]
[[Category: Magic Functions (CS 1.0)]]
<!-- Begin Search Terms
Remove
Spell
End Search Terms -->

Latest revision as of 12:21, 20 June 2008

Removes the specified spell from the caller's spell list. This function returns 1 if the spell is successfully removed from the caller, and 0 if the spell cannot be removed (e.g. if they don't have the spell in their spell list in the first place)

Syntax:

RemoveSpell SpellID

Examples:

RemoveSpell DisTickleBritch
If Removespell WeirdAbility == 0  ; Toggle Ability on/off
  Addspell WeirdAbility
Endif

See Also[edit | edit source]