player characters. And it more has to do with the various actions a character can do.
Do I just create a giant pool of all the actions, do I put the actions directly in the character table or do I group them all together....
Code:
actions:char1nameDoAction(char1,char2) --bigPool
char1:doAction(char2) --every action directly inside the character table
char1.actions:doAction(char1,char2) --every action grouped together in their own table.
I like the second the most when writing stuff, but then ability names can screw stuff up. The third one would be nice except that I can't pass the table of the character that does the action automatically. Unless I put that table inside the actions table, in which case ability names can still screw stuff up....
And then there is the question if I should add special methods to add modifiers to a character inside the character table and do something similar for modifiers or not. That way you can just do
Code:
char1:getModifierByName("Damage"):delete()
instead of
Code:
local mod = battle:getModifierByName(char1,"Damage")
battle:deleteModifier(char1,mod)
but... that is also a good bit more work.....
I guess, I'm just doing the easy and quick thing now, then I can always bring out updates later on to extend on them.