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

Will This Work ??

Status
Not open for further replies.
Level 12
Joined
Nov 13, 2010
Messages
254
hey i made trigger for Last Standing Hero so my quested will it work
  • Last Standing Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Owner of (Dying unit)) is in LastHeroStanding) Equal to (==) True
    • Actions
      • Player Group - Remove (Owner of (Dying unit)) from LastHeroStanding
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • (Number of players in LastHeroStanding) Less than or equal to (<=) 1
          • Then - Actions
            • Trigger - Turn off (This trigger)
            • Player Group - Pick every player in LastHeroStanding and do (Actions)
              • Loop - Actions
                • Player - Add 200 to (Picked player) Current gold
                • Quest - Display to Players the Hint message: (|cff00ccffLast Hero Standing|r - + (PlayerNames[(Player number of (Picked player))] + earns an additional 200 Gold.))
          • Else - Actions
 
Level 18
Joined
May 11, 2012
Messages
2,103
You don't need this "Pick Every Player" because then block runs only if there's one more player left in region.
You can remove that picking and just move those 2 actions in then block and instead of picked player, refer to "(owner of(dying unit))

Yes this should work.
 
Status
Not open for further replies.
Top