Chaos Project

RPG Maker => RPG Maker Scripts => Topic started by: Hellfire Dragon on November 07, 2008, 03:12:06 pm

Title: [RESOLVED]more than 99 items
Post by: Hellfire Dragon on November 07, 2008, 03:12:06 pm
yeah is there a part of the main scripts I can change or something to have more than 99 scripts? It's really annoying when using throwing items with the blizz abs, very limiting.

Little something extra from legacyblade: ShowHide
Quote from: legacyblade on November 08, 2008, 03:49:30 pm
or you can just add 99 potions a few times. or the most simple would be the following script call

$game_party.gain_item(item_id, amount)


Replace item_id with the item id (the number in the database), and set amount to however many of the item you want to give. That takes less time, and it doesn't waste any variables.
Title: Re: more than 99 items
Post by: Starrodkirby86 on November 07, 2008, 06:45:48 pm
Um...More than 99 scripts or more than 99 items? o_o I love your subject changing there.

Well...

Find this piece of code in Game_Party:
  #--------------------------------------------------------------------------
  # * Gain Items (or lose)
  #     item_id : item ID
  #     n       : quantity
  #--------------------------------------------------------------------------
  def gain_item(item_id, n)
    # Update quantity data in the hash.
    if item_id > 0
      @items[item_id] = [[item_number(item_id) + n, 0].max, 99].min
    end
  end


And replace

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


with

      @items[item_id] = [[item_number(item_id) + n, 0].max, 999].min
Title: Re: more than 99 items
Post by: Hellfire Dragon on November 08, 2008, 03:26:28 pm
Items lol, I dunno why I put scripts :P I couldn't find that part when I was looking through the scripts, thanks SDK ;)
Title: Re: more than 99 items
Post by: Shadonking on November 08, 2008, 03:39:53 pm
lol you just made another typo, its SRK not SDK. o well


and this was a very useful question, i cant believe i never thought of asking for more items.
Title: Re: more than 99 items
Post by: Starrodkirby86 on November 08, 2008, 03:42:32 pm
Quote from: Hellfire Dragon on November 08, 2008, 03:26:28 pm
Items lol, I dunno why I put scripts :P I couldn't find that part when I was looking through the scripts, thanks SDK ;)
D:

Don't you ever relate that horrid system to my name! EVER! :V:

XD


What do you mean you can't find that part...? I'll give you a specific line if that helps. That piece of the script is on Line 171.

If you still can't find it, use Ctrl + F or Shift + Ctrl + F for a global search.

If you already did find it and finished everything and are satisfied with the situation, then please add [RESOLVED] to the thread title. :)

@Shadon: You can also edit maximum gold and maximum steps through here. This is REALLY useful if you want to have unbelievably high numbers like in Disgaea. Just note that the editor's engine itself won't acknowledge the amount of Gold and Items added if they're obscenely high so you can have to do Variable injections if you want to add something like 149 Potions and whatnot.
Title: Re: more than 99 items
Post by: Shadonking on November 08, 2008, 03:48:07 pm
thanks SRK, that will become useful.
Title: Re: more than 99 items
Post by: legacyblade on November 08, 2008, 03:49:30 pm
or you can just add 99 potions a few times. or the most simple would be the following script call

$game_party.gain_item(item_id, amount)


Replace item_id with the item id (the number in the database), and set amount to however many of the item you want to give. That takes less time, and it doesn't waste any variables.
Title: Re: more than 99 items
Post by: winkio on November 08, 2008, 04:10:37 pm
um, no legacyblade, he's changing the max number of items he can hold.
Title: Re: more than 99 items
Post by: legacyblade on November 08, 2008, 04:12:40 pm
I know, but that was about getting around the editor's limit on how many items you can give. My post was in addition to the last bit of SRK's post. Sorry for not being very clear.
Title: Re: more than 99 items
Post by: winkio on November 08, 2008, 04:33:03 pm
oh, yeah.  No, that's my bad.  There were like 4 new posts, and I just skimmed them.  srry. :shy:
Title: Re: more than 99 items
Post by: Hellfire Dragon on November 09, 2008, 09:06:31 am
QuoteD:

Don't you ever relate that horrid system to my name! EVER! :V:

XD

lol, soz.

ty legacy, that's a helpful little script as well. Guess this is resolved then ;)
Title: Re: [RESOLVED]more than 99 items
Post by: k9inpoop on January 11, 2009, 11:58:51 pm
lol the same as my post  :D
http://forum.chaos-project.com/index.php?topic=876.0 (http://forum.chaos-project.com/index.php?topic=876.0)
Title: Re: [RESOLVED]more than 99 items
Post by: Starrodkirby86 on January 12, 2009, 12:40:41 am
Oh right...How can I forget ever seeing that...Man, I got to put that in my invisible index of threads here. Thanks. :)

Well I guess the significance in this thread is that HD called me a horrid beast (by accident of course :P ).