Module ...

Handles actors life and death

Functions

_M:defineResource (name, short_name, talent, regen_prop, desc, min, max) Defines resource Static! All actors will now have :getResourcename() and :incResourcename() methods as well as a .max_resourcename and .resourcename properties.
_M:regenResources () Regen resources, shout be called in your actor's act() method


Functions

_M:defineResource (name, short_name, talent, regen_prop, desc, min, max)
Defines resource Static! All actors will now have :getResourcename() and :incResourcename() methods as well as a .max_resourcename and .resourcename properties. It is advised to NOT access .resourcename directly and use the get/inc methods. They handle talent dependencies

Parameters

  • name:
  • short_name:
  • talent:
  • regen_prop:
  • desc:
  • min:
  • max:
_M:regenResources ()
Regen resources, shout be called in your actor's act() method

Valid XHTML 1.0!