• 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.

[Trigger] How can I make a custom morph spell

Status
Not open for further replies.
Level 7
Joined
Oct 8, 2008
Messages
200
Unless someone can tell me how to target a morphed unit caused by metamorphosis how can I make a trigger spell that similar to metamorphosis
 
Level 6
Joined
Sep 13, 2008
Messages
261
It will go like this

Event
Unit starts the effect of an ability
Condition
Ability = Your Dummy Spell Dummy Spell Info
Actions
Hide Castining Unit
Set Global_Integer[Player Number of Caster's Owner] = Experience of casting unit
Pause casting unit //might not be necessary don't know if hidden units can attack
Set Global_Unit[Player Number of Caster's Owner] = Caster // Used for turning him back.
Give Casting unit Invulnerable ability
Create Unit at location of caster of the type you want to be for casting player.
Set Experience of Last Created Unit to Global_Integer[Player Number of Caster's Owner]
Give Abilities ect


Then make a turn back ability that destroys the caster and unhides the hero and unpauses him.

This spell wouldn't be MUI but it would be MPI.
 
Status
Not open for further replies.
Top