• 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] resurrect system simplified

Status
Not open for further replies.
Level 15
Joined
Jan 27, 2007
Messages
948
well, i made a simpler resurrect system now for my wow RPG, but the problem is that i can't identificate a unit, can someone help me?

my trigga:
  • Spirit Healer Res
    • Events
      • Unit - A unit Finishes reviving
    • Conditions
      • (Unit-type of (HERE IS WHAT I DONT KNOW)) Equal to Grave
    • Actions
      • Unit - Remove (HERE IS WHAT I DONT KNOW) from the game
      • Player - Make (Owner of (Dying unit)) treat Player 12 (Brown) as an Enemy
      • Player - Make Player 12 (Brown) treat (Owner of (Dying unit)) as an Enemy
i want to identificate the building/unit reviving the hero
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
This trigger could be a lot easier. Instead of checking the building when it's done reviving, you should make the building be checked when it starts reviving. That's probably an ability. In that case, you make a trigger

  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • Ability being cast equal to Revive
  • Actions
    • Set RevivingBuilding[1] = Triggering unit
    • Wait until RevivingBuilding[1] finished training/researching
    • Remove RevivingBuilding[1] from the game
    • Player - Make (Owner of (Triggering unit)) treat Player 12 (Brown) as an Enemy
    • Player - Make Player 12 (Brown) treat (Owner of (Triggering unit)) as an Enemy
 
Last edited:
Level 5
Joined
May 21, 2006
Messages
174
This trigger could be a lot easier. Instead of checking the building when it's done reviving, you should make the building be checked when it starts reviving. That's probably an ability. In that case, you make a trigger

  • Events
    • Unit - A unit begins casting an ability
  • Conditions
    • Ability being cast equal to Revive
  • Actions
    • Set RevivingBuilding[1] = Triggering unit
    • Wait until RevivingBuilding[1] finished training/researching
    • Remove RevivingBuilding[1] from the game
    • Player - Make (Owner of (Dying unit)) treat Player 12 (Brown) as an Enemy
    • Player - Make Player 12 (Brown) treat (Owner of (Dying unit)) as an Enemy

Dying unit = No unit.
Would also be better to use locals to make it MUI instead of using an array.

Triggering Unit should do.
 
Status
Not open for further replies.
Top