Hello,
Quick question, I’m currently creating a spell system and I was wondering what was the best for the script(s) where I stock all the info of the spell and what they do.
Would it be better to make all the spells and their infos in a giant table (1 module script), or each spell gets his own module script ?
1 module script :
-
pros :
- only 1 module script
-
cons :
- requiring 1 spell will put in memory all of the other spells (even if they are not currently used)
divided into multiple module scripts :
-
pros :
- requiring 1 spell will only put in the serv memory that spell
-
cons :
- more than 1 module script
Am I missing something ? If not which would be the best ?
Thx for reading