This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "Scripting Tutorial: My Second Script"

Jump to navigation Jump to search
imported>Jeepcreep
imported>Jeepcreep
Line 219: Line 219:
       MessageBox "Your answer was wrong."
       MessageBox "Your answer was wrong."
       Cast Mg05FingerSpell15 Player
       Cast Mg05FingerSpell15 Player
       Set controlvar to -1
       Set controlvar to 0
     EndIf</pre>
     EndIf</pre>
Note the use of the [[Cast]] function.  (Advanced scripting information: Cast requires a calling object to work.  We did not include one in our script because it is an Object script, and will be attached to an object in the game.  The script will therefore default to the attached object when functions require a calling object.)
Note the use of the [[Cast]] function.  (Advanced scripting information: Cast requires a calling object to work.  We did not include one in our script because it is an Object script, and will be attached to an object in the game.  The script will therefore default to the attached object when functions require a calling object.)
Anonymous user

Navigation menu