User Tools

Site Tools


bots:actions

πŸ’¬ 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 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 variables for bots and players
  • Teleport players or give random loot
  • Update and show leaderboards
  • End logic sequences

Combine actions with Triggers and Conditions to create powerful interactive bots.

bots/actions.txt Β· Last modified: by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki