• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

[General] how to pick the only player's number

Status
Not open for further replies.
So, I made this trigger, I thought it's working, but since I'm upgrading things on my map it's kinda not working.
  • Set Users = (All players matching (((Picked player) controller) Equal to User))
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Number of players in Users) Equal to 1
    • Then - Actions
      • Trigger - Turn off Change Host Func <gen>
      • Player Group - Pick every player in Users and do (Actions)
        • Loop - Actions
          • Set CurrentHost = (Player number of (Picked player))
    • Else - Actions
 
Status
Not open for further replies.
Top