I need such thign for testing purposes. I have plenty of triggers that adds and removes players form specific groups in variables, and would like to see if it works properly. Is there a way to make a trigger that would list all players in specific group whenever i type i.e. "-show group1" ?
//Check if player wants to have the 1st group displayedGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Word1of(Enteredchatstring))=="group1"ThenVariable-LocalPlayerGroup=Yourfirstunitgroup,whateverthisisElse//Check if player wants to have the 2nd group displayedGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Word1of(Enteredchatstring))=="group2"ThenVariable-LocalPlayerGroup=Yoursecondunitgroup,whateverthisisElse//Loop through all players and display their names.PlayerGroup-PickeachplayerinLocalPlayerGroupanddo(Actions)ActionsUI-Display(Nameofplayer(Pickedplayer))for(Allplayers)toSubtitlearea
Guess that'd be the fastest solution. No way to turn the entered chat string directly into a variable name, tho.
I need such thign for testing purposes. I have plenty of triggers that adds and removes players form specific groups in variables, and would like to see if it works properly. Is there a way to make a trigger that would list all players in specific group whenever i type i.e. "-show group1" ?
Guess that'd be the fastest solution. No way to turn the entered chat string directly into a variable name, tho.
@s3rius: Go
nice, thank you.
@Azzaaer: Go
How about command that would show controll type of a player slot? I.e.:
event: chat message "player1" action: shows controll type ( user, computer, none)
something like that. Is it possible?
Thanks in advance.
@Azzaaer: Go
In pseudo code:
Look at this and at the previous example and it shouldn't be hard to realize.
Would allow you to write stuff like "-player 4" or "-player 13"
@s3rius: Go
don't forget the extension to that function:
If (Status of YourPlayer == HasLeft) then Display: This player has left the building.
also the Status of player bit that s3rius said should be controller of player. if I remember correctly.