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

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

Status
Not open for further replies.
Level 28
Joined
Feb 2, 2006
Messages
1,631
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 24
Joined
Feb 27, 2019
Messages
833
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