Difference between revisions of "Set"

276 bytes added ,  03:58, 1 July 2006
no edit summary
imported>JOG
m
imported>JOG
Line 70: Line 70:
   set goodluck to 0
   set goodluck to 0
  endif
  endif
You can use arithmetic operations on a comparsion value, but when you do so you need to put the comparsion in parentheses:
set luckbonus to 50*(player.Getav luck > 60)
Does the same as
if player.Getav luck > 60
  set luckbonus to 50
else
  set luckbonus to 0
endif




Anonymous user