• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to 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