Trigger based by players in game

RennoC

New Member
Reaction score
2
In order to insure that the difficulty is not too hard for fewer players how can I have a trigger which checks for the ammount of players and then has an action of removing some other triggers. I think this would be the best way...or A way to nerf the units with fewer players
 

Crusher

You can change this now in User CP.
Reaction score
121
I think The best option is so that host selects Game difficult:
Code:
Trigger:

Events:
PLayer 1 red types : -Difficult50% as an exact match

Actions:
Make player 1 red gain 50% from killing enemies
And so on...
 

Draphoelix

It's not the wintercold that's killing me
Reaction score
132
Code:
Every 1 sec

Set PlayerGroup = Number of players in (All Players)
If 
Number of players in PlayerGroup equal to 1
Then
Add Negative Armor - 5 aura to all enemies
Else
Set PlayerGroup = Number of players in (All Players)
If 
Number of players in PlayerGroup equal to 2
Then
Add Negative Armor - 4 aura to all enemies
Else

Something like that?
 

Ashcat

Hellooo
Reaction score
68
Well I'm not entirely sure what you want. Are you trying to make a TD less difficult for less players or what? Specifics please : ). In any case, if you're trying to remove triggers if certain players are gone, then this would probably do it.

Code:
Difficulty
    Events
        Map initialization
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) slot status) Equal to Is playing
            Then - Actions
                Trigger - Turn off TriggerX <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 2 (Blue) slot status) Equal to Is playing
            Then - Actions
                Trigger - Turn off TriggerY <gen>
            Else - Actions
ect...

Alternatively, If you're trying to make a trigger that activates only one trigger depending on the number of players, then try this.

Code:
Difficulty
Difficulty
    Events
        Map initialization
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of players in (All players controlled by a User player)) Equal to 1
            Then - Actions
                Trigger - Turn on Difficulty Level 1 <gen>
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of players in (All players controlled by a User player)) Equal to 2
            Then - Actions
                Trigger - Turn on Difficulty Level 2 <gen>
            Else - Actions
...and so on. Difficulty Level 1,2,ect triggers would of course have to be initially turned off.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top