Difference between revisions of "NCScriptsObjectFunctions"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "<center><p style="color: #DDDD88;font-size: 24px">General Script Information</p></center> <center><p style="width: 60%">Below is a table showing the various script examples, h...")
 
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<center><p style="color: #DDDD88;font-size: 24px">General Script Information</p></center>
+
<center><p style="width: 60%">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</p></center>
<center><p style="width: 60%">Below is a table showing the various script examples, here is a [https://adminwiki.legendsofaria.com/lua-reference/ Legends of Aria Lua Reference]. </p></center>
+
<p style="color: #DDDD88;font-size: 22px;width:60%;margin: 0 auto">Object Functions & Examples</p>
 
<center>
 
<center>
 
{| class="wikitable" | style="width: 60%"
 
{| class="wikitable" | style="width: 60%"
 
|-
 
|-
|style="width: 25%"| [[NCScriptsGlobalFunctions|Global Functions]] || Section devoted to Global Function Examples.
+
|style="width: 40%"| <p style="color: #DDDD88;font-size: 18px">AddModule(filename,table)</p>filename - Name of script file<br>table - Initializer table || The table may be omitted but allows you to send a table package to the script, then use the ModuleAttached Event to handle the table package.
|-
+
|}
| [[NCScriptsObjectFunctions|Object Functions]] || Section devoted to Object Function Examples.
 
|-
 
| [[NCScriptsObjectEventHandling|Event Handling]] || Section devoted to Event Handling Examples.
 
 
</center>
 
</center>
 +
<p style="width: 60%;margin: 0 auto">Example of adding a module without a initializer table</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  Code Block
 +
  Code Block
 +
  Code Block
 +
</div>
 +
<p style="width: 60%;margin: 0 auto">Example of adding a module with a initializer table</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  Code Block
 +
  Code Block
 +
  Code Block
 +
</div>
 +
<p style="width: 60%;margin: 0 auto">Example of Handling the initializer table on an object</p>
 +
<div style="width:60%;margin: 0 auto">
 +
  Code Block
 +
  Code Block
 +
  Code Block
 +
</div>

Latest revision as of 09:08, 8 November 2019

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

Object Functions & Examples

AddModule(filename,table)

filename - Name of script file
table - Initializer table
The table may be omitted but allows you to send a table package to the script, then use the ModuleAttached Event to handle the table package.

Example of adding a module without a initializer table

 Code Block
 Code Block
 Code Block

Example of adding a module with a initializer table

 Code Block
 Code Block
 Code Block

Example of Handling the initializer table on an object

 Code Block
 Code Block
 Code Block