I'm looking to set up a magic system that allows you to equip certain items, and depending on the items you have equipped, it will unlock certain magic spells for use (similar to the materia system). But instead of unlocking additional spells by leveling the materia, I want to tie it to the character's parameters where as a stat reaches a certain threshold, more spells become available for them to use from that item.
For example, lets say a character with 20 M.Atk equips a fire crystal, and it gives them access to a basic fireball spell. But once they level up a few times and their M.Atk reached 50, it unlocks a newer spell for them to use. But then if you unequip the crystal and move it to a character with only 30 M.Atk, that character will only be able to use the basic spell until they raise their M.Atk higher while the character no longer equipped with the crystal loses access to all the spells the crystal provided unless they reequip it. This way it gives magically inclined characters earlier/exclusive access to the more powerful spells since their M.Atk will reach higher levels faster, while the less magically inclined characters will have to wait longer before they can access even just the mid-level spells. And it will also give the player more freedom with character builds versus just giving everyone a set list of spells that the character learn at various levels.
I've been trying to figure a way to do this with the basic database options, but nothing I've attempted has ended up working, so I think I may be stuck having to go with a plugin, and scripting is far from my forte lol. Any help with this would be greatly appreciated.
For example, lets say a character with 20 M.Atk equips a fire crystal, and it gives them access to a basic fireball spell. But once they level up a few times and their M.Atk reached 50, it unlocks a newer spell for them to use. But then if you unequip the crystal and move it to a character with only 30 M.Atk, that character will only be able to use the basic spell until they raise their M.Atk higher while the character no longer equipped with the crystal loses access to all the spells the crystal provided unless they reequip it. This way it gives magically inclined characters earlier/exclusive access to the more powerful spells since their M.Atk will reach higher levels faster, while the less magically inclined characters will have to wait longer before they can access even just the mid-level spells. And it will also give the player more freedom with character builds versus just giving everyone a set list of spells that the character learn at various levels.
I've been trying to figure a way to do this with the basic database options, but nothing I've attempted has ended up working, so I think I may be stuck having to go with a plugin, and scripting is far from my forte lol. Any help with this would be greatly appreciated.