G
G
German Shestak2019-08-01 20:17:20
Node.js
German Shestak, 2019-08-01 20:17:20

How to make multiple branches in a text game? Without any engine?

Good day. End of summer, and I feel like I did absolutely nothing.. I got the idea to write a bot for the discord server with a text quest, like the game "Symbiote" 0,1,2,3. Since I more or less know node.js, I decided to write on it .. But here's how to organize it? Hefty switch-case constructions only come to mind, but I feel that this is something not what I need.
Can you tell me what to know from what to build on?
Knowledge is the minimum level, I write code and bots while learning)
Thank you for your help in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Robur, 2019-08-01
@Robur

you need a state machine. You can write yourself, you can take something ready

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question