GAMEMONKEI

Villager
Member
Joined
Apr 10, 2022
Messages
13
Reaction score
12
First Language
English
Primarily Uses
RMMZ
hey devs,
I'm making a game where there is a sad final boss where you shouldnt be able to use any items. Is there a way I can remove the 'Item' button during gameplay or a battle?
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
4,524
Reaction score
2,884
First Language
English
Primarily Uses
RMMV
Any plugin that allows for dynamic battle commands should do it.

HimeWorks had a plugin for MV that allowed you to toggle them with a plugin command - you could see if that works via FOSSIL, or if there's something comparable written for MZ.

Otherwise, it wouldn't be too hard to just do this:
Code:
Window_ActorCommand.prototype.makeCommandList = function() {
    if (this._actor) {
        this.addAttackCommand();
        this.addSkillCommands();
        this.addGuardCommand();
        if (!$gameSwitches.value(X))
            this.addItemCommand();
    }
};
where X is the ID of a switch in your game.

Save that code as a .js file in your plugins folder and add it to your plugin manager. Then when you have switch X turned on, the Items command shouldn't show up.
 

Hyk

Villager
Member
Joined
Oct 1, 2020
Messages
10
Reaction score
4
First Language
English
Primarily Uses
RMMZ
Any plugin that allows for dynamic battle commands should do it.

HimeWorks had a plugin for MV that allowed you to toggle them with a plugin command - you could see if that works via FOSSIL, or if there's something comparable written for MZ.

Otherwise, it wouldn't be too hard to just do this:
Code:
Window_ActorCommand.prototype.makeCommandList = function() {
    if (this._actor) {
        this.addAttackCommand();
        this.addSkillCommands();
        this.addGuardCommand();
        if (!$gameSwitches.value(X))
            this.addItemCommand();
    }
};
where X is the ID of a switch in your game.

Save that code as a .js file in your plugins folder and add it to your plugin manager. Then when you have switch X turned on, the Items command shouldn't show up.


Your JS worked for me in MZ and you saved me a lot of time. I just wanted to show my appreciation to you <3
 

Latest Threads

Latest Profile Posts

Watch Studio Blue play Numina by starlit in our latest RPG Maker Games Critique stream starting NOW!

Wish me luck. One of the leading experts on certain false shuffle is going to check if my skill is good enough to be called "not total trash".
Not an RPG Maker Update but I'm happy to say that I finally passed my drivers written test. Which makes me a happy guy.
FWRu-cYXkAAAUbl
Have you ever been in such a luck streak you felt fear something was wrong?

Forum statistics

Threads
123,126
Messages
1,154,184
Members
161,461
Latest member
TelorDadar69
Top