A certain Trigger

TfauxT

New Member
Reaction score
2
I need an assist on how to create a trigger that periodically checks the amount of players in a said game, and adjusts the enemy handicap accordingly.

I have tried myself but I'm totally stumped. Any help is greatly appreciated.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
You'll probably want to use a Player Group variable.
Something like this:

Code:
Check Players
    Events
        Time - Every 10.00 seconds of game time
    Conditions
    Actions
        Set PlayerGroupVariable = (All players matching (((Matching player) slot status) Equal to Is playing))
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of players in PlayerGroupVariable) Less than 5
            Then - Actions
            Else - Actions
        Custom script:   call DestroyForce(udg_PlayerGroupVariable)
 

TfauxT

New Member
Reaction score
2
You make it look so simple:rolleyes: Thank you very much! I have one quick question- How do I enable custom script on a trigger?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> How do I enable custom script on a trigger?

Well, Custom Script should be a trigger action. Somewhere toward the top of the list.
Copy what I have there, and change PlayerGroupVariable to the name of the variable. Leave the udg_ part.

Only copy and paste this part:

Code:
call DestroyForce(udg_PlayerGroupVariable)

And when you change it, it may look a bit different:

Code:
call DestroyForce(udg_ThisIsMyVariableName)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top