HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Changing Unit (Not Hero) level

02-24-2007, 11:10 PM#1
Falitian
Is this possible? Unfortunately, I'm no Jass wizard, but I do know that I can't seem to find a way to do this in GUI. What I'm trying to do is create a system that will increase the stats of creeps and NPC's whenever the average level of player-owned Hero's increases to certain points. Everything works, as I'm using upgrades to increase creep and NPC stats, but the issue I'm having is that the hero's won't be getting proper amounts of exp in correspondence to the amount of work that is needed to killing these now upgraded NPCs.

The only solutions I've found is to trigger an "add exp" thing in whenever unit is killed, and have the amount of exp added to be in direct correspondence with the current unit.

The only reason I'm not going to be creating upgraded versions of the units is because there are going to be ~10 different upgraded levels, and it's no where near practical to create 10 versions of the ~30-40 different Creeps being utilized in the game.


I would appreciate it if anyone could help find a simple solution to this, or help me find a way to change the level of a unit.
02-24-2007, 11:12 PM#2
Preskooldude
Why don't you create a dummy hero that gains the experience for the unit? And then, when that dummy hero levels, increase the stats of the unit that its linked to. Also, when the unit is killed, kill the dummy hero too, so that the experience is properly given out?
02-24-2007, 11:27 PM#3
Falitian
Sorry if I was vague, that's not what I was aiming for.

What I am trying to do, is create a system where the Creeps and Units the Heros are killing will have their stats increase as the average Hero level on the map increases. I don't want the units to be gaining experience with each kill, but to have a set level, so that the exp proportionate to the unit level they have is distributed to heros nearby. The only problem is that when I "level" the units and creeps, that I cannot increase their unit level, which determines the amount of exp hero's get for killing them. The hero idea you had can't really work for this system because well first off it will create an insane amount of heros on the map which could create a lot of lag, and because the amount of exp gained by killing a hero is based on a different system than for units, meaning that you would end up getting the same amount of exp for killing a lvl 5 random creep and a lvl player controlled hero.
02-24-2007, 11:33 PM#4
Preskooldude
Oh, my bad sorry.