#How to Script Turn base RPG?

1 messages · Page 1 of 1 (latest)

glacial jasper
#

Yeah I have been trying this so many attempts but failed,well if one of you guys know how to Script it tell me okay! :3
Thank you! 🙏

pseudo folio
#

provide more details

royal hound
#

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

pseudo folio
royal hound
glacial jasper
royal hound
glacial jasper
royal hound
#

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