Table of Contents
π― Bot Triggers
Triggers are events that start your botβs logic. When a trigger occurs, the bot checks conditions (if any) and then performs actions.
π Player Clicks
- Triggered when a player clicks on the bot.
- Commonly used for dialogue, trading, or interaction.
- Example: βWhen player clicks me β Show dialogue βHello!ββ
β° Timer
- Triggered after a set amount of time passes.
- Can repeat at intervals or run once.
- Example: βEvery 30 seconds β Broadcast βThe shop is open!ββ
π Player Nearby
- Triggered when a player comes within a defined radius of the bot.
- Radius can be set in tiles.
- Example: βWhen player within 2 tiles β Say βWelcome traveler!ββ
π Chat Message
- Triggered when a player types a specific chat message.
- Useful for keyword responses or commands.
- Example: βWhen chat message = βhelpβ β Show dialogue βHereβs what I can doβ¦ββ
πͺ World Enter
- Triggered when a player enters the world containing the bot.
- Great for greeter bots or tutorials.
- Example: βOn world enter β Show dialogue βWelcome to my world!ββ
π Time
- Triggered at a specific inβgame time.
- Can be used for scheduled events or timed interactions.
- Example: βAt 12:00 game time β Broadcast βItβs noon!ββ
Summary
Triggers are the starting point of bot logic. You can:
- React to player clicks
- Run timed events
- Detect nearby players
- Respond to chat messages
- Greet players entering your world
- Schedule actions at specific times
Next: learn how to refine logic with Conditions or perform results with Actions.
