[RESOLVED]more than 99 items

Started by Hellfire Dragon, November 07, 2008, 03:12:06 pm

Previous topic - Next topic

Hellfire Dragon

November 07, 2008, 03:12:06 pm Last Edit: November 09, 2008, 09:07:56 am by Hellfire Dragon
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.

Starrodkirby86

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

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Hellfire Dragon

Items lol, I dunno why I put scripts :P I couldn't find that part when I was looking through the scripts, thanks SDK ;)

Shadonking

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.





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

Starrodkirby86

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.

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).




Shadonking

thanks SRK, that will become useful.





Creator Of Music And Games
Spoiler: ShowHide
]

keywords: ShowHide
rmxp rmvx blizz-abs rpg maker xp vx abs cbs cms script tons of addons charsets autotiles HUD


come here if you have a ps3
http://forum.chaos-project.com/index.php?topic=1952.0

legacyblade

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.

winkio

um, no legacyblade, he's changing the max number of items he can hold.

legacyblade

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.

winkio

oh, yeah.  No, that's my bad.  There were like 4 new posts, and I just skimmed them.  srry. :shy:

Hellfire Dragon

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 ;)

k9inpoop




Starrodkirby86

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 ).

What's osu!? It's a rhythm game. Thought I should have a signature with a working rank. ;P It's now clickable!
Still Aqua's biggest fan (Or am I?).