• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

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.
 
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.
Back
Top