I need to make a spell like naix corpse jump. I want my hero to jump into another heros corpse basically possessing them. I want my hero to die and their hero to die. So basically it would jump into them kill them and create and exact clone of them that I have control over. A clone similar to geomancers clones.
I havent the slightest idea how to do this. Ive tried with images, and ive tried with possession. Neither work. Possession gives me permanent control of their hero for the rest of the game, so when it dies, it respawns for me, not them lol.
If anyone can help me out a little it would be much appreciated.
Edit: You guys think this would work. Its 3 seperate scripts
I havent the slightest idea how to do this. Ive tried with images, and ive tried with possession. Neither work. Possession gives me permanent control of their hero for the rest of the game, so when it dies, it respawns for me, not them lol.
If anyone can help me out a little it would be much appreciated.
Edit: You guys think this would work. Its 3 seperate scripts
Code:
Take A Host
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Take A Host
Actions
Set Goauld = (Casting unit)
Unit - Change ownership of (Target unit of ability being cast) to (Owner of Goauld) and Change color
Unit - Cause Goauld to damage Goauld, dealing 10000.00 damage of attack type Hero and damage type Normal
Countdown Timer - Start Time_Left_In_Host as a One-shot timer that will expire in 60.00 seconds
Code:
Get Previous Owner
Events
Unit - A unit Changes owner
Conditions
Actions
Set Host_Player = (Previous owner)
Code:
Release Host
Events
Time - Time_Left_In_Host expires
Conditions
Actions
Unit - Change ownership of Goauld to Host_Player and Change color
Unit - Cause (Ownership-changed unit) to damage (Ownership-changed unit), dealing 10000.00 damage of attack type Hero and damage type Normal