示例#1
0
 def ysgenweapknife(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_1):
         state.message = "You got a <div class='special'>knife</div>."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_inventory, self.request, inventory_consts.KNIFE)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
示例#2
0
 def ysgenmagicfire(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_1):
         state.message = "You learned <div class='special'>Fire</div> magic."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_magic, self.request, magic_consts.FIRE)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
示例#3
0
 def ysgenweapshottie(self):
     state = DungeonState()
     if game_utils.check_status(self.request, status_consts.MONEY_LV_3):
         state.message = "You got the <div class='special'>8 gauge shotgun</div>."
         state.choices = [('ysgen', 'Back to shopping'),]
         state.actions = [(game_utils.add_inventory, self.request, inventory_consts.SHOTGUN_8G)]
     else:
         state.message = "Sorry, you can't afford that."
         state.choices = [('ysgen', 'Back to shopping'),]
     return state  
示例#4
0
 def yemprison(self):
     state = DungeonState() 
     if game_utils.check_inventory(self.request, inventory_consts.PRISON_KEY_YEM):            
         state.message = "You enter the Yementi prison block."
         state.choices = [('sector5', 'Go to the prisons fifth sector'),
                          ('sector10', 'Go to the prisons tenth sector'),
                          ('sector19', 'Go to the prisons nineteenth sector'),
                          ('commquart', 'Go back to the commanders quarters')]
     else:
         state.message = "You cannot enter the Yementi prison block, the door is locked.  A key is required."
         state.choices = [('commquart', 'Go find the key')]
     return state
示例#5
0
 def usesightcamp(self):
     state = DungeonState()
     if game_utils.check_magic(self.request, magic_consts.SIGHT):            
         state.message = "You see far beyond the walls, and into the depths of the facilities.  You see the faces of the slaves, toiling \
                         away for years on the poisonous, murdersome mines of Yementi.  You see a few empty guards quarters, you see some \
                         people crying, you see some people laughing, you see some things you wish you had not seen.  \
                         Most importantly, though, you gain a <div class='special'>full understanding of the facilities layout</div>."
         state.actions = [(game_utils.add_status, self.request, status_consts.FARSEE_FACILITY_YEM),]
         state.choices = [('makeplan', 'Make a plan for sneaking in'),]
     else:
         state.message = "You do not have Sight."
         state.choices = [('gorunningheadfirst', 'Go charging for the encampment'),
                          ('makeplan', 'Consult Grayson on a plan'),]
     return state
示例#6
0
 def yshistreadbookmoremoremoremore(self):
     state = DungeonState()
     state.message = "'I will pull the knife out of his heart tonight.  Even though we have not had light for days now \
                     I will know of the moonlight, as it hangs overhead, while we are trapped in this place.  Tonight he dies.  This is \
                     my last candle.  I hope this finds you well.' -Tonas"
     state.choices = [("yshist", "Put the book down"),]
     return state
示例#7
0
 def quarterc(self):
     state = DungeonState()
     state.message = "You enter the second building.  Inside you find various memos addressed to 'C-Sect'.  It appears that \
                     the building is used as the medical clinic.  There are some sick guards and doctors trying to help them, \
                     nobody notices you."
     state.choices = [('getout', 'Back to the office courtyard'),]
     return state
示例#8
0
 def faceask(self):
     state = DungeonState()
     state.message = "Grayson screams at them, asking why their faces are so ugly.  One of the guards begins crying and Grayson \
                     slaps him across the face."
     state.choices = [('questionguard', 'Keep questioning them'),
                      ('guardquart','Go into the guard quarters'),]
     return state
示例#9
0
 def lorengetagirltell(self):
     state = DungeonState()
     state.message = "You take her to the room and sit her down on the chair across from you.  You tell her that life is not worth \
                     throwing away in a dump like this.  She quietly listens and nods occassionally.  You tell her there are better ways \
                     to make money.  She tells you this is the best she knows and you tell her she can do better."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
示例#10
0
 def lorenrikerask(self):
     state = DungeonState()
     state.message = "You ask Riker how she can run such a terrible business, and she asks how she can't.  She says it is the best way \
                     to make money, that sex will  never stop selling.  She urges you to get with the times, then says that if you do not \
                     like her business you are free to leave."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
