VoidExpanse/scope-items: Difference between revisions

From AtomicTorchWiki
Line 10: Line 10:


{{Scripting_api|AddItem|
{{Scripting_api|AddItem|
* string: name|
* int containerID, string item_type, int quantity|
string- a particular value of config.|
object with fields: item_id, xml_id, type, quantity  |
<pre style="margin:0px">var a = config.GetSetting("some_var");</pre>|
Add item of specific type and quantity to the specified container ID
Returns a server variable value by name. Basically used to read server config options from script.
}}
}}

Revision as of 08:54, 20 April 2015


Items scope

Used to access items containers, add or remove items.

Visibility: Global.

List of functions

AddItem
Arguments Returns Example
  • int containerID, string item_type, int quantity

object with fields: item_id, xml_id, type, quantity

Add item of specific type and quantity to the specified container ID

Description
{{{5}}}