[XP] Item Limits

Started by KoenLemmen, June 14, 2011, 09:52:40 am

Previous topic - Next topic

KoenLemmen

June 14, 2011, 09:52:40 am Last Edit: June 17, 2011, 07:56:50 am by KoenLemmen
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


  • Edit the item limit.

  • Edit the item limit per item.

  • Edit the weapon or armor limit.

  • Edit the weapon or armor limit per item.

  • Edit the gold limit.




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


  • Koen Lemmen




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.
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide

KoenLemmen

Version 2 is here now.
Its plug and play.
And bigger.
Look at the demo yourselves!
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide

Ryex

ya! no more editing to get it to work :P
I no longer keep up with posts in the forum very well. If you have a question or comment, about my work, or in general I welcome PM's. if you make a post in one of my threads and I don't reply with in a day or two feel free to PM me and point it out to me.<br /><br />DropBox, the best free file syncing service there is.<br />

ForeverZer0

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.
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

KoenLemmen

June 16, 2011, 07:02:20 am #4 Last Edit: June 17, 2011, 07:57:06 am by KoenLemmen
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!
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide

Boba Fett Link

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.
This post will self-destruct in 30 seconds.

KoenLemmen

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.
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide

Sin86

June 29, 2011, 11:27:11 am #7 Last Edit: June 29, 2011, 11:31:49 am by Sin86
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.

KoenLemmen

I didn't have this bug.
Can you post your editted part of the script?
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide

Shalaren

Just what I looked for! D: *lvl up*

Sin86

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.

KoenLemmen

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
Koen Lemmen

Information:
Spoiler: ShowHide
PS I am dutch. So I could make some typ faults. 8)

More info: :P

Hello I am Koen,
I come from the Netherlands,
and I am still living there.
I playing many games.

Here is a list with favorites:
Saint Row 2
Red Alert 1, 2 and 3
WarRock
AA3

I like making sites and games.
I'm always making my games with RPG Maker XP.
Sometimes I do work with Visual C++ and Adobe Photo shop.

2 years ago I made internet radio. Thats one of my hobby's. Because I like music.

Still questions about me? You can mail me. gamekoen@hotmail.nl or follow me on twitter. www.twitter.com/KoenLemmen.
Greets Koen

Spoiler: ShowHide