HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

how can i transform 1 hero into another hero

09-17-2014, 12:30 PM#1
andreasaspenberg
what i mean is transform one hero with weak stats into another with strong stats. how can i do that?
09-17-2014, 04:13 PM#2
moyack
you can play with abilities based on Belt of Giant Strength +6 (strength), Boots of Quel'Thalas +6 (agility) and Mantle of Intelligence +3 (intelligence). You can set the new abilities with multiple levels and trigger the ability level according to your needs.

http://classic.battle.net/war3/basic...ermanent.shtml
09-19-2014, 11:25 AM#3
andreasaspenberg
that isnt what i am after. those just add a static change. what i want is for the hero to gain increased stats on level up after being transformed. i already know that that requires 2 units and that i already have but the transformation is what i have trouble with. please help me out.
09-19-2014, 04:19 PM#4
Anitarf
Sounds like what you need is the Chaos transform ability. Simply add it to the Hero with a trigger when you want to morph him. Check out the campaign unit Grom to see how the ability is set up.
09-20-2014, 12:15 PM#5
andreasaspenberg
chaos was the first thing i tried but the hero keeps its original hero stats when transformed that way. that is the problem. adding it with a trigger isnt as requirement though as the unit can just have it and then it activates when the correct requirement is present. i also tried the grom ability but as his hero stats doesnt change between forms i guess that blizzard just didnt add that possibility to the ability. i am willing to try other ideas if you have any however.
09-20-2014, 02:02 PM#6
deolrin
Would it be feasible to have a dummy hero and level him up in tandem with the original hero, and then replace the original hero with the dummy hero when required?
09-20-2014, 04:42 PM#7
Anitarf
If the stats are the only problem of the chaos morph, you can just increase them separately with the "Hero - Modify Hero Attribute" action.
09-20-2014, 08:10 PM#8
andreasaspenberg
i suppose it possible to use triggers to change stats so lets have that as a last resort. i still want a better solution that doesnt require triggering.
09-20-2014, 10:45 PM#9
Anitarf
Okay, under what conditions do you want the hero to transform in the first place? If it's a spell, you could just use Metamorphosis or Chemical Rage.
09-21-2014, 03:36 AM#10
Fledermaus
His problem seems to be that when you do morph a hero to another hero, it keeps the first heroes base stat and stats per level values. As far as I know, you can't change those values so as Ani said, use "Hero - Modify Hero Attribute".
09-21-2014, 08:29 AM#11
Anitarf
Ah, I see, the "stats per level" are also copied over, not just the current stats of the hero.

You could try replacing the hero instead of morphing it, the "replace unit" action carries over all items and experience, but not the skills so depending on your setup that might be more work than just updating the stats with triggers whenever the hero levels up.
09-21-2014, 11:14 AM#12
andreasaspenberg
replace unit removes the items so then i would need to drop them first.
09-21-2014, 01:40 PM#13
deolrin
You could probably add the items to the dummy hero as your 'real' hero gains them. Or is that impossible to do in Warcraft III? Essentially switching positions with a disabled\hidden unit.
09-21-2014, 03:06 PM#14
Anitarf
Replace unit does not remove items.

Expand JASS:
09-21-2014, 08:12 PM#15
andreasaspenberg
it certainly do remove the items as the items dont transfer but, you should have remembered this as you helped me on another project where i had that issue.