Creating an Item from a Script

Pixii

Villager
Member
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)

  • 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?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top