Chaos Project

RPG Maker => RPG Maker Scripts => Script Requests => Topic started by: Seox on March 12, 2009, 08:12:49 pm

Title: Item limit remover script
Post by: Seox on March 12, 2009, 08:12:49 pm
I've been looking all over for a script that allows you to carry more than 99 of an item, but I can't find it.

Anyone have one?
Title: Re: Item limit remover script
Post by: Aqua on March 12, 2009, 08:18:00 pm
I'll tell you what to do.

Game_Party - Line 179
@items[item_id] = [[item_number(item_id) + n, 0].max, 99].min

Change it to this:
@items[item_id] = [[item_number(item_id) + n, 0].max, Aqua.max_item(item_id)].min


Then add this in a new script slot above Main.


module Aqua
 
  def self.max_item(item_id) # Changes max number of items
   
    case item_id
# Syntax:
#    when (item_id) then return (max)

      when 34 then return 2000  # Arrows
       
      end
    return 99
  end
 
end



Or if you want everything to have the same limit... just do
@items[item_id] = [[item_number(item_id) + n, 0].max, NEW_LIMIT_NUMBER_HERE].min
Title: Re: Item limit remover script
Post by: Starrodkirby86 on March 12, 2009, 08:20:27 pm
KS'er. >_>;

http://forum.chaos-project.com/index.php?topic=2610.0

http://forum.chaos-project.com/index.php?topic=2613.0

http://forum.chaos-project.com/index.php?topic=2608.0

http://forum.chaos-project.com/index.php?topic=2600.0

http://forum.chaos-project.com/index.php?topic=876.0

http://forum.chaos-project.com/index.php?topic=2132.0

Next time, please do a search. All of the links help overcome the limit by the way.