Difference between revisions of "SetNthEffectItemScript"

37 bytes added ,  20:41, 1 March 2008
EI
imported>Haama
(Created)
 
imported>DragoonWraith
(EI)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
SetNthEffectItemScript - sets the script for the specified scripted effect item.  Note that the CS doesn't have a variable type for a script, so you must assign the script editor id to a ref variable to use this function.
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
        (nothing) SetNthEffectItemScript scriptObjectID:ref magicItem:ref whichEffect:short
 
        (nothing) SetNthEIScript scriptObjectID:ref magicItem:ref whichEffect:short
'''Syntax:'''
(nothing) SetNthEffectItemScript scriptObjectID:ref magicItem:ref whichEffect:short
 
(nothing) SetNthEIScript scriptObjectID:ref magicItem:ref whichEffect:short
 
Sets the script for the specified scripted effect item.


==Notes==
==Notes==
* You have to assign the script to a reference variable first. Then use that variable in the function call.
*Note that the CS doesn't have a variable type for a script, so you have to assign the script editor id to a reference variable first. Then use that variable in the function call.


==See Also==
==See Also==
Line 14: Line 19:
[[Category:Magic Functions]]
[[Category:Magic Functions]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions (OBSE)]]
[[Category:Magic Functions - Effect Item (OBSE)]]