Difference between revisions of "Set"

6 bytes added ,  11:43, 8 May 2006
m
no edit summary
imported>JOG
(set variable to <comparsion>)
imported>JOG
m
Line 55: Line 55:
*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.
*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
  set goodluck to player.Getav luck > 60


Does the same as
Does the same as


  if player.Getluck > 60
  if player.Getav luck > 60
   set goodluck to 1
   set goodluck to 1
  else
  else
Anonymous user