Scripting

From 4Dimensions
Revision as of 16:16, 1 February 2017 by Rynald (talk | contribs)

Jump to: navigation, search

4D Scripting Reference

There's a good scripting reference at TBA, but there are differences with 4D's scripting commands. These pages aim to give an overview of these commands. One notable difference is crafting, for which several new commands and fields have been added.

To give an example of the terms used in these pages, consider this line:

   nop %actor.exp(1000)%

Here nop is the command, actor is the variable, exp is the field and 1000 is the subfield. All new commands, fields and variables are grouped alphabetically: