Player, text based commands...

yamifowl

Member
Reaction score
2
People please help...
How can I make a "text based command" to all players?
Like:
"ANY PLAYER" write: -cam1
Then change camera of this player to "camera_001"
How to make that?
I know I can do by setting each player and a trigger to each one...
But that will make me lost about 1 day since I got to make about 400 triggers...
xD
 

Romek

Super Moderator
Reaction score
964
actually in the forum mrules it saiys not to do that and I can't be bothered.

just make a substring event

Player1 types -cam as a substring

then the actions

If then else
if entered substring (5-6) is equal to 1
then apply cam 1


for the else, just repeat above.
You'll have to do this for every player (12 triggers)
 

Tom Jones

N/A
Reaction score
437
romek said:
actually in the forum mrules it saiys not to do that and I can't be bothered.
What in the world are you reffering to? And don't use substring event, it's to much of a hassle. Use this instead:
Code:
Some Trigger
    Events
        Player - Player 1 (Red) types a chat message containing <Empty String> as An exact match
    *One of those events for each player*
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Entered chat string) Equal to -cam *somevalue*
            Then - Actions
                Camera - Apply *some camera* for (Triggering player) over 0.00 seconds
            Else - Actions
The condition is a string comparison.
 

yamifowl

Member
Reaction score
2
Ok ok people...
I think you didint got my point...
I kinda know how to do this...
I did it...
I would like to know, if there is a way to make a "GENERIC" o this trigger...
Like, 1 trigger, no matter which player, if one player writes it, it will get the cam...
=D
Btw, Tom Jones...
I saw your trigger, and I want to ask (Cause maybe you did what I asked for) when you set lots of "Events" for a action to take place, must all the event happen for the action to happen?

Thanks!
 
B

Blue_Hand

Guest
or :
Code:
Apply cam
    Events
        Player - Player 1 (Red) types a chat message containing -cam as A substring
        Player - Player 2 (Blue) types a chat message containing -cam as A substring
        Player - Player 3 (Teal) types a chat message containing -cam as A substring
        Player - Player 4 (Purple) types a chat message containing -cam as A substring
........................... add your players Here
    Conditions
    Actions
        Camera - Apply CameraArray[(Integer((Substring((Entered chat string), 5, 6))))] for (Triggering player) over 0.00 seconds
but first set values of cameraArray to all your cameras
 

Tom Jones

N/A
Reaction score
437
>I saw your trigger, and I want to ask (Cause maybe you did what I asked for) when you set lots of "Events" for a action to take place, must all the event happen for the action to happen?
Nope, only one of the events have to take place for the actions to fire. You can have as many events as you want, allthough you should limit it to one event, unless it's a trigger like this, a dialog trigger, or something else that may require it.
 
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