Difference between revisions of "Set"
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 | |||