Prestige Class Titles v1.02
Trilobytes by Trihan
Trilobytes by Trihan
Introduction
This plugin provides the developer the facility to have actor classes automatically change their names as the actor possessing that class hits defined level milestones.
Features
- Set up a list of level points where a class will change its displayed name
- Provide evaluated code blocks to determine class names programmatically
Screenshots
How to Use
Download the plugin's .js file to your project's js/plugins folder and save it as TLB_PrestigeClassTitles.js. Open your plugin manager (
With the plugin installed, you can use the notetag
Code:
<NameList>
level1:name1
level2:name2
level3:name3
</NameList>
in any class's notebox.
For users with more Javascript knowledge, a <NameListCustom> tag is provided. Place valid Javascript code inside the tag and it will be used to determine the class name. You can use 'a' for the actor. The final result should be stored in the variable 'text'. For example:
JavaScript:
<NameList Custom>
if (a.skills().contains($dataSkills[10])) {
text = 'Prestige Class C';
} else if (a.equips()[0].id == 30 && a.skills().contains($dataSkills[18]) && a.level >= 10) {
text = 'Prestige Class B3';
} else if (a.equips()[0].id == 30) {
text = 'Prestige Class B2';
} else if (a.skills().contains($dataSkills[18])) {
text = 'Prestige Class B1';
} else if (a.skills().contains($dataSkills[17])) {
text = 'Prestige Class A';
} else {
text = 'Fallback';
}
</NameList Custom>
If the actor has skill 10, their class will be called "Prestige Class C". Otherwise, if they have weapon 30 equipped, skill 18, and a level greater then or equal to 10, it will be "Prestige Class B3". And so on.
Plugin Commands / Script Calls
This plugin has no commands or script calls.
Demo
N/A
Download
This plugin is available from itch.io
Terms and Credits
You may use this plugin for commercial or non-commercial games. Please credit Trilobytes or Trihan.
Special Thanks
@Puppet Knight for the original plugin request
Mánibranðr System for the plugin name suggestion