Difference between revisions of "Module"

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search
(Created page with "== What Makes a Module == A Module is a script that is attached to a GameObj in one of three ways. ==== Template ==== Given I have 'name_of_script_file.lua' in my scrip...")
 
 
Line 29: Line 29:
 
# /attach name_of_script_file
 
# /attach name_of_script_file
 
# Target GameObj
 
# Target GameObj
 +
[[Category:Architecture]][[Category:Modding]]

Latest revision as of 22:03, 29 October 2016

What Makes a Module

A Module is a script that is attached to a GameObj in one of three ways.

Template

Given I have 'name_of_script_file.lua' in my scripts folder, in my template_file.xml I can:

<ScriptEngineComponent>
	<LuaModule Name="name_of_script_file" />
</ScriptEngineComponent>

AddModule

Given I have 'name_of_script_file.lua' in my scripts folder, in another running Module I can:

gameObj:AddModule("name_of_script_file")

God characters

Given I have 'name_of_script_file.lua' in my scripts folder, a God character can:

  1. /info
  2. type in "name_of_script_file" without quotes
  3. click 'Attach'

or

  1. /attach name_of_script_file
  2. Target GameObj