Эх сурвалжийг харах

- new functions, status bar, more intro, polishing

Your Name 6 жил өмнө
parent
commit
c31b4979b0

+ 75 - 12
A_story_of_might_and_DEAMONtools/game/script.rpy

@@ -3,11 +3,44 @@
 # Declare characters used by this game. The color argument colorizes the
 # name of the character.
 
+init:
+    $ true = "true" # or whatever != None for easier coding and better readability
+    $ player = None
+    $ timeObj = None
+
 init python:
 
     class timeClass:
         def __init__(self):
-            self.curTime
+            self.minute = 30
+            self.hour = 21
+            self.day = 0
+
+        def passTime(self,amount):
+            self.minute += amount
+            while (self.minute >= 60):
+                self.minute -= 60
+                self.hour += 1
+                if (self.hour >= 24):
+                    self.day += 1
+                    self.hour = 0
+                    self.dayChange()
+
+        def dayChange(self):
+            loseMight(player, 10)
+            #rent calculation and all the other stuff
+
+        def getMinute(self):
+            if (self.minute < 10):
+                return "0"+str(self.minute)
+            else:
+                return self.minute
+
+        def getHour(self):
+            if (self.hour < 10):
+                return "0"+str(self.hour)
+            else:
+                return self.hour
 
     class itemClass:
         def __init__(self, name, equipslot, effectlist):
@@ -83,21 +116,36 @@ init python:
             char.curAP -= 10
             char.skills.bj += 10
             char.money += payment
+            timeObj.passTime(10)
 
-    def sleep(char):
+    def sleep(char, time):
         char.curAP = char.maxAP
         heal(char,(char.maxHP/10))
+        timeObj.passTime(time)
+
+    def hurt(char, amount):
+        char.curHP -= amount
+        if (char.curHP <= 0):
+            char.curHP = 0
+            if (char == player):
+                renpy.jump('gameover')
 
     def heal(char, amount):
         char.curHP += amount
         if (char.curHP > char.maxHP):
             char.curHP = char.maxHP
 
-init:
+    def loseMight(char, amount):
+        char.might -= amount
+        if (char.might <= 0):
+            char.might = 0
+            if (char == player):
+                hurt(player, player.maxHP/5)
 
-    $ true = "true" # or whatever != None for easier coding and better readability
+init:
 
     python:
+        timeObj = timeClass()
         mapUnlock = mapUnlockClass()
         playerInventory = {} # dummy
         playerInventory["Pants"] = itemClass("Your lucky pants, plus they are your only pants", "lowerBody", None)
@@ -142,13 +190,17 @@ screen sideBar():
                     bar value player.curAP range player.maxAP xalign 0.0 yalign 0.0 xmaximum 100 ymaximum 5 left_bar "#0000CC"
 
                 hbox:
+                    $ minute = timeObj.getMinute()
+                    $ hour = timeObj.getHour()
                     text "{size=10} Exp: [player.exp] {/size}"
                     text "{size=10} Might: [player.might] {/size}"
                     text "{size=10} Money: [player.money] {/size}"
+                    text "{size=10} [hour]:[minute] {/size}"
 
 
         # replace with composition of body parts
         # face overlaid with hair (trasparent)
+        # lips, makeup
         # upper body, overlayed with necklace
         # 2 ring slots
         # lower body
@@ -199,6 +251,7 @@ label intro:
     Narrator "Why would your mom send you there? Why should aunt Marjorie be there?"
 
     scene street_industrial_area
+    $ timeObj.passTime(5)
 
     Narrator "After 5 minutes you reach the parkway. And really there are seemingly multiple hookers trying to earn some money. One looks at you with an unfriendly face."
 
@@ -251,7 +304,7 @@ label intro:
     Player "I don't now? Wait nooo no I am very different, I would never  behave like her ..."
     Narrator "Your aunt looks annoyed and so you quit your blabbering and just ask"
     Player "What do you mean? I don't understand."
