COPY_SCRIPT

The encoder literally copies all the actions from the copied script and inserts them where COPY_SCRIPT is being used. This happens recursively.

COPY_SCRIPT converts and adapts label references, jumps that eventually become action indices, when copied. Feel free to use COPY_SCRIPT for literally any script you want!

See: COPY_SCRIPT_uses

Example JSON

{
  "action": "COPY_SCRIPT",
  "script": "scriptName"
}

MGS Natlang

Example

script {
  copy scriptName;
}

Dictionary entry

copy (script) $script:string (;)