How can I make it so that I can make secret codes to activate triggers, such as -aresisattractive and make it so that other players can't see what I typed?
Reitiration: I want this: I type a word. It doesn't show up. It activates a trigger.
You can run a trigger to clear chat messages once you type that message (use the event "chat message entered" to run the trigger). That's going to clear all of the messages for all players though, which is annoying. You can get around that by using a dialog text box instead. That's more complicated, but you can have a trigger run when the "okay" button is pressed that checks the content of the edit box.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
I know it's not exactly what you asked for, but if all your worried about is other players typing in the same message and running triggers, you can require the player who typed it to be you right in the trigger. So anyone can type in the secret code, but it only runs the trigger when YOU do it.
If you use a custom chatbox with dialogs or error messages you will have more control over what gets printed to the screen (either globally or to individual players.) It's more work than using the default chat, obviously, but it would allow you to do what you described.
Maybe a better way would be to create a dialog only visible for your handle, which when clicked runs a series of cheats, like for exmaple reveal all fothe map
I and Zelda have it so that all our cheats only work for people with the Admin rank in our game, which is determined by a trigger that checks the handles of all players and gives the admin status to specific handles. It doesn't matter if players see our cheat messages then because they can't use them. And most of our cheats are used through a dialog anyway.
Also, it's possible to detect if the map was run through the editor (In which case you have no handle, so make sure to check for that as well when you set which players are allowed to use cheats)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How can I make it so that I can make secret codes to activate triggers, such as -aresisattractive and make it so that other players can't see what I typed? Reitiration: I want this: I type a word. It doesn't show up. It activates a trigger.
@Ares257: Go
You can run a trigger to clear chat messages once you type that message (use the event "chat message entered" to run the trigger). That's going to clear all of the messages for all players though, which is annoying. You can get around that by using a dialog text box instead. That's more complicated, but you can have a trigger run when the "okay" button is pressed that checks the content of the edit box.
@zeldarules28: Go
What action would I use? -To clear chat
I believe it's called "Show/Hide Text Messages".
@zeldarules28: Go
When I use that, you can still see it in the Message Logs.
You could use a dialog with an edit box
I know it's not exactly what you asked for, but if all your worried about is other players typing in the same message and running triggers, you can require the player who typed it to be you right in the trigger. So anyone can type in the secret code, but it only runs the trigger when YOU do it.
If you use a custom chatbox with dialogs or error messages you will have more control over what gets printed to the screen (either globally or to individual players.) It's more work than using the default chat, obviously, but it would allow you to do what you described.
Maybe a better way would be to create a dialog only visible for your handle, which when clicked runs a series of cheats, like for exmaple reveal all fothe map
I and Zelda have it so that all our cheats only work for people with the Admin rank in our game, which is determined by a trigger that checks the handles of all players and gives the admin status to specific handles. It doesn't matter if players see our cheat messages then because they can't use them. And most of our cheats are used through a dialog anyway.
Also, it's possible to detect if the map was run through the editor (In which case you have no handle, so make sure to check for that as well when you set which players are allowed to use cheats)