-    Marjorie "So she never told you that she was turned into a succubus and ran away a day later? Because she fell in love with the second guy she sucked off?"
+    Marjorie "So she never told you that she was turned into a succubus and ran away a day later? Because she fell in love with the first guy she sucked off?"
     Narrator "You just look at her confused."
     Marjorie "Wow even greater - just as I expected from my haugthy sister. So you have no clue? Well if she didn't turn you - why should you be ... on the other hand are succubi supposed to be sterile and here you are..."
     Marjorie "There is only one sure way to find out... But under these circumstances, we have to do it and we need to leave anyway, if they found your mom, they'll probably come to ask me out again. Then you shouldn't be around."
@@ -259,6 +312,8 @@ label intro:
     Narrator "Your aunt hastes along the street, sticking to the shadows and drags you with her at her hand. You are confused you are heading back? Then you notice your aunt is heading straight to a taxi booth. She opens the backdoor and helps you in, then follows after you"
     Marjorie "To the main train station please."
 
+    $ timeObj.passTime(30)
+
     Narrator "The driver just nods and starts the engine. Train station? What? But after a while of hard thinkingit dawns on you, that she maybe want's to leave by train. Yea that must be it."
     Narrator "When you arrive at then train station your aunt pays the driver including a big tip and you to hastly leave the cab."
     Marjorie "Alright now let's find somewhere for you to stay and then ..."
@@ -345,6 +400,7 @@ label intro:
 
     $ sexWork(player, "ghbj" , 0)
     scene empty_gh
+    $ timeObj.passTime(30)
 
     Marjorie "Listen carefully, I do need to leave now. But I'll contact you I promise. Maybe you are the key to breaking up the elders surpression."
     Narrator "She looks at you interested"
@@ -393,9 +449,10 @@ label intro:
     menu:
 
         "Go to sleep":
-            $ sleep(player)
+            $ sleep(player, 600)
 
-    Narrator "The next morning you wake up and need a couple of seconds to remember how you got here. What a strange night."
+    Narrator "The next morning you wake up after a long nights sleep and need a couple of seconds to remember how you got here. What a strange night."
+    Narrator "You somehow feel badly rested and weak, far from the healthy and invigorated sensation you had yesterday after the blowjob."
     Narrator "You get up and wonder what to do..."
 
     menu:
@@ -484,6 +541,8 @@ label intro:
     Narrator "The hypocrisy was obviously lost on him."
     HostelOwner "But whatever - tell the slut I said 'hi'."
 
+    $ timeObj.passTime(45)
+
     $ mapUnlock.downtownRedlight = true
 
     menu:
@@ -569,11 +628,15 @@ label intro:
     Katrina "Can you dance? Are you experienced in bed? You sounded a bit unexperienced if I may say so."
     Narrator "Your face turns red."
     Player "Uhh - well I kissed a few boys and even gave one a blowjob in the back of his car after prom."
-    Katrina "I take that as a no. What about dancing?"
-    Player "Dancing? Like standard dance?"
-    Katrina "Like table dancing... since you obviously won't hitup many guys on the street I thought that may help you and perhaps pay your bills."
-
-    # This ends the game.
+    Katrina "I take that as a no. What about stripping?"
+    Narrator "You shake your head while looking down shily. She must think you are a complete moron."
+    Player "Maybe the hunger won't be that bad? And even if - can't i just hit up one guy and be settled?"
+    Katrina "No that won't work - humans generate not much might - they can store some - sure - but it takes weeks to refill their depleted 'well'."
+    Katrina "And you can't just run around and offer free blowjobs, that would enrage the others, we are not animals. Think of it more like a trade union with mobster bosses."
+    Player "And who are those elders Marjorie spoke about?"
+    Katrina "The elders? Really old and powerful deamons - unlike Stella, she is a relatively newly risen local queen. Marjorie was no subject of hers, but this is her district and we both have to abide by her rules."
+
+    $ timeObj.passTime(60)
 
 
 label gameover: