• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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