Hero - deactivate experience gain for (Triggering unit)
Yes. But its kind of complicated. You need to go into Advanced > Gameplay Constants, and set all of the fields from "Hero XP Gained - Hero, Constant Factor" to "Hero XP Gained - Normal Table" to zero.
Then, you need to trigger all of the experience gained in your map.
I actually prefer doing it this way, so that I can dynamically change how/if/when experience is gained. :thup:
But still you have not removed the xp bar
I think u can remove it in the gameplay interface, but it will only remove the visual, but still the xp bar still there
His second question wasn't how to remove the exp bar. His question was how to stop heroes from gaining experience, which I answered. Accname's solution is simpler, however.
Is there a way to set a unit hero type (so that it's selectable by F# key) and then remove the XP bar on the hero?