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.

Number of time used

Hello. I was wondering, is it possible to keep track of how many times a weapon has been used? Here's an example of what I mean.

You have 2 identical Thunder Blades.
Someone equips it and use it 5 times.
Then, he changes for the second one and use it 15 times.
In this case, using it means attacking with it.

So, Thunder Blade #1 has been used 5 times and Thunder Blade #2 has been used 15 times.
It could be used to ad magic charges to a staff or a maximum # of time something can be used.

I hope it's not too confusing.:s
Anyway, thanks in advance!

-Dargor
 
Of course is it possible. One could just set up an extra game_system array for the weapon counts (like $game_system.weapon_count[weapon_id] += 1) on each normal attack. Make sure that this weapon_id is based on unique indexes, not the database ones, because otherwise it will make the same for both of the identical weapons.

I'm afraid I don't know exactly where to put that line and so, but you get what I mean.
 

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