What would be the best/decent way To Store Weapons?

Hi, I am currently making a rpg game, and i was wondering if someone knew a good way to store weapons and their current attributes, like trait, damage and so on, I was thinking about a Module with a table in it, or Values inside the tool the player is currently holding, cloning the tools from a Folder, but i don’t where to start, can someone give me some advice?

The Current Thing i am trying to replicate is something like this, where the info of the weapon the player has it’s easily accessible, which means i can retrieve it from anywhere

image

2 Likes

We use module scripts to store gun information, as well as keyframe marker events to play sounds with animations.

2 Likes

you actually said the answer yourself!

2 Likes

Thank you , this sounds like a good idea, I looked at the documentation, but i don’t think Attributes would really fit in my case/context for the game i am doing, since i think it will affect performance putting attributes to every item i have (or messy), So i guess i’ll stick with Modules suggestions or similar

1 Like