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

Turning an enemy hero into a stronger unit spell

Status
Not open for further replies.
Level 3
Joined
Apr 3, 2004
Messages
39
ive seen a similar spell used in enfos...

its where a hero casts a spell (i think its an altered version of hex) but casts it on an allied hero to transform that hero into another hero.

i want a similar spell but is castable on the enemy hero to transform it into a weaker unit for a certain amount of time. how do i do this.
 
Level 13
Joined
Jan 9, 2004
Messages
1,037
Make a dummy spell that doesn't do anything, but you cast it on another unit. Then create this trigger:

Code:
Events
--Unit - Hero Begins casting an ability
Conditions
--(Ability being cast) Equal to Ability
Actions
--Unit - Replace (Target unit of ability being cast) with a Weak Unit using The old unit's relative life and mana
--Set Target_Unit = (Last replaced unit)
--Countdown Timer - Start Timer as a One-shot timer that will expire in 1.00 seconds
Then make this trigger:
Code:
Events
--Time - Timer expires
Conditions
Actions
--Unit - Replace Target_Unit with a Footman using The old unit's relative life and mana
Hero = The unit with the ability.
Ability = The dummy ability.
Weak Unit = The unit you want to replace the enemy unit.
Target_Unit = Unit Variable.
Timer = A timer to count down the length the unit is replaced. You can change this to whatever length you want it to be for.
 
Status
Not open for further replies.
Top