Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> How do I change the Constant limit (1 - 99) in the "Change Items..." command when creating an event?
dk1129
post Jul 13 2010, 12:33 PM
Post #1


Level 1
Group Icon

Group: Member
Posts: 5
Type: None
RM Skill: Undisclosed




I want to change the maximum item limit that RMXP ITSELF allows to 1000 so that when I use the "Change Items..." command while creating events, I am not limited to 99. I tried a script I found on here by "Ty" but no matter how I edited it, RMXP still says "Please enter an integer between 1 and 99" when I enter over 99 as an item constant.

The script I used DOES let me have 1000 of an item, but I would have to a bunch of "Change Items..." of 99 or less that would add up to 1000. For example, an event would have to have 10 Change Items of +99 and 1 Change item of +10 to add 1000 of an item.

Can I edit/add script to make the RMXP program itself allow me to add over 99 of an item or am I forced to do math and use multiple Change Item commands?
Go to the top of the page
 
+Quote Post
   
jens009
post Jul 19 2010, 08:29 AM
Post #2


L Did you know? Death gods... only eat apples
Group Icon

Group: +Gold Member
Posts: 2,976
Type: Scripter
RM Skill: Skilled




QUOTE (dk1129 @ Jul 13 2010, 01:33 PM) *
I want to change the maximum item limit that RMXP ITSELF allows to 1000 so that when I use the "Change Items..." command while creating events, I am not limited to 99. I tried a script I found on here by "Ty" but no matter how I edited it, RMXP still says "Please enter an integer between 1 and 99" when I enter over 99 as an item constant.

The script I used DOES let me have 1000 of an item, but I would have to a bunch of "Change Items..." of 99 or less that would add up to 1000. For example, an event would have to have 10 Change Items of +99 and 1 Change item of +10 to add 1000 of an item.

Can I edit/add script to make the RMXP program itself allow me to add over 99 of an item or am I forced to do math and use multiple Change Item commands?

It would be a pain in the a-- to edit the native code of RMXP just to enable you to put 1000 of a category in event.

Instead, a small script snippet should do it:

Scripts are your friend. Page 3 of eventing list, do a script call.
CODE
$game_party.gain_item(item_id_number, quantity)

Self explanatory right?
Similarly, you can do this for weapons and armors:
CODE
$game_party.gain_armor(armor_id_number, quantity)
$game_party.gain_weapon(weapon_id_number, quantity)


You still need TY's script to enable your party to hold more than 1000 items of one category.

EDIT: Wait... why do you need 1000 items anyway? XD


__________________________

My RMXP Project:


Farewell RRR. =]
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 25th May 2013 - 08:58 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker