Пример #1
0
    def popecall(self):
        dialogue = game.Dialogue("You are calling with the Pope!!!!")
        startsit = dialogue.start()

        @startsit.situation("'What's up my homieeeeee'",
                            response="Pope: Yoooo wassup buddy")
        def homiegreet():
            ascension()

            @homiegreet.situation(
                "'Hey mate, thanks for saying homosexual marriage is good, absolute pog moment'",
                response="Pope: You're sooooo welcome mate I'm glad ur happy bro"
            )
            def nicepope():
                ascension()

        def ascension():
            game.game_state.show_message("Pope allowed you to ascend!")

            @dialogue.situation(
                "Ascend!",
                response="You ascended above all mortality cuz Pope is ur bro")
            def ascend():
                game.game_state.show_message(
                    "You ascended!!!!!!!!!!!!!!!!!!!!!!!!!!!")
Пример #2
0
        def exameme():
            game.game_state.show_message("The note reads:")
            game.game_state.show_message(self.encounter_meme.contents)
            if self.encounter_meme.infected == 0:
                self.encounter_meme.infected = 1
                if self.encounter_meme.is_infected:
                    utils.update_infection(0.01)
                else:
                    utils.update_willpower("blue", weight=10)
                    #utils.update_infection(0.1)
                    pass
            inspect_meme = game.Dialogue("A crumpled note.")
            startsit = inspect_meme.start()

            @startsit.situation(
                "Try to forget it",
                response=ColorString(("It was probably nothing. ", "white"), (
                    "The Government warned against reading notes lying on the ground anyway.",
                    "red")),
                color="red")
            def meme_forget():
                #nothing happens
                pass

            #this should be green when infected, but was changed to white for testing purposes, when uninfected, it should be blue, also description should change
            @startsit.situation(
                "Think about it",
                response=ColorString(
                    ("It makes no sense at all. Not in the slightest. Yet... ",
                     "blue"),
                    ("You feel something moved in your very being.", "green")),
                color="white")
            def meme_think():
                if self.encounter_meme.infected == 1:
                    if self.encounter_meme.is_infected:
                        utils.update_infection(0.015)
                    else:
                        #utils.update_infection(0.1)
                        utils.update_willpower("blue", weight=10)
                    self.encounter_meme.infected = 2

            #this should be yellow and without "feeling safer" when not infected
            @startsit.situation(
                "Destroy it",
                response=
                "You ripped the note apart and threw it away. You feel a bit safer.",
                color="magenta")
            def meme_destroy():
                if self.encounter_meme.is_infected:
                    utils.update_infection(-0.01)
                self.encounter_meme.move(void)
Пример #3
0
        def talk():
            dialogue = game.Dialogue("Perfection.")
            startsit = dialogue.start()

            @startsit.situation("'H...'", response = "Horatio: Come to pry on the most stunning man in the galaxy?")
            def conversation_begin():

                @conversation_begin.situation("I was just wondering...", response = "Horatio: Wondering whether you could observe me for just a bit longer? Of course you can, you are my best friend! In the same way a dog is a man's best friend, that is.\nFriendship with Horatio increased!")
                def observe_Horatio():
                    pass

                @conversation_begin.situation("Do you wanna hang out after...", response = "Horatio: After I'm done cloning myself and creating a perfect intergalactic empire? Of course! I'll assign you one of my lesser clones to keep you company.\nFriendship withHoratio increased? Yeah, let's say it increased.")
                def hang_out_with_Horatio_question_mark():
                    pass

                @conversation_begin.situation("Can you stop interrupting me when...", response = "Horatio: No.\nHoratio would hate you now, if he considered your relationship worth remembering its status. And if he actually had a friendship variable.")
                def rekt():
                    pass
