| 10-15-2003, 01:27 AM | #1 |
I am working on a way to have all experiance given threw triggers to stop players from getting multiple lvls at once. Actually it onlt takes 1 triggers, but when i set the hero level +1 or Set the exp to the exp needed for the next level the experiance goes to a point inside the level experiance. This only happens after level 10. here is the basic trigger Event Unit - A unit Dies Condition ((Killing unit) is A Hero) Equal to True Action If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions ((Hero experience of (Killing unit)) + (Point-value of (Dying unit))) Less than ((200 x (Hero level of (Killing unit))) + ((((Hero level of (Killing unit)) - 1) x ((Hero level of (Killing unit)) x 100)) / 2)) Then - Actions -------- Adds exp if the character wont level up -------- Hero - Add (Point-value of (Dying unit)) experience to (Killing unit), Show level-up graphics Else - Actions -------- Levels the character -------- Hero - Set (Killing unit) Hero-level to ((Hero level of (Killing unit)) + 1), Hide level-up graphics Im pretty sure i have it set right, try it urself. Make sure u set exp from creeps to 0 under gameplay constants, and kill creeps. |
| 10-15-2003, 03:54 AM | #2 |
That's a pretty complicated equation you got going there. Why don't you post the algorithm here so we can help you out by trying a different method? |
| 10-15-2003, 06:34 AM | #3 |
Basically the equasion for exp is wc3 is calculated by (xz)+((z-1)zy) x = Constant table y = Level factor z = character level all that calculation says is if current exp + point value of dying unit, then give point value to hero, else level the hero. I also tryed using set exp to the amount for next level and that dosent work. Ive checked the exp equasion till about level 70 so i am sure it is correct. [edit] I managed to fix the problem after hours of agravation, turned out to not be a problem with the stuff i posted, but an inpropperly labeled unit later in the trigger. Sorry for the useless post but i swore i checked that earlier. The posted trigger turns out to be perfect after all. |
