|
Yamabushi Apprentice
Joined: 29 Jul 2003 Posts: 101 Location: USA
|
Posted: Fri Sep 10, 2004 7:17 am
Experiance Calculator |
Ok, I already have a trigger that captures my current experience into a varible called exp. I have a trigger also inplace to capture my current level.
Here's what I want to do.
Below is a list of the level and it's minimum exp needed to obtain it.
I want to take my current experiance level, and subract it from the next level's experience. So if I'm level 3, it subracts using level 4 as the bar.
First is how to set up all 25 levels, and their experience amounts, so that I can take do my subraction fucntion?
Thanks for all the help.
Lvl-Exp
1 0
2 501
3 1015
4 1522
5 2283
6 3425
7 5138
8 7707
9 11561
10 17341
11 26012
12 39018
13 58527
14 87791
15 131687
16 197531
17 296297
18 444445
19 666667
20 1500001
21 2500001
22 4000001
23 6000001
24 8000001
25 10000001 |
|
_________________ Yama |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Sep 10, 2004 3:49 pm |
#ADDKEY LvlExp 1 0
#ADDKEY LvlExp 2 501
#ADDKEY LvlExp 3 1015
#ADDKEY LvlExp 4 1522
#ADDKEY LvlExp 5 2283
#ADDKEY LvlExp 6 3425
#ADDKEY LvlExp 7 5138
#ADDKEY LvlExp 8 7707
#ADDKEY LvlExp 9 11561
#ADDKEY LvlExp 10 17341
#MATH ExpToNextLvl (%db( @LvlExp, %eval( @Lvl + 1)) - %db( @LvlExp, @Lvl))
You can add the remaining 15 values yourself. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|