What would be a good, smart and optimal approach to handling data for characters, for example, lets say im making an rpg and i want an easy way to config health, damage and other aspects of a mob for example, but instead of changing it in the code, i wanna change it with some sort of config, ive seen people do it with moduleScripts or something of the sorts but I do not know how that would work, any and all tips would be helpful
#Storing character information
1 messages · Page 1 of 1 (latest)
object oriented programming and metatables
yea but idk how to really do it in lua
i was thinking of OOP
just have no clue of how
OOP
Or attributes
ima assume OOP is with module scripts in roblox
yes
do you think you can provide an example? i cant find anything online nor in this discord that helps me understand on how i can achieve what i need
** You are now Level 5! **
Dive into the OOP paradigm and how it works within Luau.
For more, check out these links:
https://create.roblox.com/docs/luau/metatables
https://luau.org/typecheck
Chapters:
00:00 Intro
00:24 What is it?
01:36 Why do I care?
02:01 How do I it?
02:31 Example
03:25 Tangent
04:07 Example pt 2
09:59 When should I use it?