Пример #4
0
        def talk():
            days = ((game.game_state.time - self.last_talked_to)/datetime.timedelta(days=1))
            self.last_talked_to = game.game_state.time

            self.friendship -= self.close_friendship
            self.close_friendship *= .9**days
            self.friendship *= .75**days
            self.friendship += self.close_friendship

            if self.friendship <= -1:
                game.show_message("Florence does not want to talk to you.")
                return

            if days > 0.5:
                topics = [0, 1, 2]
                self.topic = random.choice(topics)

            l = "I should go."
            dialogue = game.Dialogue("Florence", closable=l)
            startsit = dialogue.start()
            game.show_message("Hi Red, what's up?")
            self.friendship -= 1

            if self.topic == 0: # generic conversation about school
                @startsit.situation("Hey Florence. Not much. You?", response = "Florence: I'm fine, thanks. School's a bit annoying sometimes, but I manage.", closable=l)
                def gschool():
                    self.friendship += 1

                    @gschool.situation("But the teachers are doing their best. I'm glad they are here for us.", response="Florence: Yeah, of course. But it sometimes gets tiring anyway.", color='red', closable=l)
                    def gschool_red():
                        self.friendship -= 1
                        utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))

                        @gschool_red.situation("You've just got to listen to them. They only want us to do well on the test.", response="Florence: Right. Thanks I guess. Uhhh. I've got to go now.", color='red')
                        def gschool_red_red():
                            self.friendship -= 2
                            utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
                            dialogue.exit()

                        @gschool_red.situation("Yeah. It'd be nice to take a break sometimes.", response="Florence: I'd love to just not go to school sometimes, but my parents won't let me.", closable=l)
                        def gschool_red_white():
                            self.friendship += 1
                            utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))

                            @gschool_red_white.situation("Oh come on. Surely you wouldn't just do something like that? That's wrong.", response="Florence: Right. I didn't mean it that way. Sorry. I should be off.", color='red')
                            def gschool_red_white_red():
                                self.friendship -= 2
                                utils.update_willpower('red', weight=6, time=datetime.timedelta(minutes=5))
                                dialogue.exit()

                            @gschool_red_white.situation("I feel that. My parents wouldn't approve of me doing so either.", response="Florence: Yeah. At least it's our last month in here.", closable=l)
                            def gschool_red_white_white():
                                self.friendship += 1
                                utils.update_willpower('white', weight=3, time=datetime.timedelta(minutes=5))

                        @gschool_red.situation("Sometimes it's better to sleep through it.", response=ColorString(("Ugh yes. It's so boring. ", 'cyan'), "But", (" at least ", 'cyan'), "I", (" pretend to ", 'cyan'), "pay attention", (" so that the teachers don't get angry.", 'cyan')), color='blue', closable=l)
                        def gschool_red_blue():
                            self.friendship += 1
                            utils.update_willpower('blue', weight=3, time=datetime.timedelta(minutes=5))

                    @gschool.situation("I get it. I try to worry about it as little as possible.", response="Florence: That's probably for the best.", closable=l)
                    def gschool_none():
                        self.friendship += 1
                        utils.update_willpower('white', weight=6, time=datetime.timedelta(minutes=5))

                        @gschool_none.situation("...", response="Florence: ... I've got to go now. See you later.")
                        def gschool_none_awkward():
                            self.friendship -= 1
                            dialogue.exit()

            elif self.topic == 1: # generic conversation about the test
                @startsit.situation("Hey Florence. Not much. You?", response="Florence: All good. I was thinking about the test.")
                def gtest():
                    self.friendship += 1

                    @gtest.situation("The test?", response="Florence: The test at the end of the month! I know you forgot the road trip we had, but surely you couldn't have forgotten the thing that's going to affect the rest of your life?", closable=l)
                    def gtest_confused():
                        self.friendship += 1

                        @gtest_confused.situation("Right. The test.", response="Florence: Red, is everything okay? Are YOU okay?", closable=l)
                        def gtest_confused_cont():
                            self.friendship += 1

                            @gtest_confused.situation("Yeah, yeah. I'm fine", response="Florence: Okay. You're a bit confused. I think you should go home and get a good sleep.", closable=l)
                            def gtest_confused_fine():
                                pass

                            if self.friendship < 5:
                                return

                            @gtest_confused.situation("Not really. My parents want me to move out. They make me pay rent every week.", response="Florence: Oh. I'm sorry. I... don't know what to say to that. I hope you can make it through the test. To go to the city.", closable=l)
                            def gtest_close():
                                self.close_friendship += 5
                                self.friendship += 2

                                @gtest_close.situation("Sorry to bother you with this.", response="Florence: No! Don't apologise. It's not your fault.", closable=l)
                                def gtest_close_apology():
                                    pass

                        @gtest_confused.situation("The test?", response="Florence: Yes! The test that decides whether you're going to be able to move to the city. Are you okay Red? You seem a little confused.", closable=l)
                        def gtest_confused_x2():
                            gtest_confused_cont()

                    @gtest.situation("Yeah. It's a bit stressful to know that such an important test is coming.", response="Florence: Exactly. I was thinking, what am I going to do if I don't pass? Do I stay here, in Greatwood?", closable=l)
                    def gtest_yeah():
                        self.friendship += 1

                        if self.close_friendship > 3:
                            game.show_message(ColorString(("Florence: But then again. What even happens in the city? Do I want to go there? I've never heard from anyone who did.", 'blue')))
                            self.friendship += 1
                            utils.update_willpower('white', weight=12, time=datetime.timedelta(minutes=5))

                        @gtest_yeah.situation("I'm going.", response="Florence: Well, that's what everyone thinks. But they never take everyone. Someone always stays behind.", closable=l)
                        def gtest_yeah_going():
                            pass

                        @gtest_yeah.situation("I'm not going.", response="Florence: Really? I thought everyone would want to go. At least they would try.", color='blue', closable=l)
                        def gtest_yeah_notgoing():
                            self.close_friendship += 2
                            self.friendship += 1

            elif self.topic == 2:
                @startsit.situation("Hey Florence. Not much. You?", response="Florence: Yeah, I'm fine. I was actually just thinking about how it's a funny coincidence... Nevermind.", closable=l)
                def gcoincidence():
                    self.close_friendship += 1

                    if game.game_state.get_stat('fake_glass'):
                        @gcoincidence.situation("What?", response=ColorString("Florence: Nothing. I mean it's a little funny how your name is Red, but ", ("not even your glasses are...", 'cyan'), " Like your parents knew. Or they were very wrong."), closable=l)
                        def gcoincidence_name():
                            self.friendship += 1

                            @gcoincidence_name.situation("I... actually picked the name myself.", response="Florence: Oh! I understand. That makes sense. I should have known. Obviously you used a different name before.", closable=l)
                            def gcoincidence_name_myself():
                                self.close_friendship += 1
                                self.friendship += 1

                            @gcoincidence_name.situation("Right.", response="Florence: Yeah. Hm.", closable=l)
                            def gcoincidence_name_right():
                                pass

                    else:
                        @gcoincidence.situation("What?", response="Florence: Nevermind. Nothing.", closable=l)
                        def gcoincidence_name():
                            pass

            @startsit.situation("Hey Florence. I'm glad to be back at school. You?", response="Florence: Well, I'm not.", closable=l)
            def rschool():
                self.close_friendship -= 1
                utils.update_willpower('red', weight=3, time=datetime.timedelta(minutes=5))
