• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Will This Work ??

Status
Not open for further replies.
Level 11
Joined
Nov 13, 2010
Messages
211
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