Trigger...

lordrd

New Member
Reaction score
2
I need help with some triggers...

trigger 1
A unit enters area and creat one footman for second, only if the red player kill 50 units

trigger 2
how to put a table in game with all player units killed

thx Lord
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
1. Use an integer to track the kills for each player, then use this:

Code:
Unit
    Events
        Unit - A unit enters <Region>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                IntegerVariable[Player Number of (Owner of (Triggering Unit))] Greater than or equal to 50
            Then - Actions
                Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
            Else - Actions

2. That would be a leaderboard. Use search to find a tutorial.
 

lordrd

New Member
Reaction score
2
1. Use an integer to track the kills for each player, then use this:

Code:
Unit
    Events
        Unit - A unit enters <Region>
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                IntegerVariable[Player Number of (Owner of (Triggering Unit))] Greater than or equal to 50
            Then - Actions
                Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
            Else - Actions

2. That would be a leaderboard. Use search to find a tutorial.

i dont find this part - "IntegerVariable[Player Number of (Owner of (Triggering Unit))] Greater than or equal to 50"
i only find this -
"(Number of units in (Units in (Playable map area))) Greater than or equal to 50"
 

quraji

zap
Reaction score
144
You have to first create an integer variable array (with the size of however many players that will play the game) using the variable editor, 'IntegerVariable[]' was just an example name.
 

Mapster

New Member
Reaction score
4
Create a Variable, make it a Integer with an array of 1.

click ok and select it so it looks like this
Code:
IntegerVariable[INDEX] Greater than or equal to 50

Change the INDEX to "Player Number of (Owner of (Triggering Unit))"
 

HailCommi

New Member
Reaction score
15
If you mean make one footman PER second, you need a seperate trigger (with Every 1 second of game-time as your event), set it to not initially on, then run that trigger (ignoring conditions) with that other trigger posted above
 
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