#How do I like store stats and other stuff?

1 messages · Page 1 of 1 (latest)

timber grotto
#

I am making a magic system that is kind of stats based.
What I mean by this is that I want to store each visual for each magic and also its stats and acces those when the magic is casted.
For example each magic will have X Strength, Y Size, Z Speed and also a particle.
How could I store those and access them using a script?

obsidian fjord
#

Make a class for the data you need

timber grotto
#

Ok so I use a class?

#

Thats how I store like info

#

,,,?

#

Wait guys not that

timber grotto
#

I was dumb now

#

I will close the post

#

THo

dense estuary
#

You need some base class, for Magic, something abstracted that most of your Magic will inehrit

timber grotto
#

I understood but do I make the class script monobehaviour?

#

that worked for me

#

when I add player stats