#Attempting To Create A Turn Based System
96 messages · Page 1 of 1 (latest)
What do you mean?
Sorry I just want to make sure I know what you mean so that I can answer correctly
Logically what would a turn based system look like? Start game -> player 1 turn -> player 2 turn -> player 3 turn. Something like that?
Yes, kind of like that, I'd like it to be Persona 5 type of turn based combat.
** You are now Level 1! **
I haven't played that game in awhile you're going to have to describe it
Or digimon cyber sleuth
That's going to be hard to describe a turned based, but I'll try.
Well you're going to need to in code anyways this is in english it should be easier
if only describing it in an essay can code it entirely
lol no, but it's a good first step
Ik what you mean
What I meant to say is "it's something that is complex to describe it into text, and it's better to watch an example to get a better understanding"
Well you already have an example with persona right
so describe how that system works
we're trying to break your problem down to a sequence of steps
which is closer to code than you were before
and after that we can break those down even further until we get to code
In Persona 5 you have a third person visual of your character in the overworld, around you there are Shadow Creature you can battle with: After having physically touched them a turn based combat start.
You have 3 ways to trigger a combat with a Creature: If you do a sneak attack and ambush the enemy the fight will start with a full extra turn for your four-member party. If the enemy sneak behind you and they trigger the fight then they will have an extra full turn. Last but not least If you attack the enemy without making an ambush, the battle will start normally without any extra turns.
I definitely didn't take this from an article
Okay so far I have
step 1. touch enemy to start combat
step 2. if you initiate combat you get a sneak attack
step 3. ?
as the gif I showed displayed, we'll have a gui showing who will go first etc
We might determine this by agility etc.
No, it would be based on agility.
Yo
yo
Ah, alright, so
hi
Lemme try to paraphrase what @dense turret was asking, just to help out a lil'
Ack
Wrong ping
ACK
.
wronG PING AGAIN

LISTEN
YOU
GET THE POINT
Ok so
Main game mechanic, if we ignore me being a mess for 10 seconds
Is uh
Open World MMORPG, when you bump into an enemy, you'll enter Combat, which is Turn-based
The part we're struggling with is figuring out how to do Turn-based combat
so kinda like honkai star rail
Kinda, yeah
mmmmmmmmmmmmmmmmmm
Except the guy doesn't know it.
** You are now Level 2! **
Ah
whos the guy
DylWithIt
^
he doesnt know how to make a turn based game in roblox?
no, the franchises.
are you three the ones working on the game or just strangers
but ig you could lay out a set template the battle follows if you wanna make it easy for ur self
im a total s tranger 🖐️
Kelly is one of my team, calt idk who they are
Make contact with an enemy
Game swaps states from open-world to turn-based combat
Check for agility of everybody involved
Turn order in order of agility (Highest agility first, lowest agility last)
Character 1 turn
Character 2 turn
so on, so on, loops once it hits the final turn
Battle ends when one or both teams reach 0 HP
LMK if I missed anything
does agility get depleted while in combat
Nope
Unless I'm missing stuff, it's just there to decide turn order
Might be a dodge chance or something? But I have no clue and don't wanna say stuff without knowing first, besides, that's something that would be pretty easy to just patch in so it doesn't really matter too much
** You are now Level 1! **
Either way, Stats shouldn't be changing mid-combat unless it's by effects or level-ups
That's exactly right. You basically have your code right there you just need to figure out each step.
The way to do that it to get more specific about the sequence each individual step needs to take
what the cat person said
just try to translate english into lua code
you guys still need help?
