Modify variables in IF

Hello, im with a problem that does not let me sleep.
I have a life variable and dice variable. When the dice variable is at 1 to 3, the life variable loss 7 points. When the dice variable is at 4 to 7 then the dice variable loss 3 points and, finally, if the dice variable is at 8 to 10, the life variable does not change.
But i cannot do that. All my trys go bad.

I need help. I can do it with another passage or section, but it will look weird.


Again, doing this untested so let me know if it dosn't work.

{if dice<=3:{@life-=7}}
{else:{if dice<=7:{@life-=3}}}

Log in to post a reply.

Support

Forums