#Attempting To Create A Turn Based System

96 messages · Page 1 of 1 (latest)

dense turret
#

This is quite a complex question, why don't you tell me what steps go into a turn based combat?

jovial pilot
#

Sorry I just want to make sure I know what you mean so that I can answer correctly

dense turret
#

Logically what would a turn based system look like? Start game -> player 1 turn -> player 2 turn -> player 3 turn. Something like that?

jovial pilot
#

Yes, kind of like that, I'd like it to be Persona 5 type of turn based combat.

sullen grottoBOT
#

studio** You are now Level 1! **studio

dense turret
#

I haven't played that game in awhile you're going to have to describe it

jovial pilot
#

Or digimon cyber sleuth

#

That's going to be hard to describe a turned based, but I'll try.

dense turret
#

Well you're going to need to in code anyways this is in english it should be easier

jovial pilot
#

if only describing it in an essay can code it entirely

dense turret
#

lol no, but it's a good first step

jovial pilot
#

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"

dense turret
#

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

jovial pilot
#

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

dense turret
#

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. ?

jovial pilot
#

This is how the gist of the combat would look like.

dense turret
#

so what's step 3

#

pick attack?

#

take turn?

jovial pilot
#

We might determine this by agility etc.

dense turret
#

soo

#

roll for initiative?

jovial pilot
#

No, it would be based on agility.

dense turret
#

okay

#

so

#

determine move order?

#

come on I can't do this all for you

gloomy monolith
#

Yo

dense turret
#

yo

gloomy monolith
#

Ah, alright, so

manic zephyr
#

hi

gloomy monolith
#

Lemme try to paraphrase what @dense turret was asking, just to help out a lil'

#

Ack

#

Wrong ping

manic zephyr
#

ACK

gloomy monolith
#

@plucky olive

#

Sorryyyyy

#

AHSDGApgh

jovial pilot
#

.

gloomy monolith
#

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

manic zephyr
#

so kinda like honkai star rail

gloomy monolith
#

Kinda, yeah

manic zephyr
#

mmmmmmmmmmmmmmmmmm

gloomy monolith
#

Same as Star Rail, Persona, SMT

#

All that stuff

jovial pilot
#

Except the guy doesn't know it.

sullen grottoBOT
#

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

gloomy monolith
#

Ah

manic zephyr
#

whos the guy

jovial pilot
#

DylWithIt

gloomy monolith
#

^

manic zephyr
#

he doesnt know how to make a turn based game in roblox?

jovial pilot
#

no, the franchises.

gloomy monolith
#

Oh, sequence of steps

#

I can do that

manic zephyr
#

oh

#

i know the franchies

#

franchises

dense turret
#

are you three the ones working on the game or just strangers

manic zephyr
#

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 🖐️

jovial pilot
#

Kelly is one of my team, calt idk who they are

gloomy monolith
#

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

manic zephyr
#

does agility get depleted while in combat

gloomy monolith
#

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

sullen grottoBOT
#

studio** You are now Level 1! **studio

gloomy monolith
#

Either way, Stats shouldn't be changing mid-combat unless it's by effects or level-ups

dense turret
manic zephyr
#

what the cat person said

gloomy monolith
#

Fair fair

manic zephyr
#

just try to translate english into lua code

dense turret
#

you guys still need help?