RPG Maker Forums

Is there a way to create an item via a script line?

For Example: (simplified version)

  • Let's say I have created an item called "Short Sword" using the In Game Database, and I equip that Short Sword onto Actor 1.
  • Actor 1 (controlled by the Player) then visits a Smithy who can craft upgrade "Short Sword" to "Short Sword +1" for 10 gold.
  • The Smithy can continuously upgrade the Short Sword, adding an additional number to the sword and increasing the fee.
     

Using the In Game Database, I could PROBABLY make 100 Short Swords, all with a different number (1, 2, 3, 10, 56, etc)
but that is obviously tedious and limited to one item. I would have to do that for every weapon, and that is just plain crazy.

So, basically, DOES a command already exist that I can use in my custom plugin?
Something like "$gameParty.gainItem($dataItems[itemId], n);" [which is a script call that already exists]

Except it would be more like (excuse my psuedocode):
$gameItems.ADD($dataItems[itemID], params);

OR Perhaps, is there a
$gameItems.UPDATE($dataItems[itemID]);

So if I used an "update" command, I could create an item template using the In Game Database, and then only change the Name of that Item, or specific item properties








ANSWERS I'M LOOKING FOR

  • Does a simple command already exist to accomplish one or both of these tasks? [yes/no] - [if yes: please provide the command]
  • If a simple command does not exist, can you point me in the direction of how I would go about accessing/manipulating the database (perhaps, a thread already exists)
  • or maybe a short function that I can build off of?
  • Better yet, has someone created a version of what I'm trying to do, that I can learn from?

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,454
Members
137,821
Latest member
Capterson
Top