Grey out command

Lady

Mapper, pixel artist
Veteran
Joined
Jul 27, 2013
Messages
46
Reaction score
50
First Language
Chinese
Primarily Uses
RMMV
I'm trying to make a small pop up window with use and discard command. What should I write to grey out "use" for unusable item.


Window_ItemCommand.prototype.makeCommandList = function() {
this.addCommand(use, 'use');
this.addCommand(discard, 'discard');
};
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
What makes it usable/unusable?

You just need to add a true/false as the third argument.

If it's a normal item and you're determining usable/unusable in the same way that the default Window_ItemList does, then you can use $gameParty.canUse(item) as the third argument.
 

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top