Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Give all items, Weapons, armor, items, etc.
Pharonix
post Aug 17 2011, 07:49 AM
Post #1


Eventer. Gamer. Writer.
Group Icon

Group: Revolutionary
Posts: 155
Type: Event Designer
RM Skill: Intermediate
Rev Points: 25




Is there an easier way of doing this, whether it is a code snippet for events or whatever.

I'm using
Final Fantasy IX - Equipment Overhaul By: LordHeinrich & Blackmorning
and I want to test out all my equipment changes.


Any help is appreciated.

I have a buttload of weapons / armors each clocking in about 100 items, I'd rather not have to do this line by line.


__________________________

CURRENT WORKS
DEMON BLADE - RPGVXA
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
---------------------------------
OTHER WORKS
INCANTA-corrupted.
INCANTA REDUX - RPGVX - On Hold
---------------------------------
LITERARY WORKS

Longer Works
ANGEL OF DEATH - Short Story ~ 4 Pages.
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
DEMON BLADE - Book/Novel?- 34 pages - On Hold.
FERAL - Short Story, Length: 6 pages], 2nd person Narrative. -R3 Writing Competition #2 - First-Place
DARKSPAWN - Book - 3 Pages On Hold
RELGEA CHRONICLE - Book - 118 pages
DRAKENGHOUL - book - 36 handwritten pages

Poems
I KNOW - Poem - 30 Lines

Song Lyrics
End of Days - Song- 44 Lines
Kids Killing Kids - Song - 94 Lines




-If you want this sig in another language, move to a country that speaks it.-

-Lv 13 Thread Killer




My R3 Writing Corner



My Wordpress


Relgea Chronicle

X-M-O Story Quoting.
QUOTE (X-M-O @ Jun 19 2012, 02:45 AM) *
QUOTE (Pharonix)
so what's going on in this thread?

QUOTE (kayden997)
Redd's back and the first thing he does is...

QUOTE (Pharonix)
pick my mom up in 15
...*sigh*

QUOTE (kayden997)
You know it's legit!

QUOTE (Pharonix)
Then again, I wrecked the last one...........

QUOTE (Tsutanai)
Oh ok you can have a pink frosted sprinkled doughnut

QUOTE (Pharonix)
I hate not having a car......
I miss my Alero...

QUOTE (Tsutanai)
you suck >:(


Go to the top of the page
 
+Quote Post
   
Alt_Jack
post Aug 17 2011, 12:02 PM
Post #2


Level 19
Group Icon

Group: Revolutionary
Posts: 377
Type: Event Designer
RM Skill: Skilled
Rev Points: 40




Aha ha aha ha. Ha. Sorry. sweat.gif That's what happens when you make a lot of stuff and then change all of them, then realise you don't know if they even work anymore. No, there probably isn't an easy way out. If there is, it's probably superflous in comparison to just testing it out. Your best bet is to just play through and see if any problems come up. You could make a bunch of sell-back shops so you don't max out your inventory.


__________________________

the Alternate Jacks event demo
As well as all of my images in one place, free for use.
Most of my images will be there, since this site takes too long to approve stuff and VX.net has no bulk uploader.
Go to the top of the page
 
+Quote Post
   
Redd
post Aug 17 2011, 06:38 PM
Post #3


:<
Group Icon

Group: Revolutionary
Posts: 2,326
Type: Developer
RM Skill: Advanced




It might help if you are making it give you all the items many times, if you make a common event so that you don't have to redo it over and over again.


__________________________
Go to the top of the page
 
+Quote Post
   
Ty
post Aug 17 2011, 10:57 PM
Post #4


Level 38
Group Icon

Group: +Gold Member
Posts: 1,007
Type: Scripter
RM Skill: Undisclosed




Here you go. Add the script above into your script editor. Use as following:

1.) In an event command, use a 'Call Script' action and enter one (or all) of the following:
$game_party.add_items(amount, maxrange)
$game_party.add_weapons(amount, maxrange)
$game_party.add_armors(amount, maxrange)

