I am developing a game.
In this game, there is a final value called “Total Points”
i want to level up the player when he get more than “total points” over as i decide for each level target.
Eg: Level Minimum Total Points Target
…1…500
…2…1200
…3…2500
.
.
.
.
…20…35000
How Can i do this.
Please Help…
Create a variable called something like Total Points. Set it at 500. Then set an "if Total Points=>500 then set player level to player level +1 and set Total Points variable to 1200. Rinse and repeat. Incrementing with each level.
3 Likes
thanks for replying garry.
…
.
.
Oh ! It’s Worked !!!
How nice.
You Saved Me Mr. Garry Lane.
Thank You Very Much.
2 Likes
Not a problem at all. Happy to help, any further issues just let me know. I am toying with gaming functions at the moment too, bits and pieces of games here and there, having fun solving issues just like this
2 Likes
You can do this more efficiently with a list. Make a list with your points values (500, 1200, 2500, etc.). Then have a rule that says If Total Points > get list item # Level, then change Level by 1. You would either need to have this in a forever rule that constantly checks (not recommended) or in every rule that adds points to your score.
3 Likes
Thanks tatiang.
I will add your method to use.
1 Like