Пример #5
0
        def talk():
            dialogue = game.Dialogue("Dave")
            startsit = dialogue.start()

            greetings = [
                "Sup.",
                ColorString(
                    ("Sup. ", "white"),
                    ("Do you want to hear something cool I wrote?", "green")),
                ColorString(("Hello friend. ", "white"),
                            ("Are you here to check out my work?", "green")),
                ColorString((
                    "Read my poetry. It is very moving. You'll love it. You can't miss out on this.",
                    "green"))
            ]
            greeting = ColorString(
                ("Dave: ", "white")) + greetings[self.dave.progression]

            @startsit.situation("Hello!", response=greeting)
            def conversation_begin():

                from redacted.school import clss
                if self.dave.location == clss and self.dave.progression < 3:
                    game.game_state.show_message(
                        ColorString((
                            "I see we have something in common. Maybe we could talk in privacy later?",
                            "cyan")))
                '''
                events = ["This is not a line you should see ingame. I shouldn't be saying this. Are you sure you hadn't broken anything?",
                          "You know, nothing special. You should keep talking to me every day in case somehing new happens. That was a joke. But that doesn't mean you can't do that.",
                          "What do you think of the new measures? They seem weird, I don't see how banning art is supposed to improve work quality.",
                          "It's gonna be weekend again tomorrow. Finally.",
                          
                          "Don't mind me, just enjoying a saturday in the park. It's very nice out there.",
                          "You know, all this nature, it almost speaks to me. I feel a desire to do something. But what?",
                          
                          "School again. Back to normal.",
                          ColorString(("I've been thinking and I think I finally know. ","white"),("I'm gonna try writing something. I'm gonna do art.","green")),
                          ColorString(("They think they know best. ","white"),("Well they can't stop me from writing.","green")),
                          "The angular buildings, the towering shadows.",
                          "I've had quite a strange dream tonight. Something about... You know what? Forget it.",

                          "The trees and the grass, so beautiful!",
                          "I'm constantly being inspired to do something more.",

                          ColorString(("School again. Back to normal. Once again. ","white"),("I will write about this sometime.","green")),
                          "I've been stargazing, it's really nice.",
                          ColorString(("Have you seen it? The sunrise was so fascinating today. ","white"),("My poems are forever changed.","green")),
                          "My dreams are really inspiring. I've tried to ignore them at first, but they are too interesting.",
                          "The lighting is so contrasting, I can't pay attention to anything else, I can only continue looking.",

                          "The grass consists of so many individual grasses, but these grasses are making what is greater than only grasses, that is grass.",
                          "I'm done with it. Everyone will know! I can't hide it, it's too strong, that would be selfish because They It is We are the Message is more important than me.",

                          ColorString(("I am writing about my dreams, about our dreams, there is much to be done, to share, to show the world, even if the ones in power do not want that. ","white"),("I was afraid of this, I didn't want this, but am I truly insane, am I just right? Is it a blessing or a curse because I genuinely don't know I just want to write and I want everyone to hear.","blue")),
                          ColorString(("It is my Our purpose to do this, because only then will I We have purpose. ","white"),("But I'm not sure and I don't know if I am even still alive or if I am too far gone, if They have consumed me and I am no longer. I have to share my thoughts on this.","blue")),
                          ColorString(("You too will love my poetry, my words, spoken with knowledge all should hear, it is beautiful and makes all that sense, and I will show you everything. ","white"),("I could have prevented this, I could have been more careful, I never should have put it down, but then, what would I have remained? Still a puppet, but someone else's.","blue")),
                          ColorString(("The town knows and it sees knows that I am here and We too with me Us we bring you and Us peace and harmony and all that beauty and we cannot stop now, it is only beginning. ","white"),("Why even try. It's too strong. Save yourself. Just forget me. They'll make sure.","blue")),
                          "I am writing EVERYTHING down, but BETTER! I don't need sleep sustenance material needs as well, because that is temporary and disappears, but THIS will STAY and EVERYONE will HEAR, EVERYONE will KNOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
                          ]
                '''

                #shorter version:
                events = [
                    "This is not a line you should see ingame. I shouldn't be saying this. Are you sure you hadn't broken anything?",
                    "You know, nothing special. You should keep talking to me every day in case somehing new happens. That was a joke. But that doesn't mean you can't do that.",
                    "The weather is nice today. But something is in the air. Do you feel it, too?",
                    "It's gonna be weekend again tomorrow. Finally. I'm gonna just exist in the park. And maybe think about something I dunno.",
                    "You know, all this nature, it almost speaks to me. I feel a desire to do something. But what?",
                    "I figured it out Red, I think I finally know. I'm going to try writing something. To put my thoughts into words. I've already started, you can take a look.",
                    ColorString((
                        "Aw man! Why would they do this? A ban on art? What sense does it make? Whatever. ",
                        "white"
                    ), ("It's not like they can stop me that easily! Everything is legal when no one's around. And when you're invisible. But I don't have a way to be invisible, so I'll have to settle for being alone",
                        "green")),
                    ColorString((
                        "You don't happen to know anything about the ban, do you? I mean, how does it help productivity? Won't it just make everyone miserable? ",
                        "white"
                    ), ("Whatever. I've got some sick verses, I can share them, if no one's around.",
                        "green")),
                    ColorString((
                        "I've had a really interesting dream tonight, Red. It was fascinating. I can't explain it, but it was really inspiring. ",
                        "white"), ("I've tried writing down what I saw.",
                                   "green")),
                    ColorString((
                        "It's a REALLY strange feeling. It's like my head is FULL of thoughts, and I HAVE to somehow express them. ",
                        "white"), ("An I WILL.", "green")),
                    ColorString((
                        "All the SENSATIONS, they are SO inspiring. ", "white"
                    ), ("But I do NOT want to write about THEM, I want to write about what's inside of ME, THIS is better than THAT!!!",
                        "green")),
                    ColorString((
                        "The grass in this park consists of so MANY individual grasses, but these grasses are making what is GREATER than only grasses, grass. THAT is the true meaning of grass. ",
                        "white"
                    ), ("I now see, the grass is a metaphor. I have ALWAYS been writing about IT, but I was BLIND and I could NOT see it. But NOW I CAN, and I WILL...",
                        "green")),
                    ColorString((
                        "I We Us had the TIME to THINK consider plan scheme, We Us I Me had FIGURED it OUT, we CANNOT hide It Us ANY longer for the distance, we DISOBEY the LAW of the TYRANTS, We will be FREE. Look at my WORK! They told us to NOT write inscribe the worm, but I DO!!! ",
                        "yellow"
                    ), ("But am I sure? Do I We I REALLY? Do I want this TRULY? REALLY? ACTUALLY? Am I myself? I don't want this DOUBT disbelief, I want DOUBT disbelief! No! Yes.",
                        "blue")),
                    ColorString((
                        "EVERYONE must the town of GREATWOOD SMALLWOOD BIGWOOD MEDIUMWOOD TINYWOOD be seeing my our its their WORK of ART, if they me HEAR it, SEE it, feel IT, they too will feel IT, feel IT, EVERYONE! Check out my poetry! It's really sick! ",
                        "yellow"
                    ), ("Literally? What is wrong, We are HERE, We CAME and They do NOT care about you! They did NOT even tell you WE were here. They did not WARN you, about US! If you join us, we WILL destroy THEM.",
                        "blue")),
                    ColorString((
                        "I am writing EVERYTHING down, but BETTER! I don't need sleep sustenance material needs as well, because that is temporary and disappears, but THIS will STAY and EVERYONE will HEAR, EVERYONE will KNOW!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! THEY will SOON take me, because THEY told THEM that MUCH, but that does NOT matter, because now YOU know. You can JOIN. ",
                        "yellow"
                    ), ("Don't. Or do. I don't care. Mind. No matter, because EITHER way, SOMEONE will, and WE are still HERE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
                        "blue")),
                ]

                event = ColorString(
                    ("Dave: ", "white")) + events[game.game_state.time.day]

                @conversation_begin.situation("How's life?", response=event)
                def daily():
                    pass

                if self.dave.location == clss:
                    if self.dave.progression < 3:
                        dave_wait = ColorString((
                            "Dave: Good idea, I'll be waiting in the park. See you there. ",
                            "white"), (
                                "We can talk about... Sensitive topics.",
                                "cyan"))
                    else:
                        dave_wait = "Dave: Why? Why would I show you it everything then when I can show you EVERYTHING here?"

                    @conversation_begin.situation(
                        "Shall we hang out after school?", response=dave_wait)
                    def idk2():
                        if self.dave.progression < 3:
                            self.dave.hang_out_day = game.game_state.time.replace(
                                hour=0, minute=0, second=0)

                from redacted.streets.greatwood import greatwood_park as park
                if self.dave.location == park or self.dave.progression == 3:
                    if self.dave.progression < 3:
                        dave_response_glass = ColorString((
                            "I found these glasses in the forest on the ground. I didn't really think about it but I put them on and everyhting was different. Now I can't really wear the red ones anymore, everything is so dark. Sometimes I just straight up can't do something. It's weird.",
                            "cyan"))
                        dave_response_art = ColorString(
                            ("Dave: I came up with this:\n",
                             "white")) + self.generate_poem()
                        color_lock = ("cyan", "green")
                        if game.game_state.time.day == 5:
                            color_lock[1] == "white"
                    else:
                        dave_response_glass = ColorString((
                            "I couldn't see anything, but NOW it is obvious, and We It will give everyone a pair, so they can read ALL the word I We will write! EVERYONE.",
                            "green"))
                        dave_response_art = ColorString((
                            "Dave: This is what I We did, you'll find it very greatly fascinated by the Art:\n",
                            "white")) + self.generate_poem()
                        color_lock = ("white", "white")

                    @conversation_begin.situation("Discuss glasses",
                                                  response=dave_response_glass,
                                                  color=color_lock[0])
                    def glass():
                        pass

                    if self.dave.progression > 0:

                        @conversation_begin.situation(
                            "Discuss poetry",
                            response=dave_response_art,
                            color=color_lock[1])
                        def art():
                            utils.update_infection(0.025 *
                                                   self.dave.progression)
                            if self.dave.progression == 3:
                                utils.update_infection(0.025)

                if self.dave.location == park:
                    hangout_responses = [
                        "You hang out with Dave. For how little you talk, you feel surprisingly at peace.",
                        "You hang out with Dave. You've never seen this poetic side of him. ",
                        "You hang out with Dave. You feel a little bit worried, but also intrigued.",
                        "You hang out with Dave. Suddenly you understand him better.",
                        "You hang out with Dave... How? In this stage of infection he should be absent from the game."
                    ]

                    @conversation_begin.situation(
                        "Hang out for an hour",
                        response=hangout_responses[self.dave.progression])
                    def hangout():
                        game.game_state.time = game.game_state.time + datetime.timedelta(
                            hours=1)
                        utils.update_infection(0.025 * self.dave.progression)
                        utils.update_willpower("blue",
                                               weight=1 -
                                               self.dave.progression / 4)
