• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Limit lvl for Hero

Status
Not open for further replies.
NO!

You are not making much sense. We are having problems understanding what you are asking.

If you want to limit the level that heroes can be loaded at then add a test to the loading procedure that makes sure the level value is within the required range. If the level value is suddenly outside that range, for example 6 when at most 5 is expected, then either fail the load (cheating?) or clamp the value to 5.

If you want to limit the level the loaded hero can achieve after being loaded then limit it like you would all heroes. This usually involves a trigger on level up that if the maximum level is achieved then it sets experience gain for the unit to 0%, as done by the standard RoC and TFT campaigns. I would also recommend to set the hero level to the level limit to prevent a possible exploit/bug where by a large instantaneous experience gain can cause the unit to gain multiple levels at once and hence exceed the level limit.
 
Status
Not open for further replies.
Back
Top