How do i lock special or magic till a skill or magic is learned?

Joined
Jul 31, 2019
Messages
2
Reaction score
0
First Language
english
Primarily Uses
RMMV
i am wanting to to seal way magic and special for my game but it seems i cant find any where for help.
basicly i hwabe the fire magic learned at level 5 but i want to gray out the option till fire is learned
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,419
Reaction score
4,479
First Language
English
Primarily Uses
RMMV

I've moved this thread to RPG Maker MV. Please be sure to post your threads in the correct forum next time. Thank you.

 

Solar_Flare

Veteran
Veteran
Joined
Jun 6, 2020
Messages
470
Reaction score
204
First Language
English
Primarily Uses
RMMV
I have something that hides it until you learn a skill of that type, but not something that greys it out... just in case that's good enough for you, here it is:

Code:
(function(){
    Window_ActorCommand.prototype.addSkillCommands = function() {
        var skillTypes = this._actor.addedSkillTypes();
        skillTypes.sort(function(a, b) {
            return a - b;
        });
        var knownTypes = new Set();
        this._actor.skills().forEach(function(skill) {
            knownTypes.add(skill.stypeId);
        });
        skillTypes = skillTypes.filter(knownTypes.has.bind(knownTypes));
        skillTypes.forEach(function(stypeId) {
            var name = $dataSystem.skillTypes[stypeId];
            this.addCommand(name, 'skill', true, stypeId);
        }, this);
    };
})();
Note: with a few changes, that code could probably get the command greyed out instead of hidden.

To use it, copy-paste it into a plugin, save it as SFG_SkillTweaks.js (or whatever you want), and install it in your project.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts



It's my birthday! :kaoluv: Also, Cupcake is done and out(ill post about it in a couple of days, busy today)
Not to be greedy, but if anyone happens to have VX Ace or MV Resource steam keys that I don't have, lying around, I'd be happy to take them off your hands.
Got accepted into the architecture degree. Now I have all the doubting questions. Have to give them an answer in the next few days.
Just realized I have a few Steam gifts floating around. Anyone need RPG Maker MV or XP (Steam only)? Send me a message and I will send them on over!

EDIT: Just an RPG Maker MV gift remaining! XP has been taken.
*when you can do the Unity tutorials, but when you actually try and convert it to your own knowledge, it fails horribly*

Forum statistics

Threads
100,577
Messages
977,414
Members
132,163
Latest member
Guhh
Top