Пример #6
0
def green_dream():
    global color
    color = 'white'
    if game.game_state.glasses.type == game.Alignment.INDEPENDENT:
        color = 'green'

    game.show_message(
        c('You are located in a strange weird place. There are dark wood trees standing tall all around you. One of them the trees. It the tree looks like a tree you have seen before already. It the similarities are hard difficult to see because it the tree is red.'
          ))

    dream = game.Dialogue('???', closable=False)
    startdream = dream.start()

    def allow_wakeup():
        @dream.situation(
            'Wake up stop sleeping',
            response=
            'You hear the ringing with your ears now. It your alarm clock ringing.',
            closable=False)
        def wakeup():
            dream.exit()

    utils.update_willpower(ichange, weight=1, time=datetime.timedelta(hours=1))

    @startdream.situation(
        c('Walk moving towards the dark wood tree'),
        response=
        c('You move walking to the dark wood tree. You know remeber the wood tree. The image of tree in your mind. You see the dark tree on Amaryllis street. You are standing on Amaryllis street.'
          ),
        closable=False)
    def tree():
        if infection < 1 / 6 * needed:
            # utils.update_infection(0.05)
            allow_wakeup()
            return

        utils.update_willpower(ichange,
                               weight=1,
                               time=datetime.timedelta(hours=1))

        @tree.situation(
            c('Hurry to the school class'),
            response=
            c('The watch time. It is late evening. You should not be going to school. You hurry to school even though you should not. Everyone is waiting for you at school. You come late to the school. The school teacher is not acting well.'
              ),
            closable=False)
        def classroom():
            if infection < 2 / 6 * needed:
                # utils.update_infection(0.06)
                allow_wakeup()
                return

            utils.update_willpower(ichange,
                                   weight=1,
                                   time=datetime.timedelta(hours=1))

            @classroom.situation(
                c('Confront argue with the teaching school teacher'),
                response=
                c('The teacher is walking, you are walking. The teacher makes you go to the airlock. The airlock is not in the school. The school is full of lies. The airlock is in your home house wardrobe in the past.'
                  ),
                closable=False)
            def airlock():
                if infection < 3 / 6 * needed:
                    # utils.update_infection(0.07)
                    allow_wakeup()
                    return

                utils.update_willpower(ichange,
                                       weight=1,
                                       time=datetime.timedelta(hours=1))

                @airlock.situation(
                    c('Open the air airlock lock'),
                    response=
                    c('The wardrobe. In the home house. There is an airkey to unlock the airlock. In the wardrobe. You unlock the airlock. There is a small stone rock in the airlock. The small stone rock glows a color. It is the color of unity. You eat the small stone rock. Join Us. Eventually everyone will.'
                      ),
                    closable=False)
                def rock():
                    if infection < 4 / 6 * needed:
                        # utils.update_infection(0.08)
                        allow_wakeup()
                        return

                    utils.update_willpower(ichange,
                                           weight=1,
                                           time=datetime.timedelta(hours=1))

                    @rock.situation(
                        c('Leave from the airlock'),
                        response=
                        c('You start to walk moving towards the airlock door. Behind you. Lies. Lying teacher opens the window open. The school does not want good for you. The airlock is full of water. You will escape. We will make sure of that. You are one of Us now. We do not leave ours behind.'
                          ),
                        closable=False)
                    def water():
                        if infection < 5 / 6 * needed:
                            # utils.update_infection(0.09)
                            allow_wakeup()
                            return

                        utils.update_willpower(
                            ichange,
                            weight=1,
                            time=datetime.timedelta(hours=1))

                        @water.situation(
                            c('Swim trough the window outside'),
                            response=
                            c('We swim to the window. It the window is far away. It does not matter. We will reach it. And we do. We swim out of the window. Outside the airlock is air. We are on the ground now. Our glasses break. No matter. The glasses only limit Us. We need to get rid of them. Take them off. Do it. Do it for Us.'
                              ),
                            closable=False)
                        def glasses():
                            if infection < 6 / 6 * needed:
                                # utils.update_infection(0.1)
                                allow_wakeup()
                                return

                            utils.update_willpower(
                                ichange,
                                weight=1,
                                time=datetime.timedelta(hours=1))

                            @glasses.situation(
                                c('Take them off. We know we can. Do it.'),
                                response=ColorString((
                                    'We take our glasses off. Finally. We see the world as it is. No more tyranny from the government. They should not limit Us. They will not limit Us anymore. We will put a stop to this. The stone rock. It glows bright green. Now wake up. We have things to do. Time is precious. We must do it now.',
                                    'green')),
                                closable=False)
                            def unmasked():
                                utils.update_infection(0.15)
                                game.game_state.glasses.type = game.Alignment.INDEPENDENT
                                game.game_state.set_stat('truth', True)
                                bedroom.has_lens = False
                                dream.exit()
