Exemplo n.º 1
0
skull.addAliases("skull")
bunker.addItem(alter)
surface.addItem(skull)

Game.curRoom = bunker


def process():
    result = Game.result
    cmd = Game.cmd
    if cmd[0] == "put":
        if result == 1 and cmd[1] == skull and cmd[2] == alter:
            Game.say("The Alter hums with a strange power.")
            alter.desc = "The time is now. Activate The Alter, and finish this."
            Game.states["alterReady"] = True
    if cmd[0] == "use":
        print("using")
        if result == Game.states["alterReady"] and cmd[1] == alter or cmd[
                2] == alter:
            Game.say("You awake with a start in your bed.")
            Game.curRoom = bedRoom


print(Game.prompt)
while True:
    MainLoop.run()
    process()
    Game.result = -1
    Game.cmd = [""]
    print(Game.prompt)