===== 🎯 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 [[bots:conditions|Conditions]] or perform results with [[bots:actions|Actions]].