HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero summoning ability tooltip

01-19-2004, 08:17 PM#1
Muzzz
I've been tampering with hero & ability editing a bit. I'm trying to get 'durotan' like heroes (max. level 18, more skill levels). Probably a lame idea, but I wanna do it anyway. I'm trying to do this for custom game/MP maps, not for a SP campaign.

I've been adding 4th levels to all regular skills for heroes. This of course includes things like Water Elemental and Carrion Beetles. For those I've created new custom units based on the old ones, made them stronger. Then made the 4th level of the skill summon the new unit. So far so good.

Now I want to edit the tooltips for the skills. For example Water Elemental. (the next part might get confusing if you've never seen an ability tooltip in WE). The regular tooltip uses some sort of variables to get the HP and DMG of the elemental. Those things look like this:

Code:
:|n|cffffcc00Level 3|r - <hwt3,realHP> hit points, <hwt3,mindmg1> - <hwt3,maxdmg1> damage.



Here, 'hwt3' is the raw-value name of the lvl3 water elemental. I've added an extra line for the lvl4 description, and replaced 'hwt3' with 'h0002:hwt3' , which is what WE says is the raw-value name of my new unit. (BTW: realHP, mindmg1 and maxdmg1 do not seem to be the raw-value names of any stat I can find in the editor?)

However, when I check the tooltip in-game, something's wrong. The HP show up correctly, but the damage it gives is still the same as the lvl3 elemental! No, I did not forget to change the damage. And the same thing happenend for lvl4 carrion beetles.

Something similar happened with the armor bonus for lvl4 frost armor, it also shows the lvl3 value. All my other abilities work just fine.

After reading this load, does anybody have a clue as to how I can fix this? I can of course 'hard-code' the values, but that would make changing the abilities a pain in the *** (and it's bad bad bad programming of course).
01-24-2004, 05:33 AM#2
overdrive
try changing the 3 in hwt3 to hwt4