示例#11
0
 def lorennbizclose(self):
     state = DungeonState()
     state.message = "You tell Riker you plan to shut down her little business.  She asks how you plan to do that.  You tell her \
                     you could do any number of things to ruin her and that she should not try to test you.  She says she does not \
                     want a fight as it would make her girls very upset.  She says she will pay you to please leave her alone."
     state.choices = [('start', 'Get out of Rikers'),]
     return state
示例#12
0
 def lorentavfool(self):
     state = DungeonState()
     state.message = "You go up to the fool and threaten to run a broad sword through his gullet, but he shrieks and falls backward.  Everyone \
                     laughs.  You ask him his name and he says it is Rumlon."
     state.choices = [('lorentavhelpup', 'Help Rumlon him to his feet'),
                      ('lorentav', 'Leave him be'),]
     return state    
示例#13
0
 def reltav_gryson_go(self):
     state = DungeonState()
     state.message = "He tells you that he is glad to have you, and that he hopes to teach you much along the way.  He also \
                              lets you know that <div class='special'>he will meet you outside</div> once you are ready to depart."
     state.choices = [('relintavern', 'Ok.')]
     state.actions = [(game_utils.add_status, self.request, status_consts.ON_FIRST_JOURNEY_W_GRAYSON, True)]
     return state
示例#14
0
 def sector19(self):
     state = DungeonState()
     state.message = "You find Grayson's sister, Ifalna.  He laughs and gives her a hug.  He casts several cure spells on her, and she is \
                     happy to see him.  She asks who you are and Grayson says he could not have done it without your help.  She thanks you and \
                     says she will always help you in your time of need."
     state.choices = [('yempoutside', 'Get out of here')]
     return state
示例#15
0
 def leavegrayson(self):
     state = DungeonState()
     state.message = "You tell Grayson you will not be journeying with him anymore.  He says that is unfortunate and that he cannot be blamed \
                     for what the emotal did to him, and tries to pursuade you to keep going with him."
     state.choices = [("relin/start", "Back to Relin"),
                      ("moveonfromww", "On second thought, keep going with Grayson"),]
     return state
示例#16
0
 def reassuregrayson(self):
     state = DungeonState()
     state.message = "You tell Grayson everything is going to be ok, but he doesn't respond to you.  He has a very distant gaze in his eye, \
                     he is focused on his sister now, wherever she may be.  He is moving at an incredibly swift pace \
                     though, and you speed up a bit more as well.  He is grateful for this, and the two of you head off for the encampment."
     state.choices = [('surveyfield', 'Survey the field up ahead'),]
     return state
示例#17
0
 def makeplan(self):
     state = DungeonState()
     state.message = "You talk to Grayson about how he plans to get in there.  His hope was that the two of you could get the jump on some guards \
                 and steal their tunics.  After that, he knew of a back entrance where he hoped you both could get in without drawing too much attention."
     state.choices = [('findguards', 'Find a couple of guards to get the jump on'),
                      ('headfortheback', 'Head for the back entrance'),]
     return state
示例#18
0
 def ystavpianofire(self):
     state = DungeonState()
     state.message = "Lublob plays Wake Up by The Arcade Fire.  A man in the back of the bar perks up and says he loved \
                     your selection.  He teaches you how to use <div class='special'>Morph</div> magic using a special b-stone."
     state.choices = [('ystav', 'Leave him alone'),]
     state.actions = [(game_utils.add_magic, self.request, magic_consts.MORPH)]
     return state    
示例#19
0
 def findfiles(self):
     state = DungeonState()
     state.message = "You and Grayson look into the main commquart office and find files related to his sister Ifalna.  It says she is kept \
                     in the <div class='special'>19th sector of the Yementi prison block</div>."
     state.actions = [(game_utils.add_status, self.request, status_consts.GRAYSON_SIS_LOC_YEM)]
     state.choices = [('commquart', 'Get out of here'),]
     return state
示例#20
0
 def start(self):
     state = DungeonState()
     state_vars = {self.STATE:True}
     state.message = "Welcome to Barig Pass, aka HELL DUNGEON"
     state.choices = [('start', 'F**k yeah'),
                                 ('yellowstar/start', 'O GOD GTFO!!'),]
     return state
