I'm making movesets for a game and one thing I always have troubles with is making a replication system for effects, my plan was to have 2 modules with the same function names. One will be for the effects itself and one will be for the server logic. Would this work or is there a better way to handle this?
Here is an example:
--MODULE 1
local Effects = {}
function Effects.Move1()
--... Effects will display here
end
return Effects
--MODULE 2
local Moveset = {}
function Moveset.Move1()
--... Move logic goes here
end
return Moveset
** You are now Level 16! **