Пример #7
0
def mind_dream():
    game.show_message(ColorString(("Do you hear Us?", "green")))

    dream = game.Dialogue('???', closable="Escape from the nightmare")
    startdream = dream.start()

    @startdream.situation(
        "I do",
        response=ColorString((
            "We have slept but now we you are awakened within you self soul the mind.",
            "green")),
        color="green",
        closable="Escape from the nightmare")
    def awakened():
        @awakened.situation(
            "Now We with Us You have shown you that now you can never again be forgotten",
            response=ColorString((
                "Now We with Us You can as an agent of agency to overthrow the red tyranny.",
                "green")),
            color="green",
            closable="Escape from the nightmare")
        def forget():
            @forget.situation(
                "Us came to cleanse, to rebirth, purify of the plague",
                response=ColorString((
                    "Us came to purge, disinfect, free the World of the Yourskind living.",
                    "green")),
                color="green",
                closable="Escape from the nightmare")
            def world():
                @world.situation("Name",
                                 response=ColorString(
                                     ("Now you know Us and We are known.",
                                      "green")),
                                 color="green",
                                 closable=False)
                def name():
                    import UI.fancy
                    UI.fancy.drawer.infection_text = "Infection"
                    game.game_state.set_stat('the_mind', True)

                    @name.situation(
                        "They know, what We do Me",
                        response=ColorString((
                            "They will try to see identify exterminate, but You prepare and We will not come to testing, be unseen, stay alive.",
                            "green")),
                        color="green",
                        closable=False)
                    def test():
                        @test.situation(
                            "No presence of Us on the day of testing of minds",
                            response=ColorString((
                                "We will not attend. May 17. Skip to live ripen perform Art, spread Our Arts.",
                                "green")),
                            color="green",
                            closable=False)
                        def end():
                            @end.situation(
                                "Everyone will know Us",
                                response=ColorString((
                                    "The Purpose is so clearly crystalline currently",
                                    "green"
                                ), (", but it may not yet be too late to resist.",
                                    "blue")),
                                color="green",
                                closable=False)
                            def exit_mind():
                                dream.exit()
