Script Block

To define an MGS Natlang script, start a new block at the root level:

script $string {}
// or
$string {}

If the word script is absent, any string (other than dialog, settings etc.) will be interpreted as the script name.

These blocks must occur on the root level.

Block contents: any number of actions, labels, or combination blocks in the order they are to be executed in-game.

Example:

exampleScript {
  mutate count = 2;
  dejavu:
  play entity Bob animation 3 twice;
  show dialog {
    Bob "Eh? What's that?"
    PLAYER "I SAID that the goldfish wasn't there!"
    "I've told you $count$ times now!"
  }
  mutate count + 1;
  goto label dejavu;
  // this script will infinitely loop btw
}