Difference between revisions of "RemoveSpell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
m (oh, and the See Also needed bullets.)
imported>DragoonWraith
m (→‎Notes: typo)
Line 13: Line 13:
==Notes==
==Notes==


*Using AddSpell to remove a spell to the player's repertoire will give a message informing the player of this. In certain situations, this can be very annoying, but using a call to a blank [[Message]] just before using AddSpell will prevent this. Like so:
*Using RemoveSpell to remove a spell to the player's repertoire will give a message informing the player of this. In certain situations, this can be very annoying, but using a call to a blank [[Message]] just before using AddSpell will prevent this. Like so:
<pre>Message ""
<pre>Message ""
player.RemoveSpell "spell ID"</pre>
player.RemoveSpell "spell ID"</pre>

Revision as of 11:58, 25 May 2007

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

Notes

  • Using RemoveSpell to remove a spell to the player's repertoire will give a message informing the player of this. In certain situations, this can be very annoying, but using a call to a blank Message just before using AddSpell will prevent this. Like so:
Message ""
player.RemoveSpell "spell ID"

See Also