Skip to content
Davis Cook edited this page Mar 4, 2018 · 9 revisions

Keywords

In the base base game keywords are things like "Block", "Retain", "Weak", "Vulnerable", etc... that are highlighted and have tooltip information associated with them.

API

addKeyword(String[] names, String description) - only call this in the EditKeywordsSubscriber callback or else your keywords might not be initialized properly

  • names - this should be an array of similar words to the word you want. (kinda like this {"Block", "Blocks"})
  • description - this should be the description for the keyword

Example

In your EditKeywordsSubscriber method, let's say you want to create a keyword called "Ice", which has the text "Will apply a buff to the next attack with Ice in its description.":

BaseMod.addKeyword({"ice"},"Will apply a buff to the next attack with Ice in its description.");

It's that simple! Sample and method provided/found by @Blank The Evil.

Clone this wiki locally