• 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.

Small Help

If you mean limiting the hero level to only 5, that can be done through the Gameplay Constant of any map in the World Editor, in the field Hero Maximum Level. There is an explanatory image here.
There's also a trigger action to disabled experience gain for a hero.

So you'll just create a trigger that fires with the event "A Hero Gains a Level"

Then the conditions: "Leveling Unit equal to [Your hero]"
and
"Hero Level of [leveling Unit] equal to [6]" I'm just using 6 as an example.

Then action: "Disable experience gain for [levelling unit]"
 
Level 28
Joined
Dec 3, 2020
Messages
974
I really suggest writing more precise titles that can shortly describe what you need help with.
When I see something like "small help" I am not exactly excited to open up the thread.
Not trying to be impolite.

As for your problem, it's better to do what Footman16 said: disable the experience gain for a specific hero or heroes, not for every hero through the gameplay constant.

One thing I can suggest is for you to quickly look at every single trigger event and action and most of the conditions since most problems like this one can be easily solved on your own (in my opinion).
It will take you some time but you won't have to wait for someone else to solve such an easy problem, meaning that you can move on to bigger and more complicated tasks/problems and ask for help for these advanced tasks.
 
Yeah to build on what raypack said, most blizz maps have comments. The Custom campaign or Demo Campaign had blizz add comments explaining the purpose of most of the triggers so serves as a handy guide for how to do things yourself. We all learned by piecing together the bits of how other people did things and by trial and error. In some ways this is the most fun and satisfying part of learning to use the WE :)
 
Level 34
Joined
May 14, 2021
Messages
1,602
In case you want this trick to be applied on melee maps (not the campaign), be sure to modify the "Hero XP Gained - Creep Reduction Table" value as well.
There's a rule where Level 5 (or beyond) heroes can only gain experiences by killing enemy players' units/buildings/heroes, but not the creeps.
 
Top