forked from SkyeStarfall/BaseMod
-
Notifications
You must be signed in to change notification settings - Fork 119
Custom Keywords
Blank edited this page Mar 3, 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)
-
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 PostInitializationSubscriber 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
.