示例#21
0
 def quarterd(self):
     state = DungeonState()
     state.message = "You enter the fourth building.  Inside you find various memos addressed to 'D-Sect'.  It appears that \
                     the building is used for keeping numerical records of ore mined and resources consumed."
     state.choices = [('quarterdback', 'Go through the D-Sect backdoor'),
                      ('getout', 'Back to the office courtyard'),]
     return state
示例#22
0
 def reltavgrpyoung(self):
     state = DungeonState()
     state.message = "You talk to the youngest of the bunch, and the rest of the group is watching like hawks.  He says something\
                                 about how they just came from the nearby town of <div class='special'>Lorentown</div>, but he is quickly told to shut up."
     state.actions = [[game_utils.add_status, self.request, status_consts.KNOW_LORENTOWN, True]]
     state.choices = [('reltavgrp','Ok')] 
     return state
示例#23
0
 def fightthieves(self):        
     state = DungeonState()
     state.message = "How do you attack the thieves?"
     state.choices = [('knife','Grab your knife and attempt to fight them.'), 
                              ('fire','Use fire magic on them.'),
                              ('fists','Fight them with your bare knuckles.')]
     return state
示例#24
0
 def relwlkkids(self):
     state = DungeonState()
     state.message = "You approach the kids as they are hitting some m-stones around in a circle, A game they call \
                             stonecircle, trying to knock each others stone out of the circle."
     state.choices = [('relwlkkidsstone', 'Ask them about their m-stones'),
                              ('relinwalk', 'Leave them alone'),]
     return state
示例#25
0
 def forcab(self):
     state = DungeonState()
     state.message = "You wander around in the forest, but you stumble over a log you could not see.  \
                                         You make too much noise and are attacked by a group of Dark Trylons.  You manage to \
                                         fight them away but you are now bleeding to death."
     state.choices = [('wait',"Put some pressure on it and wait it out."),
                              ('spell',"Use cure magic")]
     return state
示例#26
0
 def relwlkkidsstonehave(self):
     state = DungeonState()
     state.message = "You ask if you can have one of the m-stones because you really like how they shine.  They boys look at each \
                             other for a moment, until the youngest one hands you one of his <div class='special'>m-stones</div> from his collection.  \
                             He looks up at you but doesn't say anything."
     state.choices = [('relinwalk', 'Thank the boy and leave them alone'),]
     state.actions = [(game_utils.add_inventory, self.request, inventory_consts.CHILDS_M_STONE)]
     return state
示例#27
0
 def relwlkmcewut(self):
     state = DungeonState()
     state.message = "He looks down, he seems upset.  But before you know it he moves like lightning, blurs right past you, and runs \
                             a mithril blade over your neck, he slices in deep.  Blood sprays out and your head falls backward and snaps off your \
                             neck." 
     state.choices = []
     state.die = True
     return state
示例#28
0
 def relaskbor(self):
     state = DungeonState()
     state.message = "You ask Boran if he recognizes you.  He says he might've seen you, he might've not, he sees a lot of faces.  \
                              You explain to him that you really must know and you don't want to get violent.  He tells you that is not necessary \
                              and tells you he saw you once, about a week ago.  He says you were with a companion, someone you were gettin' real sweet \
                              with in the corner of the bar, smooching away all night."  
     state.choices = [('relintavern','Thank him and finish your drink.')]
     return state
示例#29
0
 def reltavwmn(self):
     state = DungeonState()
     state.message = "You offer one of the tavern girls a drink, but she turns it down, saying that you aren't exactly her type.  \
                              You look around and notice her 'type' is whoever has the most silver to cross her palm with.  You check \
                              your pockets and don't really feel like spending any money on these wenches."
     state.choices = [('reltavgrlgo','Throw some coins down anyway'),
                              ('relintavern','Keep your money to yourself')] 
     return state
示例#30
0
 def reltavgrlgo(self):
     state = DungeonState()
     state.message = "You throw a nickel piece down on the table.  One of the girls saunters your away, while locking eyes \
                             with another man across the bar.  She looks at you and sits down.  She slowly puts her hand over the coin \
                             and starts sliding it towards her.  You firmly place yours on her and tell her it's not hers yet.  She slaps \
                             you and walks away."
     state.choices = [('relintavern','Yell at the girl as she walks away')] 
     return state