• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Will This Work ??

Status
Not open for further replies.
Level 14
Joined
Nov 13, 2010
Messages
315
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
 
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.
Back
Top