Difference between revisions of "Scripting"

From 4Dimensions
Jump to: navigation, search
(Created page with "Scripting")
 
Line 1: Line 1:
Scripting
+
=4D Scripting Reference=
 +
 
 +
There's a good scripting reference at [http://http://old.tbamud.com/Oasis_DG_pages/ TBA], but there are differences with 4D's scripting commands. These pages aim to give an overview of these commands.
 +
One notable difference is [[Scripting:Crafting|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:
 +
 
 +
*[[Scripting:A|A]]
 +
*[[Scripting:B|B]]
 +
*[[Scripting:C|C]]
 +
*[[Scripting:D|D]]
 +
*[[Scripting:E|E]]
 +
*[[Scripting:F|F]]
 +
*[[Scripting:G|G]]
 +
*[[Scripting:H|H]]
 +
*[[Scripting:I|I]]
 +
*[[Scripting:J|J]]
 +
*[[Scripting:K|K]]
 +
*[[Scripting:L|L]]
 +
*[[Scripting:M|M]]
 +
*[[Scripting:N|N]]
 +
*[[Scripting:O|O]]
 +
*[[Scripting:P|P]]
 +
*[[Scripting:Q|Q]]
 +
*[[Scripting:R|R]]
 +
*[[Scripting:S|S]]
 +
*[[Scripting:T|T]]
 +
*[[Scripting:U|U]]
 +
*[[Scripting:V|V]]
 +
*[[Scripting:W|W]]
 +
*[[Scripting:X|X]]
 +
*[[Scripting:Y|Y]]
 +
*[[Scripting:Z|Z]]

Revision as of 15:16, 1 February 2017

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: