• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Changing unit level (ulev) for heroes seem to add 5 hero levels

Status
Not open for further replies.
Level 26
Joined
Feb 2, 2006
Messages
1,697
Hi,
I have some kind of bonus system in my map which increases the levels of units. I use the native to change the unit integer field ulev.
However, it seems that when doing this with heroes, they just gain 5 hero levels, no matter which unit level I specify.
Can anyone confirm this bug and is there any explanation why?
Is there any workaround which won't add 5 hero levels?
 
Level 20
Joined
Feb 27, 2019
Messages
616
Are you sure you want to change ulev of heroes? I dont think it does anything. What are you trying to achieve?

EDIT: For me it adds 1 extra hero level ontop of the integer value except if its the same value as the current level then nothing happens. If I reduce it by a value it reduces the value correctly. I have no idea why. Why not use "Hero - Set unit Hero-level to ((Hero level of unit) + 1), Show level-up graphics"?
 
Last edited:
Status
Not open for further replies.
Top