Warcraft III resources & community, 2003–2006 · archived

Detecting amount of lvls gained?

3 posts
#1

Detecting amount of lvls gained?

Well alright I have a map wich has an abillity called cursed seal when you activate it you get double stats and have hp drained. The problem is when he lvls he does not get the double stats.

The only way to gain stats in the game is trough lvling so this posses a major problem. I got a trigger to work where when the unit lvls you get the stats wich you would normal miss, but I encountered a huge problem here. The unit most of the time gains more then 1 lvl at a time since its a massive lvl arena to get straight to pvp.

I was wondering if anyone knows how to detect the ammount of lvls a unit has gained after lvling. Any other way to fix this is also fine.
#2
"I was wondering if anyone knows how to detect the ammount of lvls a unit has gained after lvling. Any other way to fix this is also fine." That doesn't quite make sense.

But when you are talking about stats do you have them as bonus or base?

It would be much easier if you stored everything as bonus that way you can base the bonus off of the base.

Example:
Lets say you have 10 into all the stats. Each level gives 1 to all stats.

Now, the leveling issue: Have an event of a leveling hero, condition check is that they have the buff of that ability, actions would be take the base and recalculate.

Without knowing the duration of the buff or anything I can't really help you that much.
#3
The buff stays on as long as the spell is activated. I made a unit to give the caster a buff and when he deactivates the spell I rmeove it with triggers.