Difference between revisions of "SelectPlayerSpell"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(note about non-MI arguments)
imported>Haama
(→‎Notes: When the roiginal was a scroll...)
Line 7: Line 7:
== Notes ==
== Notes ==
* Using a non-magic item argument for this function causes this function to act as a [[Return]].
* Using a non-magic item argument for this function causes this function to act as a [[Return]].
* If the player originally had an enchanted scroll selected and this function is used to force-select a spell, the player won't be able to select that scroll again until they change their spell (and if you look at the spell menu, they will seem to select both the original scroll and the new spell). You can get around this by selecting another enchanted scroll instead of a spell.


[[Category: Functions]]
[[Category: Functions]]

Revision as of 21:17, 8 April 2008

Syntax:

SelectPlayerSpell ref:MagicItem


Use to force the player to select the specified spell or scroll as his or her active magic.

Notes

  • Using a non-magic item argument for this function causes this function to act as a Return.
  • If the player originally had an enchanted scroll selected and this function is used to force-select a spell, the player won't be able to select that scroll again until they change their spell (and if you look at the spell menu, they will seem to select both the original scroll and the new spell). You can get around this by selecting another enchanted scroll instead of a spell.