forked from SkyeStarfall/BaseMod
-
Notifications
You must be signed in to change notification settings - Fork 118
Custom Keywords
Blank edited this page Jul 23, 2018
·
9 revisions
In the base base game keywords are things like "Block", "Retain", "Weak", "Vulnerable", etc... that are highlighted and have tooltip information associated with them.
addKeyword(String[] names, String description)
- only call this in the receiveEditKeywords
callback that you get from EditKeywordsSubscriber
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
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
.