Difference between revisions of "GetPlayerSpell"
MI
imported>DragoonWraith (renamed) |
imported>DragoonWraith (MI) |
||
(One intermediate revision by one other user not shown) | |||
Line 2: | Line 2: | ||
'''Syntax:''' | '''Syntax:''' | ||
GetPlayerSpell | (spell:ref) GetPlayerSpell | ||
Returns the player's active spell. | Returns the player's active spell. | ||
Line 9: | Line 9: | ||
ref spell | ref spell | ||
set spell to GetPlayerSpell | set spell to GetPlayerSpell | ||
player.Cast spell | player.Cast spell | ||
==Notes== | ==Notes== | ||
*Removing the active Spell should be done with caution. OBSE's developers have not found the player's spell list yet, so after you remove the active spell, GetActiveSpell will return 0 until the user selects a new spell. In the future it will always return the spell that will be cast, once we find that information. | *Removing the active Spell should be done with caution. OBSE's developers have not found the player's spell list yet, so after you remove the active spell, GetActiveSpell will return 0 until the user selects a new spell. In the future it will always return the spell that will be cast, once we find that information. | ||
*Racial powers can also be removed this way. | *Racial powers can also be removed this way. | ||
Line 20: | Line 18: | ||
==See Also== | ==See Also== | ||
*[[SelectPlayerSpell]] | *[[SelectPlayerSpell]] | ||
[[Category: OBSE Functions]] | [[Category: Functions]] | ||
[[Category: OBSE Magic Functions]] | [[Category: Functions (OBSE)]] | ||
[[Category: OBSE | [[Category: Magic Functions]] | ||
[[Category: Magic Functions (OBSE)]] | |||
[[Category: Magic Functions - Magic Item (OBSE)]] | |||
[[Category: Player Functions]] | |||
[[Category: Player Functions (OBSE)]] |