#How to Script Turn base RPG?
1 messages · Page 1 of 1 (latest)
provide more details
the simplest way
is
create a global variable
object array
if 1st item in the array is your character then its the turn of your
and end the turn by remove the 1st (head) item of the array
you forgot to explain what the flip are an arrays 😭🙏
they know what an array is
Still don't get-
EFEFEF
Sorry bruh am still dumb to learn it 😭
hmmm
imagine
you have a list of todo things
you put text in there of course
if the current one you done then you mark it right
then it counts a remove item an array
and the next thing to do will be the first on the list now
put 2 actors in a map
(for simple turn base btw)
create a global variable
object array
create a script in "When Map created"
Loop 500 times
Execute Array. At 1st (tail) insert (Player.Main Actor. Current Actor)
Execute Array. At 1st (tail) insert (enemy actor in the map)
Infinite loop
if Array.1st item = Player.Main Actor. Current Actor then
(Your turn, switch ui for action like attack defend as Example)
Execute Array Remove 1st item
else
(make enemy do random actions like damage you or defend)
Execute Array Remove 1st item
yeah something like that