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

I need this made, please {Removing a unit in case owning player is unused}

Status
Not open for further replies.
Level 3
Joined
Apr 7, 2012
Messages
25
Whenever you find time, please I need this trigger made and +rep to those who makes it, be sure to test it. Thanks

The trigger i need, needs to be made like this..

Event -
5.0 gametime

Condition - (If there needs to be one)


Action -
This might need to be a
"Pick each player in a group" because I do have 14 players and its a group thing I believe".

'If-then-else'

If - Status of player = Not playing or Unused

Then-

Else-
Remove - Homeworld from play (Unit)

-------------------

Bottom line what I am trying to make here is, whenever each game is started and any player slots that are "Not playing" the starting homeworld for those players needs to be removed from play.

Thanks a bunch, I will keep trying to create this trigger while I wait for someone to reply with there option how to create it.
 
Level 22
Joined
Feb 4, 2005
Messages
3,971
  • Timer - Every 5.0 seconds of Game Time
  • Local Variables
  • Conditions
  • Actions
    • General - Pick each integer from 1 to 14, and do (Actions)
      • Actions
        • General - If (Conditions) then do (Actions) else do (Actions)
          • If
            • Or
              • Conditions
                • (Status of player (Picked integer)) == Unused
                • (Status of player (Picked integer)) == Left The Game
          • Then
            • Unit - Remove (Random Living unit from (Command Center units in (Entire map) owned by player (Picked integer) matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount)) from the game
          • Else
 
Last edited:
Level 3
Joined
Apr 7, 2012
Messages
25
  • 5secRemove
    • Events
      • Timer - Elapsed time is 5.0 Game Time seconds
    • Local Variables
    • Conditions
    • Actions
      • General - Pick each integer from 1 to 14, and do (Actions)
        • Actions
          • General - If (Conditions) then do (Actions) else do (Actions)
            • If
              • Or
                • Conditions
                  • (Status of player (Picked integer)) == Left The Game
                  • (Status of player (Picked integer)) == Unused
            • Then
            • Else
              • Unit - Remove (Random Living unit from (PlanetH Homeworld units in (Entire map) owned by player (Picked integer) matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount)) from the game
It removes my Homeworld when I am clearly an active player. rofl

never mind, I dont know how but I checked and notice you had it on "then" not else, I switched and it worked just fine. Why is that?? lol

Quick update, I would +Rep for you but already did it. Thanks a bunch! Least this trigger works and I don't have to worrie about one of these garbage triggers getting to work.
 
Last edited by a moderator:
Status
Not open for further replies.
Top