Difference between revisions of "Scripting"

From 4Dimensions
Jump to: navigation, search
Line 1: Line 1:
 +
__NOTOC__
 
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.
 
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.
 
One notable difference is [[Scripting:Crafting|crafting]], for which several new commands and fields have been added.
Line 7: Line 8:
  
 
Here ''nop'' is the '''command''', ''actor'' is the '''variable''', ''exp'' is the '''field''' and ''1000'' is the '''subfield'''.
 
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]]
+
All commands, fields and variables are grouped alphabetically:
*[[Scripting:B|B]]
+
 
*[[Scripting:C|C]]
+
[[#A|A]] [[#B|B]] [[#C|C]] [[#D|D]] [[#E|E]] [[#F|F]] [[#G|G]] [[#H|H]] [[#I|I]] [[#J|J]] [[#K|K]] [[#L|L]] [[#M|M]] [[#N|N]] [[#O|O]] [[#P|P]] [[#Q|Q]] [[#R|R]] [[#S|S]] [[#T|T]] [[#U|U]] [[#V|V]] [[#W|W]] [[#X|X]] [[#Y|Y]] [[#Z|Z]]
*[[Scripting:D|D]]
+
 
*[[Scripting:E|E]]
+
 
*[[Scripting:F|F]]
+
==A==
*[[Scripting:G|G]]
+
*[[#assemble|assemble]]
*[[Scripting:H|H]]
+
*[[#assemblycheck|assemblycheck]]
*[[Scripting:I|I]]
+
==B==
*[[Scripting:J|J]]
+
*[[#body|body]]
*[[Scripting:K|K]]
+
*[[#bodycheck|bodycheck]]
*[[Scripting:L|L]]
+
==C==
*[[Scripting:M|M]]
+
*[[#carriedamount|carriedamount]]
*[[Scripting:N|N]]
+
*[[#carriedweight|carriedweight]]
*[[Scripting:O|O]]
+
*[[#clan|clan]]
*[[Scripting:P|P]]
+
*[[#clanname|clanname]]
*[[Scripting:Q|Q]]
+
*[[#clanrank|clanrank]]
*[[Scripting:R|R]]
+
*[[#class_tier|class_tier]]
*[[Scripting:S|S]]
+
*[[#cool|cool]]
*[[Scripting:T|T]]
+
==D==
*[[Scripting:U|U]]
+
*[[#damroll|damroll]]
*[[Scripting:V|V]]
+
*[[#dest|dest]]
*[[Scripting:W|W]]
+
==E==
*[[Scripting:X|X]]
+
*[[#exp_needed|exp_needed]]
*[[Scripting:Y|Y]]
+
==F==
*[[Scripting:Z|Z]]
+
*[[#follower_in_room|follower_in_room]]
 +
*[[#forget_subskills|forget_subskills]]
 +
==G==
 +
==H==
 +
*[[#hitroll|hitroll]]
 +
*[[#hunger|hunger]]
 +
*[[#hunt|hunt]]
 +
*[[#hunting|hunting]]
 +
==I==
 +
*[[#is_cheater|is_cheater]]
 +
*[[#is_flying|is_flying]]
 +
*[[#is_helper|is_helper]]
 +
*[[#is_herd_cattle|is_herd_cattle]]
 +
*[[#is_herd_horse|is_herd_horse]]
 +
*[[#is_herd_sheep|is_herd_sheep]]
 +
*[[#is_hero|is_hero]]
 +
*[[#is_npc|is_npc]]
 +
*[[#is_pk|is_pk]]
 +
*[[#is_pregnant|is_pregnant]]
 +
*[[#is_roleplay|is_roleplay]]
 +
*[[#is_rpl|is_rpl]]
 +
*[[#is_wizinvis|is_wizinvis]]
 +
==J==
 +
==K==
 +
==L==
 +
*[[#longdesc|longdesc]]
 +
==M==
 +
*[[#maxcarriedamount|maxcarriedamount]]
 +
*[[#maxcarriedweight|maxcarriedweight]]
 +
*[[#maxstamina|maxstamina]]
 +
*[[#mid|mid]]
 +
==N==
 +
*[[#next_follower|next_follower]]
 +
*[[#nographics|nographics]]
 +
==O==
 +
*[[#omr|omr]]
 +
==P==
 +
*[[#people|people]]
 +
*[[#perc|perc]]
 +
*[[#pkdeaths|pkdeaths]]
 +
*[[#pkkills|pkkills]]
 +
*[[#pkpoints|pkpoints]]
 +
==Q==
 +
==R==
 +
*[[#remorts|remorts]]
 +
*[[#ridden_by|ridden_by]]
 +
*[[#riding|riding]]
 +
*[[#rpgroup|rpgroup]]
 +
==S==
 +
*[[#speed|speed]]
 +
*[[#stamina|stamina]]
 +
*[[#subdecrease|subdecrease]]
 +
*[[#subincrease|subincrease]]
 +
*[[#subskill|subskill]]
 +
==T==
 +
*[[#thirst|thirst]]
 +
*[[#trade|trade]]
 +
==U==
 +
==V==
 +
==W==
 +
==X==
 +
==Y==
 +
==Z==

Revision as of 17:49, 1 February 2017

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 commands, fields and variables are grouped alphabetically:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z


A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z