So im almost finished with my pre alpha test beta game and all i need to do now is build a leveling mech, this is the equation im using
Forever if XP=100 or XP<199 set char_LV =2
200 or 299 3
ECT.....
Just when i code it i can succesfully goto to at 100xp but as soon as i gain one point its back to lv 1 unill i get 200 xp then it goes to 3 but at 201 it goes back to one again iv been trying to fix this for 3 days on my own im getting frustrated plz someon ehave some help i could use it.
Offline
do forever if XP < 100 set rank to 1
else if XP < 200 set rank to 2
else if XP < 300 set rank to 3
else if XP < 400 set rank to 4
This is the best way and easiest
Offline
So you want the level to go up every 100 points? This may work:
when gf clicked
forever
if (round(exp/100))=(exp/100)
set (level) to (exp/100)
Last edited by WingsGames (2012-06-02 15:56:24)
Offline
when gf clicked forever set [level v] to (round(((exp)+(50))/(100)))
Last edited by MoreGamesNow (2012-06-02 17:01:07)
Offline
SciTecCf wrote:
WingsGames wrote:
So you want the level to go up every 100 points? This may work:
when gf clicked forever if <(round ((exp) / (100))) = ((exp) / (100))> set [level v] to ((exp) / (100)) end endFixed [your v] (scripts)
Oops. Thanks.
Offline