Example:
$game_party.add_items(99, 32) will add 99 amount of all of the items from Item ID 1 to Item ID 32. But what if you want to add from Item ID 15 to item ID 20? Then you can use this:
$game_party.add_items(99,20,15). In this example, the '15' becomes the Starting Item ID (The first item to add) and the 20 becomes the last item ID (The last Item to Add). The same applies for adding weapons and/or armors.

CODE
#===============================================================================
# Add Mass Items
#===============================================================================
# Adds every single item, weapon and armor from the database to inventory
#-------------------------------------------------------------------------------
class Game_Party
  def add_items(amount,range, minrange=1)
    for i in minrange..range
      $game_party.gain_item(i, amount)
      if $data_items[i].name == ""
        $game_party.lose_item(i, amount)
      end
    end
  end
  def add_weapons(amount,range, minrange=1)
    for i in minrange..range
      $game_party.gain_weapon(i, amount)
      if $data_weapons[i].name == ""
        $game_party.lose_item(i, amount)
      end
    end
  end
  def add_armor(amount,range, minrange=1)
    for i in minrange..range
      $game_party.gain_armor(i, amount)
      if $data_armors[i].name == ""
        $game_party.lose_item(i, amount)
      end
    end
  end
end


__________________________
My Script Demo link broken? Looking for old scripts? Go here:
http://synthesize.4shared.com
Go to the top of the page
 
+Quote Post
   
Pharonix
post Aug 18 2011, 09:11 AM
Post #5


Eventer. Gamer. Writer.
Group Icon

Group: Revolutionary
Posts: 155
Type: Event Designer
RM Skill: Intermediate
Rev Points: 25




Ty, you are the man

I freaking love you


__________________________

CURRENT WORKS
DEMON BLADE - RPGVXA
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
---------------------------------
OTHER WORKS
INCANTA-corrupted.
INCANTA REDUX - RPGVX - On Hold
---------------------------------
LITERARY WORKS

Longer Works
ANGEL OF DEATH - Short Story ~ 4 Pages.
SHINIGAMI - ~12 Pages - 3 chapters complete, 1 in progress.
DEMON BLADE - Book/Novel?- 34 pages - On Hold.
FERAL - Short Story, Length: 6 pages], 2nd person Narrative. -R3 Writing Competition #2 - First-Place
DARKSPAWN - Book - 3 Pages On Hold
RELGEA CHRONICLE - Book - 118 pages
DRAKENGHOUL - book - 36 handwritten pages

Poems
I KNOW - Poem - 30 Lines

Song Lyrics
End of Days - Song- 44 Lines
Kids Killing Kids - Song - 94 Lines




-If you want this sig in another language, move to a country that speaks it.-

-Lv 13 Thread Killer




My R3 Writing Corner



My Wordpress


Relgea Chronicle

X-M-O Story Quoting.
QUOTE (X-M-O @ Jun 19 2012, 02:45 AM) *
QUOTE (Pharonix)
so what's going on in this thread?

QUOTE (kayden997)
Redd's back and the first thing he does is...

QUOTE (Pharonix)
pick my mom up in 15
...*sigh*

QUOTE (kayden997)
You know it's legit!

QUOTE (Pharonix)
Then again, I wrecked the last one...........

QUOTE (Tsutanai)
Oh ok you can have a pink frosted sprinkled doughnut

QUOTE (Pharonix)
I hate not having a car......
I miss my Alero...

QUOTE (Tsutanai)
you suck >:(


Go to the top of the page
 
+Quote Post
   
Redd
post Aug 23 2011, 05:17 AM
Post #6


:<
Group Icon

Group: Revolutionary
Posts: 2,326
Type: Developer
RM Skill: Advanced




Solved, Locked smile.gif
lock.gif


__________________________
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 17th June 2013 - 11:04 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker