本文整理汇总了Python中dungeon_game.dungeons.dungeon_state.DungeonState.message方法的典型用法代码示例。如果您正苦于以下问题:Python DungeonState.message方法的具体用法?Python DungeonState.message怎么用?Python DungeonState.message使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dungeon_game.dungeons.dungeon_state.DungeonState
的用法示例。
在下文中一共展示了DungeonState.message方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: spell
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
def spell(self):
state = DungeonState()
if (game_utils.check_magic(self.request, magic_consts.CURE)):
state.message = "You heal yourself, you feel that you are too weak to continue to explore though, so you go back to camp and gather some firewood along the way."
state.choices = [('back','Head back to camp')]
else:
state.message = "You do not have the ability to use cure magic, you bleed to death."
state.die = True
return state
示例2: fire
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
def fire(self):
state = DungeonState()
if game_utils.check_magic(self.request, magic_consts.FIRE):
state.message = "You cause second and third degree burns to both thieves, and you smile as you hear their departing screams of agony."
state.choices = [('relin/start','You head into the town of Relin.')]
else:
state.message = "You do not have the ability to use fire magic, while you attempt to cast it, the thieves murder you."
state.die = True
return state
示例3: ysgenweapknife
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例4: ysgenmagicfire
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例5: ysgenweapshottie
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例6: firewhirlwind
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
def firewhirlwind(self):
state = DungeonState()
if game_utils.check_magic(self.request, magic_consts.FIRE):
state.message = "You cast fire on Grayson but it has no effect on him. He just laughs maniacally."
else:
state.message = "You do not have fire magic, and you cannot save yourself."
state.message += " Grayson continues to pummel you with his endless hail storm \
and he laughs as you squirm and fight against the burning sand. Your eyeballs are ripped to shreds and your body looks like \
it was run through a grater. Grayson kills you."
state.die = True
return state
示例7: yemprison
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例8: icewhirlwind
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
def icewhirlwind(self):
state = DungeonState()
if game_utils.check_magic(self.request, magic_consts.FIRE):
state.message = "You cast ice magic on Grayson and he is damaged drastically. He falls backward and goes into a stupor. You walk over to him \
and see if he is still attacking, but he is not. He falls to the ground, his face buried in the dirt, and he offers his apology over and over. \
You tell him it is ok and that two of you should make haste. He tells you his sisters name is Ifalna."
state.choices = [('reassuregraysonlearn', 'Tell Grayson everything will be fine'),]
else:
state.message = "You do not have ice magic, and you cannot save yourself. Grayson continues to pummel you with his endless hail storm \
and he laughs as you squirm and fight against the burning sand. Your eyeballs are ripped to shreds and your body looks like \
it was run through a grater. Grayson kills you."
state.die = True
return state
示例9: usesightcamp
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例10: curewhirlwind
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
def curewhirlwind(self):
state = DungeonState()
if game_utils.check_magic(self.request, magic_consts.CURE):
state.message = "You cast cure and heal yourself. When Grayson sees the stars of the cure swirling around you, he realizes what is going on \
and vanquishes the emotal. He recalls his whirlwind and runs right up to you. He checks your body for any major wounds \
and you tell him you are ok. He falls to the ground, his face buried in the dirt, and he offers his apology over and over. \
You tell him it is ok and that two of you should make haste. He tells you his sisters name is Ifalna."
state.choices = [('reassuregraysonlearn', 'Tell Grayson everything will be fine'),]
else:
state.message = "You do not have cure magic, and you cannot save yourself. Grayson continues to pummel you with his endless hail storm \
and he laughs as you squirm and fight against the burning sand. Your eyeballs are ripped to shreds and your body looks like \
it was run through a grater. Grayson kills you."
state.die = True
return state
示例11: yshistreadbookmoremoremoremore
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例12: makeplan
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例13: lorengetagirltell
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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
示例14: sector19
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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: fightthieves
# 需要导入模块: from dungeon_game.dungeons.dungeon_state import DungeonState [as 别名]
# 或者: from dungeon_game.dungeons.dungeon_state.DungeonState import message [as 别名]
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