Hello forum.
While normally it is used to increase item limits pas 99, I am using "Yanfly Engine Ace - Adjust Limits v1.00" in an interesting way. I am using it to limit the use of every item carried on a per item basis down to lower numbers.
So my party can only carry 10 potions, and 5 Hi-potions. etc.
However, I do not want to have to manually list the maximum number you can carry of these items in the HELP text, as that box is already limited on space as it is.
Is there a way to change the text listing of an item... which currently look like this in the item list...
___________
potion x5
to instead display
____________
potion 5/5
where the first number is current count and the second is the max imposed by Yanflys limit notetag?
I found where the text is drawn by the base Window_ItemList...
#--------------------------------------------------------------------------
# * Draw Number of Items
#--------------------------------------------------------------------------
def draw_item_number(rect, item)
draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)
end
What do I have to write in a script to override the default and add the /max info?
Thanks!
While normally it is used to increase item limits pas 99, I am using "Yanfly Engine Ace - Adjust Limits v1.00" in an interesting way. I am using it to limit the use of every item carried on a per item basis down to lower numbers.
So my party can only carry 10 potions, and 5 Hi-potions. etc.
However, I do not want to have to manually list the maximum number you can carry of these items in the HELP text, as that box is already limited on space as it is.
Is there a way to change the text listing of an item... which currently look like this in the item list...
___________
potion x5
to instead display
____________
potion 5/5
where the first number is current count and the second is the max imposed by Yanflys limit notetag?
I found where the text is drawn by the base Window_ItemList...
#--------------------------------------------------------------------------
# * Draw Number of Items
#--------------------------------------------------------------------------
def draw_item_number(rect, item)
draw_text(rect, sprintf(":%2d", $game_party.item_number(item)), 2)
end
What do I have to write in a script to override the default and add the /max info?
Thanks!