How should I go about organizing tool abilities?

I’m making an rpg game and I am wondering how I should organize the skills.
I was thinking of local script inside tool that deals with input detection then module scripts for different types of weapons / abilities (magicModule, weaponModule, fightingModule) which contain skills for the tools in that category. I don’t know if this is the best idea or not because this is my first time doing large scale abilities for tools. Usually I would just have a local script inside a tool then server script, but I want lots of tools players can use. Or maybe I could contain things like blocking and m1s inside a module script and they take in the stats of an item and animations. Please give some feedback and help!

I wouldn’t use tools for this, as creating your own system can be a lot more modular. If you plan on using tools, you can keep centralized modules in ServerStorage and ReplicatedStorage for server and client systems respectively. Maybe have one module that just handles the input and a local script in each tool that initializes that. The input module can then ask for the dedicated client functions from your centralized client module. The client module dedicated to that tool can manage all client things and communicate to the server. Use a custom RemoteEvent/networking module if you want.

1 Like

What do you mean by own system? The reason I am using tools is because I have an inventory datastore that works with the backpack and hotbar, I do not want to do anymore with datastores. Also, regretfully, I made it so the playerdata Datastore doesn’t allow you to create new data, so I would have to have all the skills in the game stored and have an unlocked variable. My player inventory allows for new data though. I might just recode the player data datastore because it is built on old knowledge and I know a lot more now. I think if I do follow through with this I’ll make a “draw” button so I can have weapons without tools. It does sound a lot easier.

I have no idea how your game is setup, use tools if you please, I was just making some suggestions on how you might want to order your ModuleScripts. Do you have any other questions?

should i put abilities in modules and should i run abilities in parrallell with the fx

How you structure your game is completely up to you. I would make one LocalScript that handles all client VFX and is trigged through remote events. You could have a folder of modules and it will run the correct one. You could also have another folder of modules used by each ability’s module to actually create each type of effect.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.