Class engine.generator.interface.WorldAchievements
Handles achievements in a world
Methods
engine.generator.interface.WorldAchievements:loadDefinition (dir)
Loads achievements
engine.generator.interface.WorldAchievements:newAchievement (t)
Make a new achievement with a name and desc
engine.generator.interface.WorldAchievements:gainPersonalAchievement (silent, id, src)
Gain Personal achievement for player only
engine.generator.interface.WorldAchievements:gainAchievement (id, src)
Gain an achievement
engine.generator.interface.WorldAchievements:setAchievement (id, src)
Force achievement Does not broadcast, does not tell, does not check reqs
engine.generator.interface.WorldAchievements:showAchievement (title, a)
Show an achievement gain dialog
engine.generator.interface.WorldAchievements:achievementWho (src)
Format an achievement source By default just uses the actor's name, you can overload it to do more
engine.generator.interface.WorldAchievements:hasAchievement (id)
Do we have this one ?
Methods
- engine.generator.interface.WorldAchievements:loadDefinition (dir)
-
Loads achievements
Parameters:
- dir
- engine.generator.interface.WorldAchievements:newAchievement (t)
-
Make a new achievement with a name and desc
Parameters:
- t
- engine.generator.interface.WorldAchievements: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
- engine.generator.interface.WorldAchievements:gainAchievement (id, src)
-
Gain an achievement
Parameters:
- id the achievement to gain
- src who did it
Returns:
-
true if an achievement was gained
- engine.generator.interface.WorldAchievements:setAchievement (id, src)
-
Force achievement
Does not broadcast, does not tell, does not check reqs
Parameters:
- id
- src
- engine.generator.interface.WorldAchievements:showAchievement (title, a)
-
Show an achievement gain dialog
Parameters:
- title
- a
- engine.generator.interface.WorldAchievements: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
- engine.generator.interface.WorldAchievements:hasAchievement (id)
-
Do we have this one ?
Parameters:
- id