• 💀 Happy Halloween! 💀 It's time to vote for the best terrain! Check out the entries to Hive's HD Terrain Contest #2 - Vampire Folklore.❗️Poll closes on November 14, 2023. 🔗Click here to cast your vote!
  • 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 HD Level Design Contest #1 is OPEN! Contestants must create a maze with at least one entry point, and at least one exit point. The map should be made in HD mode, and should not be openable in SD. Only custom models from Hive's HD model and texture sections are allowed. The only exceptions are DNC models and omnilights. This is mainly a visual and design oriented contest, not technical. The UI and video walkthrough rules are there to give everyone an equal shot at victory by standardizing how viewers see the terrain. 🔗Click here to enter!

How to limit level/experience?

Not open for further replies.
Level 3
Jul 26, 2011
umm Guys. how to disable experience gaining from footman(unit name) if the d hero level is equal or greater than 6?

and enable again if the killing unit is knight(unit name) and disable if hero level is equal or greater than 11?

how can i do that in a single trigger?? :vw_death:

Dr Super Good

Spell Reviewer
Level 63
Jan 18, 2005
Why do you want to do it in a single trigger?

There is a native to turn of EXP gain for a specific unit, it is clear this will be needed.
Next you will need some form of subsystem to handle what units are normal or knighted.
1 Trigger is used for the level up detection, if a unit levels up to his limit (you test if he is knigth or not to get limit) you then turn off his experience gain and set his experience back to the nearest whole level (otherwise it will overshoot).
1 Other trigger us used to govern the knight system (runs when a unit becomes a knight) and makes him known as a Knight. This trigger would also test if the unit was level capped and if so would turn his experience gain back on.
A final trigger is probably needed on death to remove the units and the unit from all systems that referenced it. Although units still leak even when removed, it is a lot better than leaving 100s of unrevivable dead hero units active in the game.
Not open for further replies.