Constrain attribute
bluebyu25
Member Posts: 500
Im not sure, but I think this is the behavior that I need?
I'm trying to make it to where game.misses cannot equal anything lower than 0.
I'm trying to set it up to where every 1,000 points a player gets a "miss" taken off his misses (and I know how to do that) I just dont want the total misses to become -1 if he gets 1,000 points and hasnt missed any yet.
I'm trying to make it to where game.misses cannot equal anything lower than 0.
I'm trying to set it up to where every 1,000 points a player gets a "miss" taken off his misses (and I know how to do that) I just dont want the total misses to become -1 if he gets 1,000 points and hasnt missed any yet.
Comments
that way it wil only subtract when its more then zero like you want
cheers
Sorry pic isnt working but what I have is:
RULE: when game.score is = game.score+1000
then
RULE: game.misses >0
then change attribute game.misses to -1
when game.misses > 0
then change attribute game.misses to game.misses -1
That should subtract only when it's above zero. The way you had it, it sounds like it would insta-change it to -1 every time.