The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: feildmaster on December 29, 2006, 04:02:46 PM

Title: <Resolved> Another need for help...
Post by: feildmaster on December 29, 2006, 04:02:46 PM
I know this is simple... I have done it before... just don't remember how, but i need a refresher on how to make a limit to how many items you can hold... This would qualify as a tut but seeing as it has to do with changing/adding script I decided to post this here...

Thx for the help^^
Feildmaster
Title: Re: Another need for help...
Post by: feildmaster on December 30, 2006, 07:19:15 PM
heh... ima bump this jus tto prevent it from moving to the next page..
does no1 know how to do this..? -_-
Title: Re: Another need for help...
Post by: italianstal1ion on December 31, 2006, 07:03:53 AM
Find these lines in Game_Party:

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

@weapons[weapon_id] = [[weapon_number(weapon_id) + n, 0].max, 99].min

@armors[armor_id] = [[armor_number(armor_id) + n, 0].max, 99].min

(180, 191, 202 if im not mistaken)

And change the number 99 to any limit you want.
Title: Re: Another need for help...
Post by: feildmaster on December 31, 2006, 09:04:37 AM
alright thx... i was thinking it was that but i couldn't be sure using the PK cuz i am not at my regular computer...