- Joined
- Feb 10, 2016
- Messages
- 20
- Reaction score
- 2
- First Language
- English
- Primarily Uses
Is there a way to create an item via a script line?
For Example: (simplified version)
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
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?
