A combat system like Arcane Lineage interests me and I wanna see how yall would approach systems like this? I’ve tried looking for resources for state machines but there’s barely any to read up on…
1 Like
If you try and convert your ideas into a state machine for this you’re going to get really confused. Think of it in phases and effects like you would if designing a real card game. The player tries to do an action, your game decides if they can do it, and does it if so. Each action can just be its own lua function, wrap it in a table to hold things like mana cost / name / description. Your GUI just needs to display these, perform the cost check, then fire the function when the player clicks.
1 Like
Also Balatro is in Lua and has a very complex but successful effects system, see if you can find a developer talk about it.
1 Like