"Morphing" a unit

Darius34

New Member
Reaction score
30
Say I have 3 units, hero a, hero b and hero c. I want hero a, when using this morph spell, to be replaced by b, b by c, and so on. How would I approach this? The units are all heroes and thus have hero abilities that will be unlearnt.

I was wondering if I could use bear form, but that's only for two-state morphing right? Can I use a different bear form on each of the heroes? (Could someone explain bear form please) Is metamorphosis a viable choice? Or should I simply trigger a dummy abilitiy to replace the caster? Thanks.

I don't have WE with me right now, so I can't try any solutions out, at least for a while.
 

Slapshot136

Divide et impera
Reaction score
471
make a dummy ability called morph (base it off of roar or something)
and do this
event - unit starts the effect of an ability
conditions - ability being cast is equal to morph
actions
if ability being cast is hero a then replace (triggering unit) with (hero b)
if ability being cast is hero b then replace (triggering unit) with (hero c)
if ability being cast is hero c then replace (triggering unit) with (hero a)
 

Darius34

New Member
Reaction score
30
Will Unit - Replace transfer the heroes' exp, level, stats, items, and learnt skills? I don't think learnt skills are tranferred. Sorry, can't try it out now.
 

Sim

Forum Administrator
Staff member
Reaction score
534
it transfers level and items. Not exp, stats and learnt skills.
 

Darius34

New Member
Reaction score
30
So if I want abilities to be tranferred I would have to level them myself, using Hero - Learn skill and then setting the level of the ability?

Also, (e.g. hero a becomes hero b) can I still reference hero a in the caster variable, or will b replace it? Is hero a removed from the game? And how do I reference hero b? Last created unit? Thanks.
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,496
> So if I want abilities to be tranferred I would have to level them myself, using Hero - Learn skill and then setting the level of the ability?

Yes.

> Also, (e.g. hero a becomes hero b) can I still reference hero a in the caster variable,

No.

> or will b replace it?

Yes.

> Is hero a removed from the game?

Yes.

> And how do I reference hero b? Last created unit?

"Unit - Replace" sets a variable called "last replaced unit".


Set UnitVariable = <some Hero>
Unit - Replace UnitVariable with <some other Hero> ...
Set UnitVariable = (Last replaced unit)
Hero - Learn <something> for UnitVariable
...whatever else you want to do...
 
A

AK-47Pirates

Guest
theres a tutorial by sd_ryoko about morphing heroes. in fact i just downloaded it. search for it.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top