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

Is this possible? unit problem

Status
Not open for further replies.
Level 2
Joined
Aug 26, 2008
Messages
26
I want a unit to change ownership when it uses Death form(based on storm crow). When the unit becomes Death i want it to change its ownership from Player 5 to Player 12, for example. Both players will have full shared control/allied. That way I can keep player 5 allied with everyone and player 12 will just be there for when i want my unit to be Death, and he'll be enemies with everyone else.

So it's probably going to need a trigger with

Event- Ability is cast
Condition- Ability = Death Form
- Unit-type = Human
Action - Change ownership of casting unit to Player 12

I did this, and i switched unit-type to Death for when I want ownership to go back to Player 5, but nothing worked.

If anybody knows a working method for changing ownership(it's used in Dark Deeds), I would really love to find out what it is and I would appreciate it greatly :grin:
 
Level 14
Joined
Apr 21, 2007
Messages
1,465
Well, did you try appointing a unit variable to your unit?
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Death
  • Actions
    • Unit - Change ownership of (casting unit) to Player 12 (Brown) and Change color
    • Set DeathVariable = (Ownership-changed unit)
    • Wait 20.00 seconds
    • Unit - Change ownership of DeathVariable to Player 5 (Yellow) and Change color
I gave an instance in which the Death Ability lasts 20 seconds so the unit will be reverted back to player 5 in 20 seconds.
 
Level 5
Joined
Feb 5, 2008
Messages
109
  • Events
    • Unit - A unit Starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Death
  • Actions
    • Unit - Change ownership of (triggering unit) to Player 12 (Brown) and Change color
    • Wait 20.00 seconds
    • Unit - Change ownership of (triggering unit) to Player 5 (Yellow) and Change color
You don't need a variable, just use triggering unit.
 
Status
Not open for further replies.
Top