Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 621 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 621 Bytes

Nydus script pool

Call your script with /ts scriptName (without .js). Scripts are ran in the global namespace (same as with /js).

To access the argument(s) passed to the script use the variable argument. This contains all the arguments as a single string.

Script template

(function(){
    const args = parseArguments(argument);

    /*
      Your script goes here.

      Do not use global variables. Instead, declare variables with `var`:
        var randomPlayer = Vars.playerGroup.all().random();

      Anything returned by this function is sent back to the player.
    */
})();