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.

Adding stats to Weapons

sorry... But How would I go about adding vars or "stats" to weapons? Which class I mean? Would I have to edit Data_Weapon, add it in a module and integrate it, or put in Game_Weapons or somethings.


If its The first two, could someone teach me how to do those? I have no idea.
 
You see, I want to make my own ammo script. But I thought it would be cool if I assigned a different amount of maximum ammo for each weapon. I know how to assign variables I just don't know what class to put the variables in.
 

Mac

Member

It would have to go in Game Weapons i guess because if its in Data it won't save it because thats a reference to a saved data file....unless you used a script that allowed the saved data to be over written....but you don't have to create another class and such to do it.

A question before i go any further do you plan to give possible ways on improving ammo a weapon can contain or is it fixed?
 

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