problem w/ Trigger

pride2518

New Member
Reaction score
4
Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If ((Player 1 (Red) controller) Equal to User) then do (Unit - Create 1 Footman for Player 1 (Red) at (Center of Region 000 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 2 (Blue) controller) Equal to User) then do (Unit - Create 1 Footman for Player 2 (Blue) at (Center of Region 003 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 3 (Teal) controller) Equal to User) then do (Unit - Create 1 Footman for Player 3 (Teal) at (Center of Region 007 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 4 (Purple) controller) Equal to User) then do (Unit - Create 1 Footman for Player 4 (Purple) at (Center of Region 001 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 5 (Yellow) controller) Equal to User) then do (Unit - Create 1 Footman for Player 5 (Yellow) at (Center of Region 006 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 6 (Orange) controller) Equal to User) then do (Unit - Create 1 Footman for Player 4 (Purple) at (Center of Region 002 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 7 (Green) controller) Equal to User) then do (Unit - Create 1 Footman for Player 7 (Green) at (Center of Region 004 <gen>) facing Default building facing degrees) else do (Do nothing)
      • If ((Player 8 (Pink) controller) Equal to User) then do (Unit - Create 1 Footman for Player 8 (Pink) at (Center of Region 005 <gen>) facing Default building facing degrees) else do (Do nothing)





Even though there is no one that controls Player 3/4/5/6/7/8, it still spawns footmens for them :/

Any ideas why?
 

Moridin

Snow Leopard
Reaction score
144
You're using the wrong condition I think. You need:

Player - Slot Status

...not whether or not the player is a user or computer.

Also, your trigger could be more efficient using a loop.
 

kla0005

New Member
Reaction score
3
You should do it more like this:

Trigger:
  • Untitled Trigger 001
    • Events
      • Time - Every 1.00 seconds of game time
    • Conditions
    • Actions
      • If (((Player 1 (Red) controller) Equal to User) and ((Player 1 (Red) slot status) Equal to Is playing)) then do (Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees) else do (Do nothing)


That checks after 'is it a user' + 'is the player actually playing, or is it a empty slot?' ..

Hope is that you need :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top