Difference between revisions of "Set"

285 bytes added ,  10:42, 8 May 2006
set variable to <comparsion>
imported>JOG
m (Example for set and functions)
imported>JOG
(set variable to <comparsion>)
Line 51: Line 51:
  set b to 9
  set b to 9
  set a to b/5  + 0.5  ; will set "a" to '''2'''
  set a to b/5  + 0.5  ; will set "a" to '''2'''
*You can also use a comparsion as the "value". The variable will then be set either to 1 or 0 depending on whether the condition is true or not.
set goodluck to player.Getluck > 60
Does the same as
if player.Getluck > 60
  set goodluck to 1
else
  set goodluck to 0
endif




Anonymous user