Upgrade weapons

Gamewolf

Villager
Member
Joined
Feb 20, 2013
Messages
24
Reaction score
0
First Language
Swedish
Primarily Uses
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.
 

Modge

Villager
Member
Joined
Jan 31, 2013
Messages
21
Reaction score
0
First Language
English
Primarily Uses
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.

B) 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.
 

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
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 :)
 

Gamewolf

Villager
Member
Joined
Feb 20, 2013
Messages
24
Reaction score
0
First Language
Swedish
Primarily Uses
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?
 

Dark_Metamorphosis

What a horrible night to have a curse.
Veteran
Joined
Nov 23, 2012
Messages
2,192
Reaction score
382
First Language
Swedish
Primarily Uses
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 :)
 
Last edited by a moderator:

Berylstone

Veteran
Veteran
Joined
Jun 3, 2013
Messages
642
Reaction score
62
First Language
English
Primarily Uses
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.
 
Last edited by a moderator:

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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.

Forum statistics

Threads
105,868
Messages
1,017,083
Members
137,583
Latest member
write2dgray
Top