Project Is a Shlog Friendship Simulator a gem or coal idea?

Will this song save it? [wholesome]
>Fast-paced autistic anime music
0b77a91e-a737-485c-b8d6-29db1087a2ec.gif
 
Python:
print("Welcome to the Soyjak.blog friendship simulator!. Pick a user to be kind to and befriend, or maybe befriend everyone just like in heckin Undertale.")

class messageHandling:
  def __init__(self, text, choice):
    self.text = text
    self.choice = choice

choicesDict = {
  "nameChoiceMsg":{
      "text": "What name will you go by?"
      "choices":{
        name = input("")
      },
  "firstPostMsg":
    "text": "You make an account on soyjak.blog. Excellent, you think. What will your first thread be about?"
    "choices":{
      1: "A formal introduction about your likes and interests.": choice1A,
      2. "A rant about the brown part of a banana.": choice1B,
      3. "What are your fetishes?": choice1C
    },
    "choiceResponses":
      "choice1A":
        "text": "You make a thread about your likes and interests. Wait, what are they anyway?"

Well I tried geg, I wasn't sure what the class was for or where to ask for input or how to check if the input was one of the available choices. I really appreciate the help [wholesome]
Good attempt but that doesn't look like valid JSON handling to me. I'm sure you'll get there though.
 
I was thinking about making a dialogue system and I do think making a custom class or a struct is the best way to go about it. Perhaps make it so every class is an encapsulated line of dialogue (or lines) with an array of references to other classes that correspond to the choices the player can make. You could store these in a bunch of Jsons and load them in as needed (could further encapsulate every conversation into it's own list of possible dialogues). These jsons could also store information used for progression and what not. I don't know python so here's a shitty diagram as an example
View attachment 47805
Doing this would be a lot better yeah, rather than what Toby Fox did with his dialogue system in undertale which was one big long if statement with all the choices and dialogue manually programmed in geg.
 
Back
Top