RCXDan

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
290
Reaction score
649
First Language
English
Primarily Uses
RMVXA
So what this is, I am using Himeworks's Item Stack Size script and was hoping if there could be an addon that changes the color of the number to indicate this item has reached its maximum holding size.

20200901_150358.jpg


Example: see how the bread on the above image has blue numbers? That shows it's at max capacity. That's what I want.
 

A-Moonless-Night

WINTER IS COMING
Veteran
Joined
Mar 17, 2012
Messages
695
Reaction score
451
First Language
English
Primarily Uses
RMVXA
This should work, depending on what other item/shop-related scripts you have:
Ruby:
class Window_ItemList < Window_Selectable
 
  def max_stack_colour
    text_color(25) # change the number to one of the colours in the windowskin
#~     Color.new(200, 123, 234) # uncomment this if you want to set RGB values yourself
  end
 
  alias amn_himestack_winditemlist_drawitemnum  draw_item_number
  def draw_item_number(rect, item)
    change_color(max_stack_colour) if $game_party.item_number(item) >= item.stack_size
    amn_himestack_winditemlist_drawitemnum(rect, item)
  end
 
end
 

RCXDan

Champion of Brightmoon Tor
Veteran
Joined
Jan 4, 2019
Messages
290
Reaction score
649
First Language
English
Primarily Uses
RMVXA
@A-Moonless-Night
It works perfectly!!!

I was originally having a bit of trouble not having it show up, but that was primarily because I had Yanfly's Adjust Limits script put in the wrong place. Thank you so much, fam.
 

Latest Threads

Latest Posts

Latest Profile Posts

1638170340913.png
Crossover Inn is getting very crowded, and I love it
Climbing to the top #mapping
1638160732198.png
I've started the first steps of the final few maps that I need to make for B:ms. I haven't been able to say that in a really, really long time. It'd probably be a good idea to blog about this or something.
Question for the Mods: What am I supposed to do when I can't make a synopsis 350 words long? (for project recruitment thread) @Shaz @mlogan
The game is meant to be more on the simple side in order to be achievable so I'm a bit stuck...

Forum statistics

Threads
117,043
Messages
1,104,082
Members
152,988
Latest member
mur2fer
Top