completeAchievement

Call when the achievement is completed. Sets the date completed and the current player as the completer.


open fun completeAchievement(completedByPlayer: PersonAPI)

Call when the achievement is completed. Sets the date completed and the player who completed it. Does nothing if already completed; uncomplete first, if you want to re-complete it for some reason.

Parameters

completedByPlayer

The player's character who completed the achievement, if applicable.


open fun completeAchievement(completedByPlayer: PersonAPI, textPanel: TextPanelAPI)

Call when the achievement is completed. Sets the date completed and the player who completed it. Does nothing if already completed; uncomplete first, if you want to re-complete it for some reason.

Parameters

completedByPlayer

The player's character who completed the achievement, if applicable.

textPanel

The text panel to send an update to, if applicable, so the player sees the update during a dialog.