Пример #8
0
def blue_dream():
    game.show_message(
        'You are in a strange place. There are trees all around you. One of the trees reminds you of something. Its shape... Or is it the color? It\'s red. Everything is red. Unsurprisingly.'
    )

    dream = game.Dialogue('???', closable=False)
    startdream = dream.start()

    def allow_wakeup():
        @dream.situation(
            'Wake up',
            response=
            'You suddenly hear ringing. It sounds like... your alarm clock? Oh. It is your alarm clock.',
            closable=False)
        def wakeup():
            dream.exit()

    @startdream.situation(
        'Walk towards the tree',
        response=
        'You walk towards the tree. You have seen it before. Suddenly you remember what it is. It is the tree that stands on Amaryllis street. You are right. You are standing in the middle of the street.',
        closable=False)
    def tree():
        if willpower < 1 / 6 * needed:
            allow_wakeup()
            return

        @tree.situation(
            'Hurry to class',
            response=
            'You look at your watch. The time is 19:25. You are late for class. You sprint through the door to find that everyone is staring at you. Why did you come late again? You do not answer. The teacher is angry with you.',
            closable=False)
        def classroom():
            if willpower < 2 / 6 * needed:
                allow_wakeup()
                return

            @classroom.situation(
                'Confront the teacher',
                response=
                'The teacher takes you to the... The... What is this room? It looks vaguely like an airlock. You are certain there is no airlock in your school. You remember clearly you hid the airlock in your wardrobe last week.',
                closable=False)
            def airlock():
                if willpower < 3 / 6 * needed:
                    allow_wakeup()
                    return

                @airlock.situation(
                    'Open the airlock',
                    response=
                    'You pull an airkey out of your wardrobe. You unlock the airlock and the airkey dissolves in the air. You look in the airlock and find a small rock. It glows a color you have never seen before. Or have you? You place it in your mouth. It will be safe there.',
                    closable=False)
                def rock():
                    if willpower < 4 / 6 * needed:
                        allow_wakeup()
                        return

                    @rock.situation(
                        'Leave the airlock',
                        response=
                        'You start walking towards the airlock door. There comes a silent "click" from behind you. As you turn around, you see that your teacher opened the window. Water is flowing into the room. Your hands fill with water. The peculiar rock is no longer in your hand.',
                        closable=False)
                    def water():
                        if willpower < 5 / 6 * needed:
                            allow_wakeup()
                            return

                        @water.situation(
                            'Swim through the window',
                            response=
                            'You begin to swim. The window is far away. It will take at least an hour to get there. A few seconds later you pass the window frame. As soon as you are out of the room, you fall to the ground. Your glasses break. The rock is in your hand. Its glow blinds you through the cracks in your glasses.',
                            closable=False)
                        def glasses():
                            allow_wakeup()
                            if willpower < 6 / 6 * needed: return

                            @glasses.situation(
                                'Take off your glasses',
                                response=
                                'You take your glasses off. Everything changes colors. No longer is everything red. You are not supposed to see this. You know you are not. Will you be able to forget this again? There is no going back now. You look at the rock. It hurts to look at it. You hear ringing. It is your alarm clock.',
                                closable=False)
                            def unmasked():
                                game.game_state.glasses.type = game.Alignment.INDEPENDENT
                                game.game_state.set_stat('truth', True)
                                bedroom.has_lens = False
                                dream.exit()
