W
Warianos
Guest
Hey guys, im trying to make a script that earns exp and tests if is is enought to lvl up 1 or more times if the exp is way larger.
//EarnExp(exp)
exp0 = argument0;
level = obj_player.actualLevel;
actualExp = obj_player.actualExp + exp0;
expMax = obj_player.expMax;
while(actualExp >= expMax){
expMax = round(level*log10(level)*10 + 10);
playerLevel +=1;
actualExp -=expMax;
}
The problem is that obj_player.variable isn´t working... i would like to know a way to make this possible to change players Create variables from different sources like mob killing, exploration, quests etc.
Thanks guys
It was a typo, sorry guys, and thanks
//EarnExp(exp)
exp0 = argument0;
level = obj_player.actualLevel;
actualExp = obj_player.actualExp + exp0;
expMax = obj_player.expMax;
while(actualExp >= expMax){
expMax = round(level*log10(level)*10 + 10);
playerLevel +=1;
actualExp -=expMax;
}
The problem is that obj_player.variable isn´t working... i would like to know a way to make this possible to change players Create variables from different sources like mob killing, exploration, quests etc.
Thanks guys
It was a typo, sorry guys, and thanks
Last edited by a moderator: