Upgrade weapons

Hi,for the game me and my friend are making we want a way of upgrading weapons at certain npcs. For example, if you have a wood sword, you can upgrade it into an iron sword, and it would cost a certain amount of gold. but it would only show up in the upgrade choices if you had a wood sword and if you had gotten far enough into the game to upgrade it. Anyone know a way of doing this?

It would also be neat if ot could require special resources to upgrade the item, like iron ore in my sword example. To do that tho it would probably need a script for, but if anyone is willing to create one we would be very appreciative.
I can think of one way off the top of my head, but it's a little primitive.

a) create a "blacksmith" style npc for your town.

😎 create a set of conditions for your weapon upgrade (for example, 5 iron ores or something like you said)

c) once you have right tools and conditions set up some simple events to "remove>wooden sword", "add>iron sword" and maybe "equip>iron sword" for good measure. rinse and repeat for each upgrade, though that will require a lot of pages for the "blacksmith" npc.

Not the cleanest way I can think of, but maybe you can make something of it.
There's a lot of crafting scripts out there that will do what you have in mind. I'm using one myself that's made by Mr.Bubble, and it can be found at the VX Master Script list here on the forum (If you can't find it, I can share the link.) It will let you add tons and tons of different requiments that you can use in your upgrade system (different kind of resources, level needed, skills needed, you name it). You will also be able to add Npcs with different upgrade systems and you can let the player recieve recipe books in order to unlock new items dependin on where they are in the story.

It's really great, and I recommend it 🙂
There's a lot of crafting scripts out there that will do what you have in mind. I'm using one myself that's made by Mr.Bubble, and it can be found at the VX Master Script list here on the forum (If you can't find it, I can share the link.) It will let you add tons and tons of different requiments that you can use in your upgrade system (different kind of resources, level needed, skills needed, you name it). You will also be able to add Npcs with different upgrade systems and you can let the player recieve recipe books in order to unlock new items dependin on where they are in the story.

It's really great, and I recommend it 🙂
Is this the script you mean? http://mrbubblewand.wordpress.com/rgss3/tactics-ogre-psp-crafting-system/

If so could you possibly give a quick explenation of how i would use it?
Is this the script you mean? http://mrbubblewand.wordpress.com/rgss3/tactics-ogre-psp-crafting-system/

If so could you possibly give a quick explenation of how i would use it?
Yes, that's the one.

Pretty much everything is explained inside the script, so take some time and read everything there. It took me a bit of time to get used to it, but once you get into it, it will be like second nature.

To put it briefly you will use items (recipebooks, anything you want that will work as a sort of switch to enable all of the recipes in the crafting window.)

So when you create that item, you will need to use It's note tag to input the weapons, armors, items etc that it will list, and which ingredients that you need in order to create it.

For example the item notetag would include these weapons:

<recipebook>

category:krytonian

weapon: 61,62,63,64

</recipebook>

Then on each of these weapons (weapon ID 61,62,63 and 64 in your Database) you need to add the ingredients needed in the notetag for each of these weapons (also taken from your database):

<ingredients>

weapon:20

fee:1000

item: 73

</ingredients>

Then you just need to add a script call on your smithing Npcs or wherever you want the crafting scene to be displayed:

call_tocrafting_scene

This will trigger all of the items in all of the recipebooks that the player got in the inventory.

You can also use categories like in my case by using the script call:

call_tocrafting_scene( :category )

This will only open up the books that is placed under a specific category (example smithing). This is good if you want to have different Npcs that can upgrade different things.

That's basically it, but everything you need to know is stated in the script 🙂
Hi,for the game me and my friend are making we want a way of upgrading weapons at certain npcs. For example, if you have a wood sword, you can upgrade it into an iron sword, and it would cost a certain amount of gold. but it would only show up in the upgrade choices if you had a wood sword and if you had gotten far enough into the game to upgrade it. Anyone know a way of doing this?

It would also be neat if ot could require special resources to upgrade the item, like iron ore in my sword example. To do that tho it would probably need a script for, but if anyone is willing to create one we would be very appreciative.
Just make an event that checks if the player has a Wood Sword and x amount of gold in their inventory.  If they do offer an upgrade choice and replace the wood sword with an iron one.  Far as game progress, you could just attach a variable that keeps track of game progress and add it to the conditions;  For a quick and very simplistic example just to give you some idea:

Condition: Weapon [Wood Sword] in inventory

Condition: Gold [x] amount or more

Condition: Variable [Game Progress] = "What ever number"

Show Choices: Upgrade Wood Sword

Yes?

Party: Change Weapons: Decrease [Wood Sword]

Party:Change Weapons: Increase [iron Sword]

Party:Change Gold: Decrease by x amount

End Event Processing

No?

End Event Processing

End

End

End'

If you wanted to add resources into the mix you could just add that to the conditions.

Original thread: https://forums.rpgmakerweb.com/threads/upgrade-weapons.16017/