Module

From Legends of Aria Admin and Modding Wiki
Jump to: navigation, search

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