Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: KoenLemmen on June 14, 2011, 09:52:40 am

Title: [XP] Item Limits
Post by: KoenLemmen on June 14, 2011, 09:52:40 am
Limit Remover
Authors: Koen Lemmen
Version: 2
Type: Item Options
Key Term: Custom Item System



Introduction

This plug and play script makes it possible to have infinitive items or the other way around.
By editing the script it will be possible to have no limits in weapons or the other way around.
It works with armor, weapon, gold and items.
You can also edit the limit per item, weapon, etc.
How you can do that is in the script in the demo.



Features




Screenshots

No sense. There is a demo!


Demo

Every thing you need is in the demo:
http://www.mediafire.com/?5647s5o9s54h55u
ZIP VERSION:
http://www.mediafire.com/?briqqn7pbo7032b



Script

Script is in the demo.



Instructions

Instructions are in the demo in the script.



Compatibility

Works in a standard game.
Futher I don't know.


Credits and Thanks




Author's Notes

This is my first script, I hope you like it.
Please give tips to improve it or improve it yourselves.
I don´t care about the licence I just needed it.

PS. I am from the Netherlands and I am just 14, so my English isn´t really good.
Title: Re: [XP] Item Limits
Post by: KoenLemmen on June 15, 2011, 10:25:51 am
Version 2 is here now.
Its plug and play.
And bigger.
Look at the demo yourselves!
Title: Re: [XP] Item Limits
Post by: Ryex on June 15, 2011, 10:33:12 am
ya! no more editing to get it to work :P
Title: Re: [XP] Item Limits
Post by: ForeverZer0 on June 15, 2011, 08:19:20 pm
Just advice, you really shouldn't upload in .rar format. Although the vast majority of people have WinRAR, 7zip, or similar program to decompress it, not everyone will, and will have to go through installing new software just to play your demo. Stick with .zip format. It is universal, and everyone can open it without a problem.
Title: Re: [XP] Item Limits
Post by: KoenLemmen on June 16, 2011, 07:02:20 am
Thanks I didn't think of it at all!
I will update it to a zip version as fast as possible!

EDIT: Its with ZIP now!
Title: Re: [XP] Item Limits
Post by: Boba Fett Link on June 24, 2011, 11:05:40 am
Hey, does this have the ability to change limits in-game? Such as in Zelda, you can only hold 30 arrows unitil you get a bigger quiver, and then you cna hold 60. Or getting a bigger wallet allows you to hold more rupees.
Title: Re: [XP] Item Limits
Post by: KoenLemmen on June 29, 2011, 04:22:28 am
Quote from: Boba Fett Link on June 24, 2011, 11:05:40 am
Hey, does this have the ability to change limits in-game? Such as in Zelda, you can only hold 30 arrows unitil you get a bigger quiver, and then you cna hold 60. Or getting a bigger wallet allows you to hold more rupees.


No it hasn't. This script is just to edit the limits per item from 0 till wathever you want.
Title: Re: [XP] Item Limits
Post by: Sin86 on June 29, 2011, 11:27:11 am
I seem to have a problem with this script. I like this script alot but the problem here is that when I set up the limits for potions, high potions and revive potions. I get this problem.

So, here is the problem, the limits have already been set to the 3 items above but when I make an event to get 1 potion, or 10 potions(10 is the limit I made for regular potions). I get other items in my inventory(that I also included in the limits) that I did not set up in the event.
Title: Re: [XP] Item Limits
Post by: KoenLemmen on June 30, 2011, 09:36:48 am
I didn't have this bug.
Can you post your editted part of the script?
Title: Re: [XP] Item Limits
Post by: Shalaren on June 30, 2011, 11:41:11 pm
Just what I looked for! D: *lvl up*
Title: Re: [XP] Item Limits
Post by: Sin86 on July 01, 2011, 10:50:42 am
def gain_item(item_id, n)
    # Update quantity data in the hash.
    if item_id > 0
      @items[1] = [[item_number(item_id) + n, 0].max, 10].min
      @items[2] = [[item_number(item_id) + n, 0].max, 20].min
      #Put your extra items with their own limits here in this way:
      #@items[ITEM ID EG: 21] = [[item_number(item_id) + n, 0].max, EDIT YOUR MAX].min
    end
  end



The 10 is potions, 20 is high potions. If I put an event that adds just 1 regular potion, a high potion is automatically added in there.
Title: Re: [XP] Item Limits
Post by: KoenLemmen on July 04, 2011, 09:04:08 am
Thanks for reporting this bug!
I have made a way to get lost of this bug.

Use this script:

def gain_item(item_id, n)
    if item_id == 1
      @items[1] = [[item_number(item_id) + n, 0].max, 10].min
    end
    if item_id == 2
      @items[2] = [[item_number(item_id) + n, 0].max, 20].min
    end
end


I will update my version soon. So this won't happen again.
If you want to add a new item just do this:

if item_id == Your Item ID
  @items[ITEM ID] = [[item_number(item_id) + n, 0].max, MAX ITEM NUMBER].min
end

It should work now.  :wacko:

Koen