Module ...

Handles archievements in a world

Functions

_M:achievementWho (src) Format an achievement source By default just uses the actor's name, you can overload it to do more
_M:gainAchievement (id, src, ...) Gain an achievement
_M:gainPersonalAchievement (silent, id, src, ...) Gain Personal achievement for player only @
_M:loadDefinition (dir) Loads achievements
_M:newAchievement (t) Make a new achivement with a name and desc


Functions

_M:achievementWho (src)
Format an achievement source By default just uses the actor's name, you can overload it to do more

Parameters

  • src: the actor who did it
_M:gainAchievement (id, src, ...)
Gain an achievement

Parameters

  • id: the achivement to gain
  • src: who did it
  • ...:
_M:gainPersonalAchievement (silent, id, src, ...)
Gain Personal achievement for player only @

Parameters

  • silent:
  • id: the achivement to gain
  • src: who did it
  • ...:
_M:loadDefinition (dir)
Loads achievements

Parameters

  • dir:
_M:newAchievement (t)
Make a new achivement with a name and desc

Parameters

  • t:

Valid XHTML 1.0!