Difference between revisions of "Category:Functions"
From SphereWiki
MrSugarCube (talk | contribs) (Created page with '==References== {| border="1" cellspacing="4" cellpadding="4" | '''Name''' || '''Read/Write''' || '''Description''' |- | ARGO || RW || Gets or sets a reference to a [[Characte...') |
(this Qval is already present in General Functions) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==References== | ==References== | ||
+ | The following references are available within function and trigger scripts. If an attempt is made to access a reference that is not listed here then the object the function/trigger is called on will be accessed instead. | ||
+ | |||
{| border="1" cellspacing="4" cellpadding="4" | {| border="1" cellspacing="4" cellpadding="4" | ||
| '''Name''' || '''Read/Write''' || '''Description''' | | '''Name''' || '''Read/Write''' || '''Description''' | ||
Line 10: | Line 12: | ||
==Properties and Functions== | ==Properties and Functions== | ||
+ | The following properties and functions are available within function and trigger scripts. If an attempt is made to access a property or function that is not listed here then the object the function/trigger is called on will be accessed instead. | ||
+ | |||
{| border="1" cellspacing="4" cellpadding="4" | {| border="1" cellspacing="4" cellpadding="4" | ||
| '''Name''' || '''Read/Write''' || '''Description''' | | '''Name''' || '''Read/Write''' || '''Description''' | ||
Line 35: | Line 39: | ||
| [[TRYSRV]] ''command'' || W || Executes ''command'', with the [[Servers|SERV]] object as SRC. | | [[TRYSRV]] ''command'' || W || Executes ''command'', with the [[Servers|SERV]] object as SRC. | ||
|} | |} | ||
+ | |||
+ | [[Category: Reference Compendium]] | ||
+ | [[Category: Scripts]] |
Latest revision as of 04:48, 19 January 2013
References
The following references are available within function and trigger scripts. If an attempt is made to access a reference that is not listed here then the object the function/trigger is called on will be accessed instead.
Name | Read/Write | Description |
ARGO | RW | Gets or sets a reference to a character or item. |
REFx | RW | Gets or sets a reference to a character or item. |
Properties and Functions
The following properties and functions are available within function and trigger scripts. If an attempt is made to access a property or function that is not listed here then the object the function/trigger is called on will be accessed instead.
Name | Read/Write | Description |
ARGN1 | RW | Gets the first parameter passed into the function, as a numeric value. |
ARGN2 | RW | Gets the second parameter passed into the function, as a numeric value. |
ARGN3 | RW | Gets the third parameter passed into the function, as a numeric value. |
ARGS | RW | Gets the entire argument string passed into the function. |
ARGV | R | Returns the number of parameters passed into the function. |
ARGV[n] | R | Returns the nth parameter passed into the function. (zero-based) |
FLOAT.name | RW | Gets or sets the value of a local floating point variable. |
LOCAL.name | RW | Gets or sets the value of a local variable. |
RETURN value | W | Exits the function, passing value back to whatever called it (if the function was used as <FUNCTION>. value can be either a string or numeric value. |
TRY command | W | Executes command. |
TRYSRV command | W | Executes command, with the SERV object as SRC. |
This category currently contains no pages or media.