Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Modify Weapons and Armors In-Game #2

Hi Again.

This Time..Another of my n00b's questions..':|

I wonder this:

It's possible change the parameter value (or string or whatever) for example the Attack of a weapon or an armor only of "1" not to all elements if you have equipped that Equipment, is say, modify one object withouth modify all the same objects.

For example:

You have equipped an "Armor" called "Gold Armor", Physic defense: 10.
and with a Script call you change the Physic defense to 15, but only to that armor, the armor that you have equipped not to all the armor. (for example you go to the Shop and that armor it's the same of the database).

It's like a Upgrade weapon request.

:thumb:
 

khmp

Sponsor

I think you put this in the wrong section according to your finish.

mephisto":2izytrjb said:
It's like a Upgrade weapon request.

Well normally a player holds only an id of the equipped weapon. To manipulate it that way you would need to hold a little more data. More like holding a weapon object rather than an ID. I don't know how to go about getting that kind of result through script easily. I would create a separate database entry and change the weapon by disposing of it than replacing the it.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top