• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Metamorphosis behaving oddly

Status
Not open for further replies.
Level 7
Joined
May 11, 2010
Messages
278
When I cast Metamorphosis, the unit gets the stats of the other form, but stays in its orignial form. When the duration ends, the stats return to normal, but the model changes to alternate form and a new "duration" is starting to count down. When that one ends, all is as usual.

Help me fix this perhaps?
(I don't know any jass)
 
Level 17
Joined
Nov 13, 2006
Messages
1,814
Only one metamorphosis.
The thing is, units in my map learn spells by triggers, so that might be causing the issue?

1. of all the 2ndary form (transformed unit) also must get the metamorph ability

2. if u added via trigger then u must make it permanent

  • set unit = *your unit*
  • Custom script: call UnitMakeAbilityPermanent(udg_unit, true, '****')
  • //**** is ability rawcode
if u dont make ability permanent then original unit lose the ability when transform, if it is permanent the unit have the ability after transform back
 
Level 7
Joined
May 11, 2010
Messages
278
2. if u added via trigger then u must make it permanent

  • Custom script: call UnitMakeAbilityPermanent(udg_unit, true, '****')
Did you add "alternateex" to the Art - Required Animation Name field and "alternate" to Art - Required Attachment Link/Bone Name to the transform unit?

Did these things, and it works :) thanks guys :)

(Shadows, i'd rep you, but i recently did so yeah)
 
Status
Not open for further replies.
Top