Hey, y'all! Trying to figure out the best, simplest way to go about this and I'm getting frustrated. I'd like to implement a skill system for my game where characters have access to spells based off equipment (like materia in Final Fantasy 7, or crests in Shadow Hearts). Everyone has their set catalogue of special abilities, and then the player can customize what additional spells they have.
Since Visustella, the MV materia-esque plugins, and Fossil don't all play nice together as I have sorely learned this evening, I figure the simplest way to get this affect would just be dedicated equipment with add skill traits. My complication is, I'd like for these spells to upgrade with x amount of use (cast fire 100 times, gain fire II and fire disappears). Do I need to make variables for every actor times every spell? Is there another way to do this?
Any advice is greatly appreciated!
EDIT:
So I managed to get this working via @Fomar0153's Equipment Skills plugin and Visustella Skills and States core.
Since Visustella, the MV materia-esque plugins, and Fossil don't all play nice together as I have sorely learned this evening, I figure the simplest way to get this affect would just be dedicated equipment with add skill traits. My complication is, I'd like for these spells to upgrade with x amount of use (cast fire 100 times, gain fire II and fire disappears). Do I need to make variables for every actor times every spell? Is there another way to do this?
Any advice is greatly appreciated!
EDIT:
So I managed to get this working via @Fomar0153's Equipment Skills plugin and Visustella Skills and States core.
1. Created an accessory (healing rune) with add skill traits for the pool of spells I wanted it to provide the player (Heal I, Heal II and Heal III), and using Equipment Skills plugin, allowed it to teach the actor two utility skills named like the upgraded spells (Heal II*, Heal III*).
2. Heal II* and Heal III* are tagged to not show up in battle or menu via the <Hide in Battle> and <Hide outside Battle> notetags.
3. Heal I is tagged to be invisible if the actor has learned Heal II*. Heal III is tagged to only be visible if the actor has learned Heal III*.
4. Heal II is tagged with the <JS Skill Enable> notetag to only be visible per the following code:
5. When the actor learns the utility skills that share names with Heal II and Heal III, it makes it to where the accessory only grants them the appropriate spell. If the player unequips the accessory from the actor, the spells are removed from their catalog, just like in FF7 or Shadow Hearts. If reequipped, the appropriate mastered spells are restored. Upgrade-able skills from equipment.
2. Heal II* and Heal III* are tagged to not show up in battle or menu via the <Hide in Battle> and <Hide outside Battle> notetags.
3. Heal I is tagged to be invisible if the actor has learned Heal II*. Heal III is tagged to only be visible if the actor has learned Heal III*.
4. Heal II is tagged with the <JS Skill Enable> notetag to only be visible per the following code:
<JS Skill Visible>
let x = 0
if (user.isLearnedSkill(SKILL ID A) && user.isLearnedSkill(SKILL ID B)) {
x = 3;
} else if (user.isLearnedSkill(SKILL ID A)) {
x = 2;
}
visible = x === 2;
</JS Skill Visible>
5. When the actor learns the utility skills that share names with Heal II and Heal III, it makes it to where the accessory only grants them the appropriate spell. If the player unequips the accessory from the actor, the spells are removed from their catalog, just like in FF7 or Shadow Hearts. If reequipped, the appropriate mastered spells are restored. Upgrade-able skills from equipment.