Media Messages
Let’s continue working on the mission.yarn
file.
...
-> Send me the operation plan
[photo mission_plan.jpg \]Here it is, the operation plan. Remember, our goal is to destroy the criminal base.
Here, we’ve added a media message with an image of the operation plan. But to ensure that the correct image is sent and not a placeholder generated by t-Plot, you need to add this image to the Media
folder of your project.
Sending Statuses
...
-> Send me the operation plan
<<wait 3>>
<<upload_photo 4>>
<<wait 1>>
<<typing 3>>
Damn, someone is jamming the signal, the message isn’t getting through!
We can also send statuses, such as "uploading a photo" or "recording a voice message," and even not send the actual message afterward. This helps create a more realistic interaction with the agent.
When you use the wait
, upload_photo
, record_voice
, record_video_note
, or typing
commands before a message, you are taking control of t-Plot’s standard behavior. This means default timings will no longer apply.
Changing Reactions
...
Damn, someone is jamming the signal, the message isn’t getting through!
-> What’s happening?
They know I’m here.
<<reaction fight>>
<<wait 10>>
Phew! I knocked them out, but I need to get out of here quickly.
You can also change the reaction to a player’s message. Here, we leave the player waiting for 10 seconds. During this time, the player might try to send a message. With the fight
reaction, you can send short replies like "Not the best time to chat" or "Busy fighting bad guys!" This adds more realism to the interaction.
The reaction only applies to one message, after which it resets to the default reaction set in the node or in the general settings.
Conclusion
Here we’ve described some techniques for working with t-Plot. I'm confident you’ll find your own ways to use these commands to create a unique and engaging experience for the player.