#Torn between what implementation to use for ability system

1 messages · Page 1 of 1 (latest)

robust drift
#

can someone tell me which is typically better? im gonna use modulescripts for functions regardless this is just to determined how data is stored

using a StringValue and attributes to hold info like the last time used and charges etc

OR

make the entire ability system object oriented

sly arrowBOT
#

studio** You are now Level 2! **studio

robust drift
#

my main issue with the second option is syncing between server and client

#

cuz I dont wanna make a remotefunction for every ability

sly arrowBOT
#

studio** You are now Level 9! **studio

covert kite
#

or you can do a hybrid

olive trellis
#

@robust drift i would do data module, that tells which move to use then use modulescripts for the actual move.

primal halo
robust drift
olive trellis
#

Here is how one of my systems work.

#

I use a data module, like for "Sword"

#

Damage = 25,

#

Cooldown = 1

#

and stuff

#

Then, I do a forloop and set all those attributes on the Actual sword object

#

Sword could have like "SpecialMove = "Slash"

#

and then the module calls that move

#

Movemodule does the Sword:GetAttribute("SpecialMove")

#

and it finds a move named "Slash"

#

@robust drift

covert kite
#

i would say use objects and module for framework, and strings/attributes are good for cooldowns, replication, save data

robust drift
#

since I could just store the variables in the object

#

idk i just dont like splitting up things that are meant to represent the same thing

covert kite
#

but for replication, persistence and external stuff string/attributes make sense

#

youre not spliting it up just separating

robust drift
#

i see

sly arrowBOT
#

studio** You are now Level 3! **studio