HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Hero Transforming

06-04-2008, 02:34 AM#1
Seika-Chan
Does anyone have or know a way to transform on hero into another hero completely? So far im working with a trigger that I "Borrowed" from an unprotected map and it gets the job done but the problem is is that i want the 2 heroes to share gained exp and earn separate ability points and as of right now the hero that starts gains the abilitypoints and the one it transforms into gains none.
06-04-2008, 05:46 AM#2
rulerofiron99
Before replacing the unit, you'll need a few integer variables:

Level
Experience
etc

Maybe also a real for HP and MP.

Then after replacement, set the new values to the new unit.
06-04-2008, 06:07 AM#3
RodOfNOD
Using replace unit is horrid cuz it loses the units control keys which i always hate to do so depending on the unit/hero u can use chaos spell or one of the various spells like the crow or bear spells. I believe u can use these and retain the hero stuff but its been a LONG time since i wanted to change heroes and not regular units. I know that chaos WILL work with heroes but in some cases it can cause crashes cuz of incompatibilities between the 2 hero units. The good news is the crash happens RIGHT when u do the conversion so....
06-04-2008, 01:10 PM#4
rulerofiron99
I'm only assuming that he's using Replace. But a similar effect could be achieved with Destroyer Form.
06-04-2008, 07:31 PM#5
Ignitedstar
Loses the unit's control keys? What does that mean, specifically?
06-04-2008, 08:09 PM#6
MercyfulJester
He means the unit vanishes from the control group I think. Replacing also has nasty side-effects such as removing buffs and effects and whatnots.
06-05-2008, 12:30 PM#7
bountygiver
You may try:

Destroyer Form ability if you want the change to be permanent.
Metamorphosis ability if you want it temporary.
Strom Crow Form/ Bear Form if you want it to be revertable.

I think that's all.
06-06-2008, 02:59 AM#8
Seika-Chan
Well as of right now i got the morphing down flawlessly *Cheers* i used Vampiric Potion as a dummy spell and just used some variable triggers, triggers which i have no idea on how they work. So my hero transforms into the other hero with its own set of skills, so its 2 heroes in one! Now my problem is getting them to Share XP gained and level up at the same time.
06-06-2008, 11:14 AM#9
MercyfulJester
You'll have to keep track of the gained experience with triggers.
06-07-2008, 03:39 AM#10
Seika-Chan
Oh hah silly me, i fixed the problem, i had that trigger the entire time i just didnt have it activated... My hero is 100% functional now =)