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.

Weapons/Items with charges- how to display them in descriptions?

Maus

Member

In my game, one particular weapon (using the skill weapons script), a modified Tesla coil, grants you the ability to unleash an electrical storm upon the usage of the skill relevant.  How many charges are left on the weapon are tracked by a variable (in my case, variable #7). Unfortunately, I can't include the expression "\V[1] charges left" on the weapon description, because it shows as is, not as the actual variable number. I can, of course, put \V[1] charges left" in a text message after the player activates a charge during combat, but that would be a little counter-intuitive, as the player should know the number of charges in an item whose workings he knows.

What would be a proper way to display the charge number in the weapon description as well as the skill description?
 

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