Spell Groups/Class/Limited uses

Good day,

I could have sworn that I remembered someone had made a script for this, but I can't find it.
I must be searching for the wrong name. Can't find it online or in my script list.

Short of myself recreating the wheel with this I was wondering if anyone has or knows where the script I'm looking for is?

So...
Final Fantasy 1 Spell uses/limit etc.
Level 1 spells have a limited number of times it can be used before needing to rest at the inn.
hqdefault.jpg

Final Fantasy Mystic Quest spell uses/limits
spells are grouped into three groups and can be used only a limited number of times before resting.
final-fantasy-mystic-quest-magic.png

Anyone know if this has been done already?

* update. I've completed a Mystic Quest style spell window. But it still needs battle implementation to work properly.
After all the help you gave I'm trying to do the same. But I think I couldn't find it neither. Is this what you wanted? It seems is not but maybe: https://forums.rpgmakerweb.com/index.php?threads/spell-tiers.28188/
Nope. I saw that one and looked at the description and it looks like it's more a DND style spell system.
From what I can see in the code it won't do what I think it should for what I'm looking for.
And in testing it is does something that I haven't seen. It seems to remove the skill type and group them into levels. But it does not limit how many times it can be used.

Actually after looking on the internet some more, that script is close to what FF1 has but it would need to be reworked to be functional to the same style where skills don't use magic, they simple consume one point.
It'd be simply mpmax -1 mp for every single spell they use. The only difference is that all skills cost you 1 mp and "appear" to be separated by levels or tiers. Thus, it'd need to read some data from the actor DB and then the skill DB as well.
It'd be simply mpmax -1 mp for every single spell they use. The only difference is that all skills cost you 1 mp and "appear" to be separated by levels or tiers. Thus, it'd need to read some data from the actor DB and then the skill DB as well.
That approach says I can use level 1 spells until I have no more mp.

The game play says you can use level 1 spells x times then your done, but you can use level two spells as you have not used up their use count until you rest at an inn to restore your spell use count.
My advice would be to keep the mp as the base for a secondary mp cost tracker like "ap" as a hash with such custom level mp cost aka uses.
Hey Roni, I might be wrong but couldn't you use yanfly's skill restriction script?
Maybe you could use the <restrict eval> function with a variable that determines the amount of time a skill can be used, and that, that variable is refreshed when you go to a inn.
No, that would be per skill. The group White or Level 1 is for all spells in that group.
No, that would be per skill. The group White or Level 1 is for all spells in that group.
I was thinking a lot about this. Wouldn't my idea actually works? If you use the same variable for all the skills that are part of the "group white or level 1", if they share all the same variable, they would be affected the same by the limitation of uses. I'm wrong?
perhaps, but I think I'll just make something up.

Original thread: https://forums.rpgmakerweb.com/threads/spell-groups-class-limited-uses.155493/