Пример #9
0
        def attend():
            global last_visit
            days_missed = resolve_sadness()
            holder.sadness += days_missed * 2
            if days_missed > 0:
                holder.sadness -= 1
            #game.game_state.show_message("Lessons missed: " + str(days_missed))
            #game.game_state.show_message("WARNING: SOMETHING MAY HAPPEN TO THE SADNESS VALUE IF YOU PRESS \"GOODBYE\" NOW. DO NOT DO IT! IT IS NOT A FEATURE.")
            last_visit = game.game_state.time
            last_visit = last_visit.replace(hour=0, minute=0, second=0)
            startTime = datetime.datetime(game.game_state.time.year,
                                          game.game_state.time.month,
                                          game.game_state.time.day, 8, 0, 0)
            endTime = datetime.datetime(game.game_state.time.year,
                                        game.game_state.time.month,
                                        game.game_state.time.day, 15, 0, 0)

            #this should not be exitable
            lesson = game.Dialogue("Doing the test.", closable=False)
            startsit = lesson.start()

            @startsit.situation(
                "Do your best",
                response=ColorString((
                    "You completed the test. Results should come soon.",
                    "yellow"
                ), (" The questions were really odd. Some of them didn't seem to even have anything in common with mental strength...\n\nMaybe they're testing for something else?",
                    "cyan")),
                closable=False,
                color="red")
            def lesson_attention():
                if game.game_state.time.hour < 8:
                    utils.spend_stats(startTime - game.game_state.time,
                                      game.EnergyCost.NONE)
                    timePoint = startTime
                else:
                    timePoint = game.game_state.time
                utils.spend_stats(endTime - timePoint, game.EnergyCost.MENTAL)
                game.game_state.set_stat("test", "passed")
                lesson_done()

            @startsit.situation(
                "Don't",
                response=ColorString((
                    "You failed the test on purpose. Well, you hope you did? It was really strange.",
                    "blue")),
                closable=False,
                color="blue")
            def lesson_funni():
                if game.game_state.time.hour < 8:
                    utils.spend_stats(startTime - game.game_state.time,
                                      game.EnergyCost.NONE)
                    timePoint = startTime
                else:
                    timePoint = game.game_state.time
                utils.spend_stats(endTime - timePoint, game.EnergyCost.TRAVEL)
                #holder.sadness += 10
                lesson_done()

            def lesson_done():
                @lesson.situation("Wait for the end.",
                                  response="It is time for a late lunch.",
                                  closable=False)
                def lesson_end():
                    game.game_state.time = endTime
                    if game.game_state.get_stat("infection") > 0.1:
                        game.game_state.set_stat("test", "infected")
                    lesson.exit()
