I have recently decided to make a game with a whole bunch of weapons. I have never done this before so I am wondering if there is an easy way to make it with as less lag and confusion as possible.
I want is some system where I can easily add new weapons, and also effects such as swords and speed potion or something. I also want enchants to be able to go on the sword, and it also may be important to note that I want to potions that do ‘abstract’ things such as doubling effects or taking away effects.
My current set-up is simple:
First, there is the Weapon script which takes care of simple stuff :
If the tool is activated the WeaponCode fires a function specific for that weapon the Local WeaponManagementCode:
This would check if the player can do what the tool asked and makes sure the player has no No Fighting potion on or something.
If it passes then the module fires a specific event in my remote folder which notifies the WeaponEventCode:
And this does anything that is needed for the server-side.
I am not sure if this is the best way. So I’d like to know some of your methods.
If it is an okay method then can you tell me any tips on making weapons.