In addition the interop functions, this mod also supports a number of custom events that get triggered/registered by the mod. They are as follows:
Sent Events - These events are sent by the mod, and contain data about the mods operations:
- "KCP:Initialized" - sent when the mod initializes. Contains no Data. Perk/Quest registration should be done in a callback from this event, to ensure data is stored correctly
"KBProgression:perkActivated" - Sent by the mod when a Perk is activated through the perk system. Contains a string property perk that contains the id of the perk that was activatedRemoved, Perk system and relevant events has spun off into it's own mod- "KCP:XPGained" - sent when the player is given XP. Contains two properties: added is a number property that contains the amount of XP that was given to the player, total is a number property that contains the player's new total XP count.
- ("KCP:grantXP", {amount = ..., message = ...}) - Instructs the mod to grant amount number of experience to the player, displaying message in the XP popup
- ("KCP:registerQuest", {id = ..., type = ...}) - instructs the mod to register id as a quest of type type
- ("KCP:registerBoss", {id = ...}) - instructs the mod to register id as a boss monster.
0 comments