StoryScript
  • 👋Welcome to StoryScript
  • 🌏More languages
  • 🆕Change log
  • 💾Basics
    • 📪Introduction to StoryScript
    • 🖥️The syntax of the script files
  • 🎛️Commands
    • 🔌Script commands
Powered by GitBook
On this page
  1. Commands

Script commands

This page shows all the commands in the script file.

msg – A message from the character. Usage: msg "<personage>" <message>. Example: msg "John" Hello!. Output: [John] Hello!

setColor – Setting the color of the personage's name. Usage: setColor <color>. Example: setColor red.

A note on setColor

The color can be set either in hex format (#ffffff) or choose from 16 standard Minecraft colors. You can read them here.

run – Executing the standard Minecraft command. Usage: run <command>. Example: run kill @a.

setVar – sets the variable. Usage: setVar <variable name> <variable value> Example: setVar playerName John

You can also get the value of a variable in the msg command using $$<variable name>. Example: msg "NPC" His name is $$playerName.

PreviousThe syntax of the script files

Last updated 3 months ago

🎛️
🔌