===== 💬 Bot Actions ===== **Actions** are what your bot does after a trigger (and optional conditions). They are the results or responses that players see. **Info** \\ You can click here to find out more about [[definitions:variables|variables]] ---- ==== 💬 Say Message ==== - Displays a message above the bot. \\ - Simple way to make bots talk. \\ - Example: “Say ‘Hello traveler!’” \\ ---- ==== 📢 Broadcast ==== - Sends a message to all players in the world. \\ - Useful for announcements or timed events. \\ - Example: “Broadcast ‘The shop is now open!’” \\ ---- ==== 💭 Show Dialogue ==== - Opens a dialogue box for the player. \\ - Can include longer text or story content. \\ - Example: “Show dialogue ‘Welcome to my quest!’” \\ ---- ==== 📋 Dialogue Menu ==== - Shows a menu with options the player can choose. \\ - Each option can lead to different actions. \\ - Example: “Dialogue menu: Buy, Sell, Leave.” \\ ---- ==== ⏱️ Wait ==== - Pauses the bot’s logic for a set time. \\ - Useful for pacing dialogue or sequences. \\ - Example: “Wait 5 seconds → Say ‘Are you still there?’” \\ ---- ==== 🎁 Give Item ==== - Gives an item from the bot’s inventory to the player. \\ - Example: “Give item: Apple.” \\ ---- ==== 📥 Take Item ==== - Takes an item from the player’s inventory. \\ - Example: “Take item: Ticket.” \\ ---- ==== 💰 Request Payment ==== - Asks the player to pay tokens. \\ - Often used with vendor or ticket bots. \\ - Example: “Request payment: 10 ELPACO.” \\ ---- ==== 📊 Set Variable ==== - Sets a bot variable to a specific value. \\ - Example: “Set variable score = 0.” \\ ---- ==== 🎲 Set Random ==== - Sets a bot variable to a random number within a range. \\ - Example: “Set random between 1 and 10.” \\ ---- ==== ➕ Increment Variable ==== - Adds 1 to a bot variable. \\ - Example: “Increment score.” \\ ---- ==== ➖ Decrement Variable ==== - Subtracts 1 from a bot variable. \\ - Example: “Decrement lives.” \\ ---- ==== 🔢 Add to Variable ==== - Adds a chosen number to a bot variable. \\ - Example: “Add 5 to score.” \\ ---- ==== ➗ Subtract from Variable ==== - Subtracts a chosen number from a bot variable. \\ - Example: “Subtract 2 from health.” \\ ---- ==== 👤 Set Player Variable ==== - Sets a variable specific to the player. \\ - Example: “Set player coins = 0.” \\ ---- ==== 👤➕ Increment Player Variable ==== - Adds 1 to a player variable. \\ - Example: “Increment player score.” \\ ---- ==== 👤➖ Decrement Player Variable ==== - Subtracts 1 from a player variable. \\ - Example: “Decrement player lives.” \\ ---- ==== 👤🔢 Add to Player Variable ==== - Adds a chosen number to a player variable. \\ - Example: “Add 10 to player coins.” \\ ---- ==== 👤➗ Subtract from Player Variable ==== - Subtracts a chosen number from a player variable. \\ - Example: “Subtract 5 from player coins.” \\ ---- ==== 🎟️ Give Ticket ==== - Gives a ticket to the player. \\ - Example: “Give ticket for arena entry.” \\ ---- ==== 🎫 Take Ticket ==== - Takes a ticket from the player. \\ - Example: “Take ticket after entry.” \\ ---- ==== 🌀 Teleport Player ==== - Moves the player to a different location in the world. \\ - Example: “Teleport player to coordinates (10, 20).” \\ ---- ==== 🎰 Random Loot ==== - Gives the player a random item from the bot’s inventory. \\ - Example: “Random loot: Apple, Banana, Orange.” \\ ---- ==== 🏆 Leaderboard ==== - Increases a player’s score on a leaderboard. \\ - Example: “Leaderboard increment: +1 point.” \\ ---- ==== 📊 Show Leaderboard ==== - Displays the leaderboard to the player. \\ - Example: “Show leaderboard: Top 10 players.” \\ ---- ==== 🛑 End Execution ==== - Stops the current logic sequence. \\ - Useful for ending dialogue or preventing further actions. \\ - Example: “End execution after reward.” \\ ---- ===== Summary ===== Actions are the results of your bot’s logic. You can: * Make bots talk or broadcast messages * Give or take items and tickets * Request payments * Control [[definitions:variables|variables]] for bots and players * Teleport players or give random loot * Update and show leaderboards * End logic sequences Combine actions with [[bots:triggers|Triggers]] and [[bots:conditions|Conditions]] to create powerful interactive bots.