Picking all players and doing actions question

Drakens

New Member
Reaction score
7
I have made this trigger to see if the players are playing or not, and saving their names in a variable, but I think it is not reallly working :( . If you can tell me what is wrong with it...
(Variables: TempGroup (Force), IsPlaying[Array] (Boolean), Name [Array] (String))

Code:
Set TempGroup = (All players)
Player group - Pick every player in TempGroup and do (Actions)
    Loop: Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If: Conditions
                ((Picked player) controller) Equals to User
            Then: Actions
                Set IsPlaying[(Player number of (Picked player))] = True
                Set Name[(Player number of (Picked player))] = (Name of (Picked player))
            Else: Actions
                Set IsPlaying[(Player number of (Picked player))] = False
                Set Name[(Player number of (Picked player))] = Not Used
Custom script:   call DestroyForce ( udg_TempGroup )
Thanks for any response <3

P.S.: My editor isn't in english so i changed some things to english ^^
 
I

iNsaNe

Guest
Code:
((Picked player) controller) Equals to User

change that to

Code:
((Picked player) controller) Equals to Is Playing

EDIT: you're getting the computers and players, not whether the players are playing or not.

change 'custom script: call DestroyForce ( udg_TempGroup )' to 'custom script: call DestroyGroup(udg_TempGroup)'
 

Drakens

New Member
Reaction score
7
Using DestroyGroup gives compilation error :rolleyes: (i can attach a srceenshot but it's in spanish :p)
And... if I do the triger I wrote with your condition, it should work?
I made this trigger:

E:
Elapsed game time is 5.00 seconds
C:
__
A:
display for All Players Name[1]
display for All Players Name[2]
and etc...

It says (null) for all -.- :banghead:

EDIT: sorry, it doesn't say (null) it doesn't say anything... lol

EDIT2: I got it, just changed the TempGroup from All Players to All Players Mathcing Slot Status = is Playing, then set Name to their name and IsPlaying to true, and I changed the initial value of Name to "Empty" and IsPlaying to "False". It works now :D
 
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