Module ...

Handles achievements 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:hasAchievement (id) Do we have this one ?
_M:loadDefinition (dir) Loads achievements
_M:newAchievement (t) Make a new achievement with a name and desc
_M:showAchievement (title, a) Show an achievement gain dialog


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 achievement to gain
  • src: who did it
  • ...:

Return value:

true if an achievement was gained
_M:gainPersonalAchievement (silent, id, src, ...)
Gain Personal achievement for player only

Parameters

  • silent: suppress the message to the player
  • id: the achievement to gain
  • src: who did it
  • ...:
_M:hasAchievement (id)
Do we have this one ?

Parameters

  • id:
_M:loadDefinition (dir)
Loads achievements

Parameters

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

Parameters

  • t:
_M:showAchievement (title, a)
Show an achievement gain dialog

Parameters

  • title:
  • a:

Valid XHTML 1.0!