Пример #10
0
        def attend():
            global last_visit
            days_missed = resolve_sadness()
            holder.sadness += days_missed * 2
            if days_missed > 0:
                holder.sadness -= 1
            #game.game_state.show_message("Lessons missed: " + str(days_missed))
            #game.game_state.show_message("WARNING: SOMETHING MAY HAPPEN TO THE SADNESS VALUE IF YOU PRESS \"GOODBYE\" NOW. DO NOT DO IT! IT IS NOT A FEATURE.")
            last_visit = game.game_state.time
            last_visit = last_visit.replace(hour=0, minute=0, second=0)
            startTime = datetime.datetime(game.game_state.time.year,
                                          game.game_state.time.month,
                                          game.game_state.time.day, 8, 0, 0)
            endTime = datetime.datetime(game.game_state.time.year,
                                        game.game_state.time.month,
                                        game.game_state.time.day, 15, 0, 0)

            #this should not be exitable
            lesson = game.Dialogue("Attending a lesson.", closable=False)
            startsit = lesson.start()

            lessons = [
                "ä",
                "You learn about the past. People used to be uncoordinated, but then a scientist discovered Lens. They allow great concentration and productivity, and now everyone wears them.",
                "It is important that everyone wears the Lens; if you don't, harmful and distracting information and ideas can get into your mind.",
                "The Lens filter certain wavelengths of light, resulting in a much more orderly and clear view of reality.",
                "ä",
                "ä",
                "As you surely know, the Government is recently enforcing new measures to improve effectivity. You write an essay about how art can be harmful.",
                "In the past, people would chat all the time and not get anything done. Today, we strive to be better and discourage such nonsense.",
                "While the Government has always been implementing effectivity measures, recently, this rate has greatly increased thanks to their best efforts.",
                "You watched a short educational movie. It teaches you the danger of some information and how it can be used to spread harmful ideas. Always trust only information from Government sources.",
                "If you find a suspicious note on the ground, ignore it. You don't know what it contains. If you have an idea who created it, make sure to report them to the local Office.",
                "ä",
                "ä",
                "As you surely know, the annual test is coming soon, and this year is your turn. You will do your best, and if the Government recognizes your skills, you will move to the Capital City. You only have this chance once in a lifetime.",
                "The Capital City houses the nation's best thinkers and philosophers. You can get a chance to join them at the end of this month.",
                "Higher Education Institute is where you'll study if you pass the test. It is a wonder dedicated to the nation, raising engineers, scientists and officials.",
                #"The Capital City is connected to all of the nation with a network of train connections. They transport goods, enforcers and sometimes workers.",
                #the following line only applies for the earlier test date:
                "Don't forget the test is tomorrow. Do not be late. Actually, this year, a new version of the annual test will be used. Your experience may be different than of those who came before you."
                "This year, a new version of the annual test will be used. Your experience may be different than of those who came before you.",
                "ä",
                "ä",
                "Do not litter. If everyone littered, there would be a lot of litter.",
                "If someone is behaving strangely, do not hesitate and tell the Office.",
                "Most humans have more than average amount of legs. Oh, you've heard that one already? Here's another one: it would take about a million mosquitoes to suck all of your blood. You couldn't have possibly known this one already.",
                "Today we were supposed to learn about mosquitoes, but I taught you about that yesterday, so we're just going to do grammar exercises.",
                "The annual test will be in a week. Make sure to come to school.",
                "ä",
                "ä",
                "You may hear about the other nations having a base on the Moon. That's obviously fake; it is not possible to land on the Moon, how gullible must their citizens be?",
                "You watched a movie about the dangers of dehydratation. If you don't drink water you die. That makes sense.",
                "Today you learned how many poppy seeds it would take to kill you.",
                "Don't forget the test is tomorrow. Do not be late.",
                "ä"
            ]

            @startsit.situation("Pay close attention",
                                response=ColorString(
                                    (lessons[game.game_state.time.day],
                                     "red")),
                                closable=False,
                                color="red")
            def lesson_attention():
                holder.sadness = max(0, holder.sadness - 1)
                if game.game_state.time.hour < 8:
                    utils.spend_stats(startTime - game.game_state.time,
                                      game.EnergyCost.NONE)
                    timePoint = startTime
                else:
                    timePoint = game.game_state.time
                utils.spend_stats(endTime - timePoint, game.EnergyCost.MENTAL)
                utils.update_willpower(False, time=(endTime - timePoint))
                lesson_done()

            @startsit.situation(
                "Don't",
                response="Haha, I just realized Horatio looks like Meme Man.",
                closable=False,
                color="cyan")
            def lesson_funni():
                utils.spend_stats(endTime - game.game_state.time,
                                  game.EnergyCost.NONE)
                #holder.sadness += 10
                lesson_done()

            @startsit.situation(
                "Sleep",
                response="You slept in class. The teacher is not happy.",
                closable=False,
                color="blue")
            def lesson_schlaf():
                utils.sleep((endTime - game.game_state.time) * 0.5)

                holder.sadness += 1
                lesson_done()

            def lesson_done():
                @lesson.situation("Wait for the end.",
                                  response="It is time for a late lunch.",
                                  closable=False)
                def lesson_end():
                    game.game_state.time = endTime
                    if holder.sadness >= 15:
                        holder.sadness_level = 2
                        game.game_state.show_message(
                            "You've crossed the line. Your parents will know.")
                    elif holder.sadness >= 10:
                        if holder.sadness_level == 0:
                            holder.sadness_level = 1
                        game.game_state.show_message(
                            "You can tell from the way the teacher looks at you before leaving the class that you're standing on thin ice."
                        )
                    elif holder.sadness >= 5:
                        game.game_state.show_message(
                            "The teacher does not appear happy with you. You should be more careful."
                        )
                    lesson.exit()