Author Topic: [XP] Item Limits  (Read 8716 times)

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
[XP] Item Limits
« on: June 14, 2011, 03:52:40 PM »
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.
« Last Edit: June 17, 2011, 01:56:50 PM by KoenLemmen »
Koen Lemmen

Information:
(click to show/hide)
(click to show/hide)

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Item Limits
« Reply #1 on: June 15, 2011, 04:25:51 PM »
Version 2 is here now.
Its plug and play.
And bigger.
Look at the demo yourselves!
Koen Lemmen

Information:
(click to show/hide)
(click to show/hide)

Offline Ryex

  • Arctic Bird of Programming
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 5131
  • LV: 197
  • Gender: Male
  • Wants to write a compiler for fun
    • View Profile
Re: [XP] Item Limits
« Reply #2 on: June 15, 2011, 04:33:12 PM »
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.

DropBox, the best free file syncing service there is.
(click to show/hide)

Offline ForeverZer0

  • CP's Pedophile
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3247
  • LV: 294
  • Gender: Male
  • Remember you are unique, just like everyone else.
    • View Profile
Re: [XP] Item Limits
« Reply #3 on: June 16, 2011, 02:19:20 AM »
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.

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Item Limits
« Reply #4 on: June 16, 2011, 01:02:20 PM »
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!
« Last Edit: June 17, 2011, 01:57:06 PM by KoenLemmen »
Koen Lemmen

Information:
(click to show/hide)
(click to show/hide)

Offline Boba Fett Link

  • Enterbrain Spy
  • Ethereal Devastator
  • ****
  • Posts: 298
  • LV: 4
  • Gender: Male
  • DANGER ZONE!
    • View Profile
Re: [XP] Item Limits
« Reply #5 on: June 24, 2011, 05:05:40 PM »
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.

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Item Limits
« Reply #6 on: June 29, 2011, 10:22:28 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:
(click to show/hide)
(click to show/hide)

Offline Sin86

  • Transcended Spirit
  • ***
  • Posts: 151
  • LV: 1
    • View Profile
Re: [XP] Item Limits
« Reply #7 on: June 29, 2011, 05:27:11 PM »
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.
« Last Edit: June 29, 2011, 05:31:49 PM by Sin86 »

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Item Limits
« Reply #8 on: June 30, 2011, 03:36:48 PM »
I didn't have this bug.
Can you post your editted part of the script?
Koen Lemmen

Information:
(click to show/hide)
(click to show/hide)

Offline Shalaren

  • Ethereal Devastator
  • ****
  • Posts: 442
  • LV: 46
  • Gender: Male
  • Also known as DexKyle
    • View Profile
Re: [XP] Item Limits
« Reply #9 on: July 01, 2011, 05:41:11 AM »
Just what I looked for! D: *lvl up*

Offline Sin86

  • Transcended Spirit
  • ***
  • Posts: 151
  • LV: 1
    • View Profile
Re: [XP] Item Limits
« Reply #10 on: July 01, 2011, 04:50:42 PM »
Code: [Select]
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.

Offline KoenLemmen

  • Trained Member
  • *
  • Posts: 28
  • LV: -1
  • Gender: Male
    • View Profile
Re: [XP] Item Limits
« Reply #11 on: July 04, 2011, 03:04:08 PM »
Thanks for reporting this bug!
I have made a way to get lost of this bug.

Use this script:

Code: [Select]
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:
(click to show/hide)
(click to show/hide)