Hi all! I need to make it so in my mod that when I write a certain message in the chat, the required procedure occurs. I know about the global trigger “the player used the chat”, but I don’t know how to make it so that when a certain message occurs(
Since the "when player used the chat" is a global trigger, on the bottom left part of the procedure menu, you'll find the Provided Dependencies that him allows you to use, so you can work with that:
Double left click the "text" dependency, it will give you a text block.
On the logic procedure blocks, search the one for texts (the green one)
Go on the text procedure blocks and get the empty text one
Write what you want to check for in the empty text
Put the text dependency alongside the text you want to check in the logic one
Put it all on a if
Call your procedure
If you want to not show what the player type, on the advanced tab of procedure blocks, search for the "Cancel event that called global trigger"
After all of that, it should probably look like this (Ignore the extra detection for the armor lol):
Since the "when player used the chat" is a global trigger, on the bottom left part of the procedure menu, you'll find the Provided Dependencies that him allows you to use, so you can work with that:
If you want to not show what the player type, on the advanced tab of procedure blocks, search for the "Cancel event that called global trigger"
After all of that, it should probably look like this (Ignore the extra detection for the armor lol):
THANKS!!!!!!!!!