#============================================================================== # ■ VXAce-RGSS3-15 アイテム最大数設定 [Ver.1.0.0] by Claimh #------------------------------------------------------------------------------ # ・アイテム個々の最大数を設定できるようになります #------------------------------------------------------------------------------ #【使用方法】 # アイテム・武器・防具のメモ欄に # @max[最大数] # と記載する。(設定なし時は99個です) # (例) @max[10] : 10個 #============================================================================== class RPG::BaseItem def item_max n = @note.scan(/@max\[(\d+)\]/) return (n.empty? ? 99 : n[0][0].to_i) # 設定なければ99個 end end class Game_Party < Game_Unit #-------------------------------------------------------------------------- # ● アイテムの最大所持数取得 [再定義] #-------------------------------------------------------------------------- def max_item_number(item) return item.item_max end end