Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # -*- coding: cp437 -*--
- from random import randint
- import time
- import msvcrt
- from msvcrt import getch
- import os
- import sys
- global current_position
- global current_face
- global current_floor
- global current_map
- global face
- global step
- global party_hero
- global party_hero_length
- global party_enemy
- global party_enemy_length
- global battle_loop
- global battle_loop1
- global items_length
- global boss
- global battle_exp
- battle_exp = 0
- party_hero = ['Dwarf1','Elf1','Halfling1','Human1']
- party_enemy = []
- items_list = ['Potion','Potion','Potion','Potion','Potion','Potion','Potion','Potion']
- command_list = ['Attack','Inventory','Escape']
- battle_loop = 'false'
- boss = 'false'
- stats_names = ['FGT','STR','DEF','HIT','current HP','max HP']
- hit = [
- [63,50,50,38,38,25,13,6,0,0],
- [63,63,50,50,38,38,25,13,6,0],
- [75,63,63,50,50,38,38,25,13,6],
- [75,75,63,63,50,50,38,38,25,13],
- [87,75,75,63,63,50,50,38,38,25],
- [87,87,75,75,63,63,50,50,38,38],
- [99,87,87,75,75,63,63,50,50,38],
- [99,99,87,87,75,75,63,63,50,50],
- [99,99,99,87,87,75,75,63,63,50],
- [99,99,99,99,87,87,75,75,63,63],
- [99,99,99,99,99,87,87,75,75,63]
- ]
- charadict_enemy = {
- 'Giant ant': [0,2,4,1,2,2,'GIANT ANT',2],
- 'Badger': [0,2,3,3,1,1,'BADGER',1],
- 'Fire beetle': [0,1,3,1,1,1,'FIRE BEETLE',1],
- 'Manes demon': [0,1,2,3,1,1,'MANES DEMON',1],
- 'Dwarf': [0,1,3,1,1,1,'DWARF',1],
- 'Ear seeker': [0,1,1,1,1,1,'EAR SEEKER',1],
- 'Elf': [0,1,3,1,1,1,'ELF',1],
- 'Gnome': [0,2,4,1,3,3,'GNOME',3],
- 'Goblin': [0,1,2,1,1,1,'GOBLIN',1],
- 'Halfling': [0,1,2,1,1,1,'HALFLING',1],
- 'Hobgoblin': [0,1,3,1,2,2,'HOBGOBLIN',2],
- 'Human bandit': [0,1,1,1,1,1,'HUMAN BANDIT',1],
- 'Human berserker': [0,1,1,1,1,1,'HUMAN BERSERKER',1],
- 'Human brigand': [0,1,1,1,1,1,'HUMAN BRIGAND',1],
- 'Kobold': [0,1,2,1,1,1,'KOBOLD',1],
- 'Orc': [0,1,2,1,1,1,'ORC',1],
- 'Piercer': [0,1,4,1,1,1,'PIERCER',1],
- 'Giant rat': [0,1,2,1,1,1,'GIANT RAT',1],
- 'Rot grub': [0,1,1,1,1,1,'ROT GRUB',1],
- 'Shrieker': [0,1,2,1,3,3,'SHRIEKER',1],
- 'Skeleton': [0,1,2,1,1,1,'SKELETON',1],
- 'Zombie': [0,2,1,1,2,2,'ZOMBIE',2],
- 'Giant badger': [0,2,3,3,3,3,'GIANT BADGER',3],
- 'Giant centipede': [0,1,1,1,1,1,'GIANT CENTIPEDE',1],
- 'Lemure devil': [0,2,2,1,3,3,'LEMURE DEVIL',3],
- 'Gas spore': [0,1,1,1,1,1,'GAS SPORE',1],
- 'Gnoll': [0,2,3,1,2,2,'GNOLL',2],
- 'Stirge': [0,1,1,1,1,1,'STIRGE',1],
- 'Giant toad': [0,2,2,1,2,2,'GIANT TOAD',2],
- 'Troglodyte': [0,2,3,1,3,3,'TROGLODYTE',3],
- 'Boring beetle': [0,3,4,1,5,5,'BORING BEETLE',5],
- 'Bugbear': [0,2,3,1,3,3,'BUGBEAR',3,],
- 'Very young dragon': [0,7,4,3,8,8,'VERY YOUNG DRAGON',8],
- 'Young dragon': [0,7,4,3,10,10,'YOUNG DRAGON',10],
- 'Young adult dragon': [0,8,5,3,13,13,'YOUNG ADULT DRAGON',13],
- 'Adult dragon': [0,9,6,3,14,14,'ADULT DRAGON',14],
- 'Old dragon': [0,10,7,3,16,16,'OLD DRAGON',16],
- 'Very old dragon': [0,10,7,3,17,17,'VERY OLD DRAGON',17],
- 'Ancient dragon': [0,11,8,3,18,18,'ANCIENT DRAGON',18],
- 'Violet fungus': [0,2,2,4,3,3,'VIOLET FUNGUS',3],
- 'Gelatinous cube': [0,3,1,1,4,4,'GELATINOUS CUBE',4],
- 'Ghoul': [0,2,2,3,2,2,'GHOUL',2],
- 'Giant lizard': [0,2,3,1,3,3,'GIANT LIZARD',3],
- 'Wererat': [0,2,2,1,3,3,'WERERAT',3],
- 'Ochre jelly': [0,4,1,1,6,6,'OCHRE JELLY',6],
- 'Ogre': [0,3,3,1,4,4,'OGRE',4],
- 'Huge spider': [0,2,2,1,2,2,'HUGE SPIDER',2],
- 'Large spider': [0,1,1,1,1,1,'LARGE SPIDER',1],
- 'Giant tick': [0,2,4,1,3,3,'GIANT TICK',3],
- 'Giant weasel': [0,2,2,1,3,3,'GIANT WEASEL',3],
- 'Carnivorous ape': [0,3,2,3,5,5,'CARNIVOROUS APE',5],
- 'Blink dog': [0,3,3,1,4,4,'BLINK DOG',4],
- 'Gargoyle': [0,3,3,4,4,4,'GARGOYLE',4],
- 'Ghast': [0,3,3,3,4,4,'GHAST',4],
- 'Gray ooze': [0,2,1,1,3,3,'GRAY OOZE',3],
- 'Hell hound': [0,3,3,1,4,4,'HELL HOUND',4],
- 'Five-headed hydra': [0,3,3,5,5,5,'FIVE-HEADED HYDRA',5],
- 'Six-headed hydra': [0,4,3,6,6,6,'SIX-HEADED HYDRA',6],
- 'Five-headed pyro hydra': [0,3,3,5,5,5,'FIVE-HEADED PYRO HYDRA',5],
- 'Werewolf': [0,3,3,1,4,4,'WEREWOLF',4],
- 'Yellow mold': [0,1,1,1,1,1,'YELLOW MOLD',1],
- 'Owlbear': [0,3,3,3,5,5,'OWLBEAR',5],
- 'Rust monster': [0,3,4,1,5,5,'RUST MONSTER',5],
- 'Shadow': [0,2,2,1,3,3,'SHADOW',3],
- 'Giant constrictor': [0,4,3,2,6,6,'GIANT CONSTRICTOR',6],
- 'Su-monster': [0,4,2,5,5,5,'SU-MONSTER',5],
- 'Ice toad': [0,3,3,1,5,5,'ICE TOAD',5],
- 'Poisonous toad': [0,2,2,1,2,2,'POISONOUS TOAD',2],
- 'Cockatrice': [0,3,2,1,5,5,'COCKATRICE',5],
- 'Displacer beast': [0,4,3,2,6,6,'DISPLACER BEAST',6],
- 'Doppelganger': [0,3,3,1,4,4,'DOPPELGANGER',4],
- 'Seven-headed hydra': [0,4,3,7,7,7,'SEVEN-HEADED HYDRA',7],
- 'Six-headed pyro hydra': [0,4,3,6,6,6,'SIX-HEADED PYRO HYDRA',6],
- 'Imp': [0,2,4,1,2,2,'IMP',2],
- 'Leucrotta': [0,4,3,1,6,6,'LEUCROTTA',6],
- 'Subterranean lizard': [0,4,3,1,6,6,'SUBTERRANEAN LIZARD',6],
- 'Wereboar': [0,3,3,1,5,5,'WEREBOAR',5],
- 'Minotaur': [0,4,2,2,6,6,'MINOTAUR',6],
- 'Quasit': [0,2,4,3,3,3,'QUASIT',3],
- 'Slithering tracker': [0,3,3,1,5,5,'SLITHERING TRACKER',5],
- 'Giant amphisbaena': [0,4,4,2,6,6,'GIANT AMPHISBAENA',6],
- 'Giant poisonous snake': [0,3,3,1,4,4,'GIANT POISONOUS SNAKE',4],
- 'Giant spitting snake': [0,3,3,1,4,4,'GIANT SPITTING SNAKE',4],
- 'Giant spider': [0,3,3,1,4,4,'GIANT SPIDER',4],
- 'Basilisk': [0,4,3,1,6,6,'BASILISK',6],
- 'Carrion crawler': [0,2,4,8,3,3,'CARRION CRAWLER',3],
- 'Erinyes devil': [0,4,4,1,6,6,'ERINYES DEVIL',6],
- 'Djinni': [0,4,3,1,7,7,'DJINNI',7],
- 'Green slime': [0,2,1,1,2,2,'GREEN SLIME',2],
- 'Eight-headed hydra': [0,4,3,8,8,8,'EIGHT-HEADED HYDRA',8],
- 'Nine-headed hydra': [0,4,3,9,9,9,'NINE-HEADED HYDRA',9],
- 'Jackalwere': [0,3,3,1,4,4,'JACKALWERE',4],
- 'Lammasu': [0,4,2,2,7,7,'LAMMASU',7],
- 'Werebear': [0,4,4,3,7,7,'WEREBEAR',7],
- 'Weretiger': [0,4,4,3,6,6,'WERETIGER',6],
- 'Manticore': [0,4,3,3,6,6,'MANTICORE',6],
- 'Medusa': [0,4,3,1,6,6,'MEDUSA',6],
- 'Brown mold': [0,1,1,1,1,1,'BROWN MOLD',1],
- 'Yellow mold': [0,1,1,1,1,1,'YELLOW MOLD',1],
- 'Ogre mage': [0,3,3,1,4,4,'OGRE MAGE',4],
- 'Otyugh': [0,4,4,3,7,7,'OTYUGH',7],
- 'Rakshasa': [0,4,7,3,7,7,'RAKSHASA',7],
- 'Salamander': [0,4,3,2,7,7,'SALAMANDER',7],
- 'Phase spider': [0,3,2,1,5,5,'PHASE SPIDER',5],
- 'Troll': [0,4,3,3,6,6,'TROLL',6],
- 'Wight': [0,3,3,1,4,4,'WIGHT',4],
- 'Wind walker': [0,4,2,1,6,6,'WIND WALKER',6],
- 'Wraith': [0,3,3,1,5,5,'WRAITH',5],
- 'Wyvern': [0,4,4,2,7,7,'WYVERN',7],
- 'Black pudding': [0.5,2,1,10,10,'BLACK PUDDING',10],
- 'Chimera': [0,4,3,6,9,9,'CHIMERA',9],
- 'Succubus': [0,4,5,2,6,6,'SUCCUBUS',6],
- 'Vrock': [0,4,5,5,8,8,'VROCK DEMON',8],
- 'Hezrou': [0,4,6,3,9,9,'HEZROU DEMON',9],
- 'Glabrezu': [0,5,7,5,10,10,'GLABREZU DEMON',10],
- 'Barbed devil': [0,4,5,3,8,8,'BARBED DEVIL',8],
- 'Bone devil': [0,4,6,1,9,9,'BONE DEVIL',9],
- 'Horned devil': [0,4,8,4,5,5,'HORNED DEVIL',5],
- 'Efreeti': [0,5,4,1,10,10,'EFREETI',10],
- 'Air elemental': [0,9,4,1,12,12,'AIR ELEMENTAL',12],
- 'Earth elemental': [0,9,4,1,12,12,'EARTH ELEMENTAL',12],
- 'Fire elemental': [0,9,4,1,12,12,'FIRE ELEMENTAL',12],
- 'Water elemental': [0,9,4,1,12,12,'WATER ELEMENTAL',12],
- 'Ettin': [0,5,4,2,10,10,'ETTIN',10],
- 'Hill giant': [0,4,3,1,8,8,'HILL GIANT',8],
- 'Stone giant': [0,4,5,1,9,9,'STONE GIANT',9],
- 'Fire giant': [0,5,4,1,11,11,'FIRE GIANT',11],
- 'Frost giant': [0,5,3,1,10,10,'FROST GIANT',10],
- 'Flesh golem': [0,4,1,2,8,8,'FLESH GOLEM',8],
- 'Gorgon': [0,4,4,1,8,8,'GORGON',8],
- 'Groaning spirit': [0,4,5,1,7,7,'GROANING SPIRIT',7],
- 'Ten-headed hydra': [0,5,3,10,10,10,'TEN-HEADED HYDRA',10],
- 'Eleven-headed hydra': [0,5,3,11,11,11,'ELEVEN-HEADED HYDRA',11],
- 'Twelve-headed hydra': [0,6,3,12,12,12,'TWELVE-HEADED HYDRA',12],
- 'Seven-headed pyro hydra': [0,4,3,7,7,7,'SEVEN-HEADED PYRO HYDRA',7],
- 'Eight-headed pyro hydra': [0,4,3,8,8,8,'EIGHT-HEADED PYRO HYDRA',8],
- 'Nine-headed pyro hydra': [0,4,3,9,9,9,'NINE-HEADED PYRO HYDRA',9],
- 'Intellect devourer': [0,4,3,4,6,6,'INTELLECT DEVOURER',6],
- 'Invisible stalker': [0,4,4,4,6,6,'INVISIBLE STALKER',6],
- 'Lamia': [0,4,4,1,9,9,'LAMIA',9],
- 'Fire lizard': [0,5,4,3,10,10,'FIRE LIZARD',10],
- 'Lurker above': [0,5,2,1,10,10,'LURKER ABOVE',10],
- 'Mezzodaemon': [0,7,6,1,10,10,'MEZZODAEMON',10],
- 'Mimic': [0,5,2,1,9,9,'MIMIC',9],
- 'Mind flayer': [0,4,3,4,8,8,'MIND FLAYER',8],
- 'Mummy': [0,4,4,1,6,6,'MUMMY',6],
- 'Spirit naga': [0,5,3,1,10,10,'SPIRIT NAGA',10],
- 'Neo-otyugh': [0,5,5,3,11,11,'NEO-OTYUGH',11],
- 'Night hag': [0,4,1,1,8,8,'NIGHT HAG',8],
- 'Roper': [0,5,5,1,11,11,'ROPER',11],
- 'Shambling mound': [0,5,5,2,10,10,'SHAMBLING MOUND',10],
- 'Shedu': [0,5,3,2,9,9,'SHEDU',9],
- 'Giant slug': [0,6,1,1,12,12,'GIANT SLUG',12],
- 'Spectre': [0,4,4,1,7,7,'SPECTRE',7],
- 'Trapper': [0,6,4,1,12,12,'TRAPPER',12],
- 'Umber hulk': [0,4,4,3,8,8,'UMBER HULK',8],
- 'Will-o-wisp': [0,4,9,1,9,9,'WILL-O-WISP',9],
- 'Xorn': [0,4,6,4,7,7,'XORN',7],
- 'Aerial servant': [0,7,4,1,16,16,'AERIAL SERVANT',16],
- 'Nalfeshnee': [0,6,6,3,11,11,'NALFESHNEE DEMON',11],
- 'Marilith': [0,4,8,7,7,7,'MARILITH',7],
- 'Balor': [0,4,6,1,8,8,'BALOR',8],
- 'Ice devil': [0,5,7,4,11,11,'ICE DEVIL',11],
- 'Ghost': [0,5,5,1,10,10,'GHOST',10],
- 'Cloud giant': [0,6,4,1,12,12,'CLOUD GIANT',12],
- 'Clay golem': [0,5,2,1,10,10,'CLAY GOLEM',10],
- 'Thirteen-headed hydra': [0,6,3,13,13,13,'THIRTEEN-HEADED HYDRA',13],
- 'Fourteen-headed hydra': [0,6,3,14,14,14,'FOURTEEN-HEADED HYDRA',14],
- 'Fifteen-headed hydra': [0,6,3,15,15,15,'FIFTEEN-HEADED HYDRA',15],
- 'Sixteen-headed hydra': [0,7,3,16,16,16,'SIXTEEN-HEADED HYDRA',16],
- 'Twelve-headed pyro hydra': [0,6,3,12,12,12,'TWELVE-HEADED PYRO HYDRA',12],
- 'Guardian naga': [0,5,4,2,12,12,'GUARDIAN NAGA',12],
- 'Purple worm': [0,6,2,2,15,15,'PURPLE WORM',15],
- 'Vampire': [0,4,5,1,8,8,'VAMPIRE',8],
- 'Pit fiend': [0,6,7,2,13,13,'PIT FIEND',13],
- 'Storm giant': [0,6,5,1,15,15,'STORM GIANT',15],
- 'Stone golem': [0,6,3,1,12,12,'STONE GOLEM',12],
- 'Seventeen-headed hydra': [0,7,3,17,17,17,'SEVENTEEN-HEADED HYDRA',17],
- 'Eighteen-headed hydra': [0,7,3,18,18,18,'EIGHTEEN-HEADED HYDRA',18],
- 'Nineteen-headed hydra': [0,7,3,19,19,19,'NINETEEN-HEADED HYDRA',19],
- 'Twenty-headed hydra': [0,8,3,20,20,20,'TWENTY-HEADED HYDRA',20],
- 'Nycadaemon': [0,8,7,1,14,14,'NYCADAEMON',14],
- 'Lesser titan': [0,7,4,1,18,18,'LESSER TITAN',18],
- 'Major titan': [0,7,5,1,20,20,'MAJOR TITAN',20],
- 'Beholder': [0,6,4,1,12,12,'BEHOLDER',12],
- 'Demogorgon, demon prince': [0,7,9,3,40,40,'DEMOGORGON, DEMON PRINCE',40],
- 'Juiblex, demon prince': [0,7,9,1,18,18,'JUIBLEX, DEMON PRINCE',18],
- 'Orcus, demon prince': [0,8,2,2,24,24,'ORCUS, DEMON PRINCE',24],
- 'Yeenoghu, demon prince': [0,7,8,1,20,20,'YEENOGHU, DEMON PRINCE',20],
- 'Asmodeus the archdevil': [0,7,9,1,40,40,'ASMODEUS THE ARCHDEVIL',40],
- 'Baalzebul the archdevil': [0,7,8,1,33,33,'BAALZEBUL THE ARCHDEVIL',33],
- 'Dispater the archdevil': [0,7,6,1,29,29,'DISPATER THE ARCHDEVIL',29],
- 'Geryon the archdevil': [0,7,7,3,27,27,'GERYON THE ARCHDEVIL',27],
- 'Iron golem': [0,7,4,1,16,16,'IRON GOLEM',16],
- 'Lich': [0,5,5,1,11,11,'LICH',11],
- 'Elder titan': [0,7,6,1,22,22,'ELDER TITAN',22]
- }
- charadict = {
- 'Dwarf1': [5,4,6,2,2,2,'DWARF',1,'---',0,10],
- 'Dwarf2': [5,4,6,2,2,2,'DWARF',1,'---',0,10],
- 'Dwarf3': [5,4,6,2,2,2,'DWARF',1,'---',0,10],
- 'Dwarf4': [5,4,6,2,2,2,'DWARF',1,'---',0,10],
- 'Elf1': [6,4,4,2,2,2,'ELF',1,'---',0,10],
- 'Elf2': [6,4,4,2,2,2,'ELF',1,'---',0,10],
- 'Elf3': [6,4,4,2,2,2,'ELF',1,'---',0,10],
- 'Elf4': [6,4,4,2,2,2,'ELF',1,'---',0,10],
- 'Human1': [4,4,4,2,2,2,'HUMAN',1,'---',0,10],
- 'Human2': [4,4,4,2,2,2,'HUMAN',1,'---',0,10],
- 'Human3': [4,4,4,2,2,2,'HUMAN',1,'---',0,10],
- 'Human4': [4,4,4,2,2,2,'HUMAN',1,'---',0,10],
- 'Halfling1': [3,2,3,1,1,1,'HALFLING',1,'---',0,10],
- 'Halfling2': [3,2,3,1,1,1,'HALFLING',1,'---',0,10],
- 'Halfling3': [3,2,3,1,1,1,'HALFLING',1,'---',0,10],
- 'Halfling4': [3,2,3,1,1,1,'HALFLING',1,'---',0,10]
- }
- remap = {
- 'Dwarf1': 'Name1',
- 'Dwarf2': 'Name2',
- 'Dwarf3': 'Name3',
- 'Dwarf4': 'Name4',
- 'Elf1': 'Name1',
- 'Elf2': 'Name2',
- 'Elf3': 'Name3',
- 'Elf3': 'Name4',
- 'Human1': 'Name1',
- 'Human2': 'Name2',
- 'Human3': 'Name3',
- 'Human4': 'Name4',
- 'Halfling1': 'Name1',
- 'Halfling2': 'Name2',
- 'Halfling3': 'Name3',
- 'Halfling4': 'Name4'
- }
- # 0: Description, 1: Modifier, 2: Name, 3: Stat modified, 4: Item class
- # A: Healing, B: Equipment, C: Treasure
- itemsdict = {
- 'Potion': ['Restores 1 HP.',1,'POTION',4,'A'],
- 'Full potion': ['Restores all HP.',100,'FULL POTION',4,'A'],
- 'Elixir-f': ['Permanently increases a character\'s FGT by 1.',1,'ELIXIR-F',0,'A'],
- 'Elixir-s': ['Permanently increases a character\'s STR by 1.',1,'ELIXIR-S',1,'A'],
- 'Elixir-d': ['Permanently increases a character\'s DEF by 1.',1,'ELIXIR-D',2,'A'],
- 'Elixir-h': ['Permanently increases a character\'s HIT by 1.',1,'ELIXIR-H',3,'A'],
- 'Health up': ['Permanently increases a character\'s max HP by 1.',1,'HEALTH UP',5,'A'],
- 'Short sword': ['Grants +1 STR while equipped.',1,'SHORT SWORD',1,'B'],
- 'Greatsword': ['Grants +2 STR while equipped.',2,'GREATSWORD',1,'B'],
- 'Sword3': ['Boosts a character\'s STR by 3 while equipped.',3,'SWORD3',1,'B']
- }
- # 0: Wall, 1: Walkable, 2: Stairs up, 3: Door, 4: Stairs down
- dungeon_floor_0 = [
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
- [0,0,0,0,0,1,1,2,0,1,1,1,1,1,0,0,0,0,0,0,0,4,0],
- [0,0,0,0,0,1,0,0,0,3,0,0,0,1,0,0,0,0,0,0,0,1,0],
- [0,1,0,0,0,1,3,1,1,1,1,0,0,1,3,1,0,0,0,0,0,1,0],
- [0,3,0,0,0,0,0,3,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0],
- [0,1,1,1,1,1,0,1,0,0,0,0,0,1,0,1,1,1,1,1,3,1,0],
- [0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0],
- [0,0,0,1,3,1,0,0,0,0,0,1,3,1,0,1,0,0,0,0,0,1,0],
- [0,1,3,1,0,0,0,0,0,1,3,1,0,0,0,1,0,0,0,0,0,1,0],
- [0,0,0,1,0,0,0,0,0,0,0,1,3,1,1,1,0,0,0,1,0,1,0],
- [0,0,0,3,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,3,0,1,0],
- [0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,0,0,0,0,1,1,1,0],
- [0,0,0,0,0,3,0,0,0,0,0,1,3,1,0,0,0,0,0,1,0,1,0],
- [0,0,0,0,0,1,0,1,3,1,3,1,0,0,0,0,0,1,1,1,0,1,0],
- [0,0,0,1,3,1,0,0,0,1,0,3,0,0,0,0,0,1,0,0,0,1,0],
- [0,0,0,0,0,1,0,1,1,1,0,1,1,1,0,1,1,1,0,1,1,1,0],
- [0,0,0,0,0,3,0,3,0,0,0,0,0,1,0,1,0,0,0,0,0,1,0],
- [0,0,0,0,0,1,0,1,0,0,0,1,3,1,0,1,1,1,1,1,0,1,0],
- [0,0,0,0,0,1,0,1,0,0,0,0,0,3,0,0,0,0,0,1,0,1,0],
- [0,0,0,0,0,1,1,1,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,1,3,1,0,1,0,0,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,1,0,1,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,1,1,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,1,3,1,0,1,0,0,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,1,1,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,1,0,3,0,0,0,0,0,1,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,0,1,0],
- [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
- ]
- current_position = [2,21]
- face = ['North','East','South','West']
- current_face = 'North'
- current_map = dungeon_floor_0
- current_floor = 0
- step = 0
- def monster_level1():
- global party_enemy
- for i in range(randint(1,3)):
- donjon = randint(1,100)
- if donjon <= 2:
- party_enemy.append('Giant ant')
- elif donjon <= 4:
- party_enemy.append('Badger')
- elif donjon <= 14:
- party_enemy.append('Fire beetle')
- elif donjon == 15:
- party_enemy.append('Manes demon')
- elif donjon <= 17:
- party_enemy.append('Dwarf')
- elif donjon == 18:
- party_enemy.append('Ear seeker')
- elif donjon == 19:
- party_enemy.append('Elf')
- elif donjon <= 21:
- party_enemy.append('Gnome')
- elif donjon <= 26:
- party_enemy.append('Goblin')
- elif donjon <= 28:
- party_enemy.append('Halfling')
- elif donjon <= 33:
- party_enemy.append('Hobgoblin')
- elif donjon <= 48:
- donjon1 = randint(1,45)
- if donjon1 <= 25:
- party_enemy.append('Human bandit')
- elif donjon1 <= 30:
- party_enemy.append('Human berserker')
- else:
- party_enemy.append('Human brigand')
- elif donjon <= 54:
- party_enemy.append('Kobold')
- elif donjon <= 66:
- party_enemy.append('Orc')
- elif donjon <= 70:
- party_enemy.append('Piercer')
- elif donjon <= 83:
- party_enemy.append('Giant rat')
- elif donjon <= 85:
- party_enemy.append('Rot grub')
- elif donjon <= 96:
- party_enemy.append('Shrieker')
- elif donjon <= 98:
- party_enemy.append('Skeleton')
- else:
- party_enemy.append('Zombie')
- def monster_level2():
- global party_enemy
- for i in range(randint(1,3)):
- donjon = randint(1,100)
- if donjon == 1:
- party_enemy.append('Giant badger')
- elif donjon <= 16:
- party_enemy.append('Giant centipede')
- elif donjon <= 27:
- donjon1 = randint(1,45)
- if donjon1 <= 25:
- party_enemy.append('Human bandit')
- elif donjon1 <= 30:
- party_enemy.append('Human berserker')
- else:
- party_enemy.append('Human brigand')
- elif donjon == 29:
- party_enemy.append('Lemure devil')
- elif donjon <= 31:
- party_enemy.append('Gas spore')
- elif donjon <= 38:
- party_enemy.append('Gnoll')
- elif donjon <= 46:
- party_enemy.append('Piercer')
- elif donjon <= 58:
- party_enemy.append('Giant rat')
- elif donjon <= 60:
- party_enemy.append('Rot grub')
- elif donjon <= 72:
- party_enemy.append('Shrieker')
- elif donjon <= 77:
- party_enemy.append('Stirge')
- elif donjon <= 87:
- party_enemy.append('Giant toad')
- else:
- party_enemy.append('Troglodyte')
- def monster_level3():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 15:
- party_enemy.append('Boring beetle')
- elif donjon <= 30:
- party_enemy.append('Bugbear')
- elif donjon == 32:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Very young dragon')
- return
- elif donjon <= 34:
- party_enemy.append('Violet fungus')
- elif donjon <= 40:
- party_enemy.append('Gelatinous cube')
- elif donjon <= 45:
- party_enemy.append('Ghoul')
- elif donjon <= 50:
- party_enemy.append('Giant lizard')
- elif donjon <= 72:
- party_enemy.append('Ogre')
- elif donjon <= 74:
- party_enemy.append('Piercer')
- elif donjon == 75:
- party_enemy.append('Rot grub')
- elif donjon <= 77:
- party_enemy.append('Shrieker')
- elif donjon <= 84:
- party_enemy.append('Huge spider')
- elif donjon <= 93:
- party_enemy.append('Large spider')
- elif donjon <= 95:
- party_enemy.append('Giant tick')
- else:
- party_enemy.append('Giant weasel')
- def monster_level4():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 16:
- party_enemy.append('Carnivorous ape')
- elif donjon <= 22:
- party_enemy.append('Blink dog')
- elif donjon == 24:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Young dragon')
- return
- elif donjon <= 30:
- party_enemy.append('Gargoyle')
- elif donjon <= 36:
- party_enemy.append('Ghast')
- elif donjon <= 40:
- party_enemy.append('Gray ooze')
- elif donjon <= 44:
- party_enemy.append('Hell hound')
- elif donjon <= 46:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Five-headed hydra')
- return
- elif donjon == 47:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Six-headed hydra')
- return
- elif donjon == 48:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Five-headed pyro hydra')
- return
- elif donjon <= 62:
- party_enemy.append('Werewolf')
- elif donjon <= 75:
- party_enemy.append('Yellow mold')
- elif donjon <= 78:
- party_enemy.append('Owlbear')
- elif donjon == 79:
- party_enemy.append('Rust monster')
- elif donjon == 82:
- party_enemy.append('Shadow')
- elif donjon == 90:
- party_enemy.append('Giant constrictor')
- elif donjon == 94:
- party_enemy.append('Su-monster')
- elif donjon == 96:
- party_enemy.append('Ice toad')
- else:
- party_enemy.append('Poisonous toad')
- def monster_level5():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 12:
- party_enemy.append('Cockatrice')
- elif donjon <= 18:
- party_enemy.append('Displacer beast')
- elif donjon == 22:
- party_enemy.append('Doppelganger')
- elif donjon <= 24:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Young adult dragon')
- return
- elif donjon <= 26:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Seven-headed hydra')
- return
- elif donjon == 27:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Six-headed pyro hydra')
- return
- elif donjon == 28:
- party_enemy.append('Imp')
- elif donjon <= 31:
- party_enemy.append('Leucrotta')
- elif donjon == 50:
- party_enemy.append('Subterranean lizard')
- elif donjon == 52:
- party_enemy.append('Wereboar')
- elif donjon <= 60:
- party_enemy.append('Minotaur')
- elif donjon <= 64:
- party_enemy.append('Yellow mold')
- elif donjon == 65:
- party_enemy.append('Quasit')
- elif donjon == 67:
- party_enemy.append('Rust monster')
- elif donjon == 70:
- party_enemy.append('Shrieker')
- elif donjon == 72:
- party_enemy.append('Slithering tracker')
- elif donjon == 74:
- party_enemy.append('Giant amphisbaena')
- elif donjon == 82:
- party_enemy.append('Giant poisonous snake')
- elif donjon == 86:
- party_enemy.append('Giant spitting snake')
- else:
- party_enemy.append('Giant spider')
- def monster_level6():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 3:
- party_enemy.append('Basilisk')
- elif donjon <= 10:
- party_enemy.append('Carrion crawler')
- elif donjon <= 17:
- party_enemy.append('Erinyes devil')
- elif donjon <= 19:
- party_enemy.append('Djinni')
- elif donjon == 21:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Old dragon')
- return
- elif donjon <= 25:
- party_enemy.append('Green slime')
- elif donjon <= 27:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Eight-headed hydra')
- return
- elif donjon == 28:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Nine-headed hydra')
- return
- elif donjon <= 32:
- party_enemy.append('Jackalwere')
- elif donjon <= 36:
- party_enemy.append('Lammasu')
- elif donjon <= 38:
- party_enemy.append('Werebear')
- elif donjon == 41:
- party_enemy.append('Weretiger')
- elif donjon <= 50:
- party_enemy.append('Manticore')
- elif donjon <= 55:
- party_enemy.append('Medusa')
- elif donjon == 56:
- party_enemy.append('Brown mold')
- elif donjon <= 58:
- party_enemy.append('Yellow mold')
- elif donjon <= 60:
- party_enemy.append('Ogre mage')
- elif donjon <= 68:
- party_enemy.append('Otyugh')
- elif donjon <= 70:
- party_enemy.append('Rakshasa')
- elif donjon <= 73:
- party_enemy.append('Salamander')
- elif donjon <= 77:
- party_enemy.append('Phase spider')
- elif donjon <= 88:
- party_enemy.append('Troll')
- elif donjon <= 93:
- party_enemy.append('Wight')
- elif donjon <= 95:
- party_enemy.append('Wind walker')
- elif donjon <= 98:
- party_enemy.append('Wraith')
- else:
- party_enemy.append('Wyvern')
- def monster_level7():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 7:
- party_enemy.append('Black pudding')
- elif donjon <= 14:
- party_enemy.append('Chimera')
- elif donjon <= 16:
- party_enemy.append('Succubus')
- elif donjon == 17:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Vrock')
- return
- elif donjon == 18:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Hezrou')
- return
- elif donjon == 19:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Glabrezu')
- return
- elif donjon == 20:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Barbed devil')
- return
- elif donjon == 21:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Bone devil')
- return
- elif donjon == 22:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Horned devil')
- return
- elif donjon <= 24:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Very old dragon')
- return
- elif donjon == 25:
- party_enemy.append('Efreeti')
- elif donjon <= 27:
- donjon1 = randint(1,4)
- if donjon1 == 1:
- party_enemy.append('Air elemental')
- elif donjon1 == 2:
- party_enemy.append('Fire elemental')
- elif donjon1 == 3:
- party_enemy.append('Earth elemental')
- else:
- party_enemy.append('Water elemental')
- elif donjon <= 30:
- party_enemy.append('Ettin')
- elif donjon <= 35:
- donjon1 = randint(1,2)
- if donjon1 == 1:
- party_enemy.append('Hill giant')
- else:
- party_enemy.append('Stone giant')
- elif donjon <= 38:
- donjon1 = randint(1,2)
- if donjon1 == 1:
- party_enemy.append('Frost giant')
- else:
- party_enemy.append('Fire giant')
- elif donjon == 39:
- party_enemy.append('Flesh golem')
- elif donjon <= 41:
- party_enemy.append('Gorgon')
- elif donjon <= 43:
- party_enemy.append('Groaning spirit')
- elif donjon == 44:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Ten-headed hydra')
- return
- elif donjon == 45:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Eleven-headed hydra')
- return
- elif donjon == 46:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Twelve-headed hydra')
- return
- elif donjon == 47:
- if len(party_enemy) >= 1: return
- else:
- donjon1 = randint(1,3)
- if donjon1 == 1:
- party_enemy.append('Seven-headed pyro hydra')
- elif donjon1 == 2:
- party_enemy.append('Eight-headed pyro hydra')
- else:
- party_enemy.append('Nine-headed pyro hydra')
- return
- elif donjon <= 49:
- party_enemy.append('Intellect devourer')
- elif donjon <= 50:
- party_enemy.append('Invisible stalker')
- elif donjon <= 52:
- party_enemy.append('Lamia')
- elif donjon <= 56:
- party_enemy.append('Fire lizard')
- elif donjon <= 59:
- party_enemy.append('Lurker above')
- elif donjon <= 60:
- party_enemy.append('Mezzodaemon')
- elif donjon <= 63:
- party_enemy.append('Mimic')
- elif donjon <= 65:
- party_enemy.append('Mind flayer')
- elif donjon <= 69:
- party_enemy.append('Mummy')
- elif donjon == 70:
- party_enemy.append('Spirit naga')
- elif donjon <= 73:
- party_enemy.append('Neo-otyugh')
- elif donjon == 74:
- party_enemy.append('Night hag')
- elif donjon <= 78:
- party_enemy.append('Roper')
- elif donjon <= 82:
- party_enemy.append('Shambling mound')
- elif donjon <= 86:
- party_enemy.append('Shedu')
- elif donjon == 87:
- party_enemy.append('Giant slug')
- elif donjon <= 91:
- party_enemy.append('Spectre')
- elif donjon <= 93:
- party_enemy.append('Trapper')
- elif donjon <= 95:
- party_enemy.append('Umber hulk')
- elif donjon <= 97:
- party_enemy.append('Will-o-wisp')
- else:
- party_enemy.append('Xorn')
- def monster_level8():
- global party_enemy
- for i in range(randint(1,2)):
- donjon = randint(1,100)
- if donjon <= 4:
- party_enemy.append('Aerial servant')
- elif donjon == 5:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Nalfeshnee')
- return
- elif donjon == 6:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Marilith')
- return
- elif donjon == 7:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Balor')
- return
- elif donjon == 8:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Ice devil')
- return
- elif donjon <= 10:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Ancient dragon')
- return
- elif donjon <= 15:
- party_enemy.append('Ghost')
- elif donjon <= 21:
- party_enemy.append('Cloud giant')
- elif donjon <= 23:
- party_enemy.append('Clay golem')
- elif donjon <= 26:
- if len(party_enemy) >= 1: return
- else:
- donjon1 = randint(1,4)
- if donjon1 == 1:
- party_enemy.append('Thirteen-headed hydra')
- elif donjon1 == 2:
- party_enemy.append('Fourteen-headed hydra')
- elif donjon1 == 3:
- party_enemy.append('Fifteen-headed hydra')
- else:
- party_enemy.append('Sixteen-headed hydra')
- return
- elif donjon == 27:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Twelve-headed pyro hydra')
- return
- elif donjon <= 29:
- party_enemy.append('Intellect devourer')
- elif donjon <= 35:
- party_enemy.append('Lurker above')
- elif donjon <= 41:
- party_enemy.append('Brown mold')
- elif donjon <= 43:
- party_enemy.append('Yellow mold')
- elif donjon <= 47:
- party_enemy.append('Mind flayer')
- elif donjon <= 50:
- party_enemy.append('Guardian naga')
- elif donjon <= 56:
- party_enemy.append('Neo-otyugh')
- elif donjon <= 64:
- if len(party_enemy) >= 1: return
- else:
- party_enemy.append('Purple worm')
- return
- elif donjon <= 69:
- party_enemy.append('Rust monster')
- elif donjon <= 73:
- party_enemy.append('Giant slug')
- elif donjon <= 78:
- party_enemy.append('Trapper')
- elif donjon <= 86:
- party_enemy.append('Vampire')
- elif donjon <= 92:
- party_enemy.append('Will-o-wisp')
- else:
- party_enemy.append('Xorn')
- def monster_level9():
- global party_enemy
- donjon = randint(1,100)
- if donjon <= 4:
- party_enemy.append('Pit fiend')
- elif donjon <= 8:
- party_enemy.append('Ancient dragon')
- party_enemy.append('Old dragon')
- elif donjon <= 15:
- party_enemy.append('Storm giant')
- elif donjon <= 18:
- party_enemy.append('Stone golem')
- elif donjon <= 26:
- donjon1 = randint(1,4)
- if donjon1 == 1:
- party_enemy.append('Seventeen-headed hydra')
- elif donjon1 == 2:
- party_enemy.append('Eighteen-headed hydra')
- elif donjon1 == 3:
- party_enemy.append('Nineteen-headed hydra')
- else:
- party_enemy.append('Twenty-headed hydra')
- elif donjon <= 30:
- party_enemy.append('Twelve-headed pyro hydra')
- elif donjon <= 38:
- party_enemy.append('Brown mold')
- elif donjon <= 49:
- party_enemy.append('Yellow mold')
- elif donjon <= 52:
- party_enemy.append('Nycadaemon')
- elif donjon <= 64:
- party_enemy.append('Purple worm')
- elif donjon <= 67:
- party_enemy.append('Rust monster')
- elif donjon <= 69:
- party_enemy.append('Lesser titan')
- elif donjon <= 73:
- party_enemy.append('Major titan')
- elif donjon <= 80:
- party_enemy.append('Umber hulk')
- elif donjon <= 83:
- party_enemy.append('Vampire')
- elif donjon <= 93:
- donjon = randint(1,3)
- for i in range(donjon):
- party_enemy.append('Will-o-wisp')
- else:
- donjon = randint(1,3)
- for i in range(donjon):
- party_enemy.append('Xorn')
- def monster_level10():
- global party_enemy
- donjon = randint(1,80)
- if donjon <= 13:
- party_enemy.append('Beholder')
- elif donjon <= 22:
- donjon1 = randint(1,4)
- if donjon1 == 1:
- party_enemy.append('Demogorgon, demon prince')
- elif donjon1 == 2:
- party_enemy.append('Juiblex, demon prince')
- elif donjon1 == 3:
- party_enemy.append('Orcus, demon prince')
- else:
- party_enemy.append('Yeenoghu, demon prince')
- elif donjon <= 25:
- donjon1 = randint(1,4)
- if donjon1 == 1:
- party_enemy.append('Asmodeus the archdevil')
- elif donjon1 == 2:
- party_enemy.append('Baalzebul the archdevil')
- elif donjon1 == 3:
- party_enemy.append('Dispater the archdevil')
- else:
- party_enemy.append('Geryon the archdevil')
- elif donjon <= 36:
- party_enemy.append('Ancient dragon')
- party_enemy.append('Very old dragon')
- elif donjon <= 47:
- party_enemy.append('Iron golem')
- elif donjon <= 58:
- party_enemy.append('Lich')
- elif donjon <= 69:
- party_enemy.append('Elder titan')
- else:
- party_enemy.append('Vampire')
- def dungeon_main():
- global party_enemy
- global battle_loop
- global current_position
- global current_face
- global current_floor
- global current_map
- global step
- while current_floor == 0:
- current_map = dungeon_floor_0
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 16:
- monster_level1()
- elif donjon <= 19:
- monster_level2()
- else:
- monster_level3()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -1:
- current_map = dungeon_floor_B1
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 12:
- monster_level1()
- elif donjon <= 16:
- monster_level2()
- elif donjon <= 18:
- monster_level3()
- elif donjon == 19:
- monster_level4()
- else:
- monster_level5()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -2:
- current_map = dungeon_floor_B2
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 12:
- monster_level1()
- elif donjon <= 16:
- monster_level2()
- elif donjon <= 18:
- monster_level3()
- elif donjon == 19:
- monster_level4()
- else:
- monster_level5()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -3:
- current_map = dungeon_floor_B3
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 5:
- monster_level1()
- elif donjon <= 10:
- monster_level2()
- elif donjon <= 16:
- monster_level3()
- elif donjon <= 18:
- monster_level4()
- elif donjon == 19:
- monster_level5()
- else:
- monster_level6()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -4:
- current_map = dungeon_floor_B4
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 3:
- monster_level1()
- elif donjon <= 6:
- monster_level2()
- elif donjon <= 12:
- monster_level3()
- elif donjon <= 16:
- monster_level4()
- elif donjon <= 18:
- monster_level5()
- elif donjon == 19:
- monster_level6()
- else:
- monster_level7()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -5:
- current_map = dungeon_floor_B5
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon <= 2:
- monster_level1()
- elif donjon <= 4:
- monster_level2()
- elif donjon <= 6:
- monster_level3()
- elif donjon <= 12:
- monster_level4()
- elif donjon <= 16:
- monster_level5()
- elif donjon <= 18:
- monster_level6()
- elif donjon == 19:
- monster_level7()
- else:
- monster_level8()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -6:
- current_map = dungeon_floor_B6
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon <= 3:
- monster_level2()
- elif donjon <= 5:
- monster_level3()
- elif donjon <= 10:
- monster_level4()
- elif donjon <= 14:
- monster_level5()
- elif donjon <= 16:
- monster_level6()
- elif donjon <= 18:
- monster_level7()
- elif donjon == 19:
- monster_level8()
- else:
- monster_level9()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -7:
- current_map = dungeon_floor_B7
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon <= 4:
- monster_level3()
- elif donjon <= 7:
- monster_level4()
- elif donjon <= 10:
- monster_level5()
- elif donjon <= 14:
- monster_level6()
- elif donjon <= 16:
- monster_level7()
- elif donjon <= 18:
- monster_level8()
- elif donjon == 19:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -8:
- current_map = dungeon_floor_B8
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon <= 5:
- monster_level4()
- elif donjon <= 8:
- monster_level5()
- elif donjon <= 12:
- monster_level6()
- elif donjon <= 15:
- monster_level7()
- elif donjon <= 17:
- monster_level8()
- elif donjon <= 19:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -9:
- current_map = dungeon_floor_B9
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon <= 6:
- monster_level5()
- elif donjon <= 9:
- monster_level6()
- elif donjon <= 12:
- monster_level7()
- elif donjon <= 16:
- monster_level8()
- elif donjon <= 19:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -10:
- current_map = dungeon_floor_B10
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon <= 6:
- monster_level5()
- elif donjon <= 9:
- monster_level6()
- elif donjon <= 12:
- monster_level7()
- elif donjon <= 16:
- monster_level8()
- elif donjon <= 19:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -11:
- current_map = dungeon_floor_B11
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon == 5:
- monster_level5()
- elif donjon <= 7:
- monster_level6()
- elif donjon <= 9:
- monster_level7()
- elif donjon <= 12:
- monster_level8()
- elif donjon <= 18:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -12:
- current_map = dungeon_floor_B12
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon == 5:
- monster_level5()
- elif donjon <= 7:
- monster_level6()
- elif donjon <= 9:
- monster_level7()
- elif donjon <= 12:
- monster_level8()
- elif donjon <= 18:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -13:
- current_map = dungeon_floor_B13
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon == 5:
- monster_level5()
- elif donjon == 6:
- monster_level6()
- elif donjon <= 8:
- monster_level7()
- elif donjon <= 11:
- monster_level8()
- elif donjon <= 17:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor == -14:
- current_map = dungeon_floor_B14
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon == 5:
- monster_level5()
- elif donjon == 6:
- monster_level6()
- elif donjon <= 8:
- monster_level7()
- elif donjon <= 11:
- monster_level8()
- elif donjon <= 17:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- while current_floor <= -15:
- if current_floor == -15:
- current_map = dungeon_floor_B15
- elif current_floor == -16:
- current_map = dungeon_floor_B16
- elif current_floor == -17:
- current_map = dungeon_floor_B17
- elif current_floor == -18:
- current_map = dungeon_floor_B18
- elif current_floor == -19:
- current_map = dungeon_floor_B19
- elif current_floor == -20:
- current_map = dungeon_floor_B20
- walking()
- if step > 0:
- donjon = randint(1,20)
- if donjon <= 7:
- donjon = randint(1,20)
- if donjon == 1:
- monster_level1()
- elif donjon == 2:
- monster_level2()
- elif donjon == 3:
- monster_level3()
- elif donjon == 4:
- monster_level4()
- elif donjon == 5:
- monster_level5()
- elif donjon == 6:
- monster_level6()
- elif donjon == 7:
- monster_level7()
- elif donjon <= 10:
- monster_level8()
- elif donjon <= 16:
- monster_level9()
- else:
- monster_level10()
- battle_loop = 'true'
- combat_display()
- party_enemy = []
- step = 0
- def walking():
- global current_position
- global current_face
- global face
- while current_face == 'West':
- y = current_position[0]
- x = current_position[1]
- if current_map[y][x-1] == 0:
- if current_map[y+1][x] == 0:
- if current_map[y-1][x] == 0:
- # Wall in front, left, and right
- dead_end()
- elif current_map[y-1][x] == 1:
- # Wall in front and left, space on right
- turn_right()
- elif current_map[y-1][x] == 2:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y-1][x] == 3:
- # Wall in front and left, door on right
- door_right()
- elif current_map[y-1][x] == 4:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y+1][x] == 1:
- if current_map[y-1][x] == 0:
- # Wall in front and right, space on left
- turn_left()
- elif current_map[y-1][x] == 1:
- # Wall in front, space on right and left
- t_intersection()
- elif current_map[y-1][x] == 2:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y-1][x] == 3:
- # Wall in front, space on left, door on right
- turn_left_door_right()
- elif current_map[y-1][x] == 4:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y+1][x] == 2:
- if current_map[y-1][x] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y-1][x] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y-1][x] == 2:
- # Wall in front, stairs on right and left
- t_intersection()
- elif current_map[y-1][x] == 3:
- # Wall in front, stairs on left, door on right
- turn_left_door_right()
- elif current_map[y-1][x] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y+1][x] == 3:
- if current_map[y-1][x] == 0:
- # Wall in front and right, door on left
- door_left()
- elif current_map[y-1][x] == 1:
- # Wall in front, space on right, door on left
- turn_right_door_left()
- elif current_map[y-1][x] == 2:
- # Wall in front, stairs on right, door on left
- turn_right_door_left()
- elif current_map[y-1][x] == 3:
- # Wall in front, door on right and left
- door_right_left()
- elif current_map[y-1][x] == 4:
- # Wall in front, door on left, stairs on right
- turn_right_door_left()
- elif current_map[y+1][x] == 4:
- if current_map[y-1][x] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y-1][x] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y-1][x] == 2:
- # Wall in front, stairs on right, stairs on left
- t_intersection()
- elif current_map[y-1][x] == 3:
- # Wall in front, door on right, stairs on left
- turn_left_door_right()
- elif current_map[y-1][x] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y][x-1] == 1:
- if current_map[y+1][x] == 0:
- if current_map[y-1][x] == 0:
- # Space in front, wall on left and right
- corridor()
- elif current_map[y-1][x] == 1:
- # Space in front and right, wall on left
- wall_left()
- elif current_map[y-1][x] == 2:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y-1][x] == 3:
- # Space in front, wall on left, door on right
- corridor_door_right()
- elif current_map[y-1][x] == 4:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y+1][x] == 1:
- if current_map[y-1][x] == 0:
- # Space in front and left, wall on right
- wall_right()
- elif current_map[y-1][x] == 1:
- # Space in front and left and right
- middle()
- elif current_map[y-1][x] == 2:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y-1][x] == 3:
- # Space in front and left, door on right
- wall_right_door()
- elif current_map[y-1][x] == 4:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y+1][x] == 2:
- if current_map[y-1][x] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y-1][x] == 1:
- # Space in front, stairs on left, space on right
- middle()
- elif current_map[y-1][x] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y-1][x] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y-1][x] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y+1][x] == 3:
- if current_map[y-1][x] == 0:
- # Space in front, door on left, wall on right
- corridor_door_left()
- elif current_map[y-1][x] == 1:
- # Space in front and right, door on left
- wall_left_door()
- elif current_map[y-1][x] == 2:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y-1][x] == 3:
- # Space in front, door on left, door on right
- corridor_door_left_right()
- elif current_map[y-1][x] == 4:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y+1][x] == 4:
- if current_map[y-1][x] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y-1][x] == 1:
- # Space in front and right, stairs on left
- middle()
- elif current_map[y-1][x] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y-1][x] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y-1][x] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x-1] == 2:
- if current_map[y+1][x] == 0:
- if current_map[y-1][x] == 0:
- # Stairs in front, wall on left and right
- stairs_front()
- elif current_map[y-1][x] == 1:
- # Stairs in front, wall on left, space on right
- turn_right_stairs()
- elif current_map[y-1][x] == 2:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y-1][x] == 3:
- # Stairs in front, wall on left, door on right
- stairs_front_door_right()
- elif current_map[y-1][x] == 4:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y+1][x] == 1:
- if current_map[y-1][x] == 0:
- # Stairs in front, space on left, wall on right
- turn_left_stairs()
- elif current_map[y-1][x] == 1:
- # Stairs in front, space on left, space on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 2:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 3:
- # Stairs in front, space on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y-1][x] == 4:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 2:
- if current_map[y-1][x] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y-1][x] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y-1][x] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 3:
- if current_map[y-1][x] == 0:
- # Stairs in front, door on left, wall on right
- stairs_front_door_left()
- elif current_map[y-1][x] == 1:
- # Stairs in front, door on left, space on right
- turn_right_stairs_door_left()
- elif current_map[y-1][x] == 2:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y-1][x] == 3:
- # Stairs in front, door on left, door on right
- stairs_front_door_left_right()
- elif current_map[y-1][x] == 4:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y-1][x] == 4:
- if current_map[y-1][x] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y-1][x] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y-1][x] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 3:
- if current_map[y+1][x] == 0:
- if current_map[y-1][x] == 0:
- # Door in front, wall on right, wall on left
- door_front()
- elif current_map[y-1][x] == 1:
- # Door in front, wall on left, space on right
- turn_right_door_front()
- elif current_map[y-1][x] == 2:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y-1][x] == 3:
- # Door in front, wall on left, door on right
- door_front_right()
- elif current_map[y-1][x] == 4:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y+1][x] == 1:
- if current_map[y-1][x] == 0:
- # Door in front, space on left, wall on right
- turn_left_door_front()
- elif current_map[y-1][x] == 1:
- # Door in front, space on left, space on right
- door_t_intersection()
- elif current_map[y-1][x] == 2:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 3:
- # Door in front, space on left, door on right
- turn_left_door_front_right()
- elif current_map[y-1][x] == 4:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 2:
- if current_map[y-1][x] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y-1][x] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y-1][x] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y-1][x] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 3:
- if current_map[y-1][x] == 0:
- # Door in front, door on left, wall on right
- door_front_left()
- elif current_map[y-1][x] == 1:
- # Door in front, door on left, space on right
- turn_right_door_front_left()
- elif current_map[y-1][x] == 2:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y-1][x] == 3:
- # Door in front, door on left, door on right
- door_front_left_right()
- elif current_map[y+1][x] == 4:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y+1][x] == 4:
- if current_map[y-1][x] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y-1][x] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y-1][x] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y-1][x] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 4:
- if current_map[y+1][x] == 0:
- if current_map[y-1][x] == 0:
- # Downstairs in front, wall on right, wall on left
- stairs_down()
- elif current_map[y-1][x] == 1:
- # Downstairs in front, wall on left, space on right
- turn_right_stairs_down()
- elif current_map[y-1][x] == 2:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y-1][x] == 3:
- # Downstairs in front, wall on left, door on right
- stairs_down_door_right()
- elif current_map[y-1][x] == 4:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y+1][x] == 1:
- if current_map[y-1][x] == 0:
- # Downstairs in front, space on left, wall on right
- turn_left_stairs_down()
- elif current_map[y-1][x] == 1:
- # Downstairs in front, space on left, space on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 2:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 3:
- # Downstairs in front, space on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y-1][x] == 4:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 2:
- if current_map[y-1][x] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y-1][x] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y-1][x] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 3:
- if current_map[y-1][x] == 0:
- # Downstairs in front, door on left, wall on right
- stairs_down_door_left()
- elif current_map[y-1][x] == 1:
- # Downstairs in front, door on left, space on right
- turn_right_stairs_down_door_left()
- elif current_map[y-1][x] == 2:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y-1][x] == 3:
- # Downstairs in front, door on left, door on right
- stairs_down_door_left_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y+1][x] == 4:
- if current_map[y-1][x] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y-1][x] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y-1][x] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- while current_face == 'South':
- y = current_position[0]
- x = current_position[1]
- if current_map[y+1][x] == 0:
- if current_map[y][x+1] == 0:
- if current_map[y][x-1] == 0:
- # Wall in front, left, and right
- dead_end()
- elif current_map[y][x-1] == 1:
- # Wall in front and left, space on right
- turn_right()
- elif current_map[y][x-1] == 2:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y][x-1] == 3:
- # Wall in front and left, door on right
- door_right()
- elif current_map[y][x-1] == 4:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y][x+1] == 1:
- if current_map[y][x-1] == 0:
- # Wall in front and right, space on left
- turn_left()
- elif current_map[y][x-1] == 1:
- # Wall in front, space on right and left
- t_intersection()
- elif current_map[y][x-1] == 2:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y][x-1] == 3:
- # Wall in front, space on left, door on right
- turn_left_door_right()
- elif current_map[y][x-1] == 4:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y][x+1] == 2:
- if current_map[y][x-1] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y][x-1] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y][x-1] == 2:
- # Wall in front, stairs on right and left
- t_intersection()
- elif current_map[y][x-1] == 3:
- # Wall in front, stairs on left, door on right
- turn_left_door_right()
- elif current_map[y][x-1] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y][x+1] == 3:
- if current_map[y][x-1] == 0:
- # Wall in front and right, door on left
- door_left()
- elif current_map[y][x-1] == 1:
- # Wall in front, space on right, door on left
- turn_right_door_left()
- elif current_map[y][x-1] == 2:
- # Wall in front, stairs on right, door on left
- turn_right_door_left()
- elif current_map[y][x-1] == 3:
- # Wall in front, door on right and left
- door_right_left()
- elif current_map[y][x-1] == 4:
- # Wall in front, door on left, stairs on right
- turn_right_door_left()
- elif current_map[y][x+1] == 4:
- if current_map[y][x-1] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y][x-1] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y][x-1] == 2:
- # Wall in front, stairs on right, stairs on left
- t_intersection()
- elif current_map[y][x-1] == 3:
- # Wall in front, door on right, stairs on left
- turn_left_door_right()
- elif current_map[y][x-1] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y+1][x] == 1:
- if current_map[y][x+1] == 0:
- if current_map[y][x-1] == 0:
- # Space in front, wall on left and right
- corridor()
- elif current_map[y][x-1] == 1:
- # Space in front and right, wall on left
- wall_left()
- elif current_map[y][x-1] == 2:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y][x-1] == 3:
- # Space in front, wall on left, door on right
- corridor_door_right()
- elif current_map[y][x-1] == 4:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y][x+1] == 1:
- if current_map[y][x-1] == 0:
- # Space in front and left, wall on right
- wall_right()
- elif current_map[y][x-1] == 1:
- # Space in front and left and right
- middle()
- elif current_map[y][x-1] == 2:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y][x-1] == 3:
- # Space in front and left, door on right
- wall_right_door()
- elif current_map[y][x-1] == 4:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y][x+1] == 2:
- if current_map[y][x-1] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y][x-1] == 1:
- # Space in front, stairs on left, space on right
- middle()
- elif current_map[y][x-1] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x-1] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y][x-1] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x+1] == 3:
- if current_map[y][x-1] == 0:
- # Space in front, door on left, wall on right
- corridor_door_left()
- elif current_map[y][x-1] == 1:
- # Space in front and right, door on left
- wall_left_door()
- elif current_map[y][x-1] == 2:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y][x-1] == 3:
- # Space in front, door on left, door on right
- corridor_door_left_right()
- elif current_map[y][x-1] == 4:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y][x+1] == 4:
- if current_map[y][x-1] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y][x-1] == 1:
- # Space in front and right, stairs on left
- middle()
- elif current_map[y][x-1] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x-1] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y][x-1] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y+1][x] == 2:
- if current_map[y][x+1] == 0:
- if current_map[y][x-1] == 0:
- # Stairs in front, wall on left and right
- stairs_front()
- elif current_map[y][x-1] == 1:
- # Stairs in front, wall on left, space on right
- turn_right_stairs()
- elif current_map[y][x-1] == 2:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y][x-1] == 3:
- # Stairs in front, wall on left, door on right
- stairs_front_door_right()
- elif current_map[y][x-1] == 4:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y][x+1] == 1:
- if current_map[y][x-1] == 0:
- # Stairs in front, space on left, wall on right
- turn_left_stairs()
- elif current_map[y][x-1] == 1:
- # Stairs in front, space on left, space on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 2:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 3:
- # Stairs in front, space on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x-1] == 4:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 2:
- if current_map[y][x-1] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y][x-1] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x-1] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 3:
- if current_map[y][x-1] == 0:
- # Stairs in front, door on left, wall on right
- stairs_front_door_left()
- elif current_map[y][x-1] == 1:
- # Stairs in front, door on left, space on right
- turn_right_stairs_door_left()
- elif current_map[y][x-1] == 2:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y][x-1] == 3:
- # Stairs in front, door on left, door on right
- stairs_front_door_left_right()
- elif current_map[y][x-1] == 4:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y][x+1] == 4:
- if current_map[y][x-1] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y][x-1] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x-1] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 3:
- if current_map[y][x+1] == 0:
- if current_map[y][x-1] == 0:
- # Door in front, wall on right, wall on left
- door_front()
- elif current_map[y][x-1] == 1:
- # Door in front, wall on left, space on right
- turn_right_door_front()
- elif current_map[y][x-1] == 2:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y][x-1] == 3:
- # Door in front, wall on left, door on right
- door_front_right()
- elif current_map[y][x-1] == 4:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y][x+1] == 1:
- if current_map[y][x-1] == 0:
- # Door in front, space on left, wall on right
- turn_left_door_front()
- elif current_map[y][x-1] == 1:
- # Door in front, space on left, space on right
- door_t_intersection()
- elif current_map[y][x-1] == 2:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 3:
- # Door in front, space on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x-1] == 4:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 2:
- if current_map[y][x-1] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y][x-1] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y][x-1] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x-1] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 3:
- if current_map[y][x-1] == 0:
- # Door in front, door on left, wall on right
- door_front_left()
- elif current_map[y][x-1] == 1:
- # Door in front, door on left, space on right
- turn_right_door_front_left()
- elif current_map[y][x-1] == 2:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y][x-1] == 3:
- # Door in front, door on left, door on right
- door_front_left_right()
- elif current_map[y][x-1] == 4:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y][x+1] == 4:
- if current_map[y][x-1] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y][x-1] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y][x-1] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x-1] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 4:
- if current_map[y][x+1] == 0:
- if current_map[y][x-1] == 0:
- # Downstairs in front, wall on right, wall on left
- stairs_down()
- elif current_map[y][x-1] == 1:
- # Downstairs in front, wall on left, space on right
- turn_right_stairs_down()
- elif current_map[y][x-1] == 2:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y][x-1] == 3:
- # Downstairs in front, wall on left, door on right
- stairs_down_door_right()
- elif current_map[y][x-1] == 4:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y][x+1] == 1:
- if current_map[y][x-1] == 0:
- # Downstairs in front, space on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x-1] == 1:
- # Downstairs in front, space on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 2:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 3:
- # Downstairs in front, space on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x-1] == 4:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 2:
- if current_map[y][x-1] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x-1] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x-1] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 3:
- if current_map[y][x-1] == 0:
- # Downstairs in front, door on left, wall on right
- stairs_down_door_left()
- elif current_map[y][x-1] == 1:
- # Downstairs in front, door on left, space on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x-1] == 2:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x-1] == 3:
- # Downstairs in front, door on left, door on right
- stairs_down_door_left_right()
- elif current_map[y][x-1] == 4:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x+1] == 4:
- if current_map[y][x-1] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x-1] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x-1] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- while current_face == 'East':
- y = current_position[0]
- x = current_position[1]
- if current_map[y][x+1] == 0:
- if current_map[y-1][x] == 0:
- if current_map[y+1][x] == 0:
- # Wall in front, left, and right
- dead_end()
- elif current_map[y+1][x] == 1:
- # Wall in front and left, space on right
- turn_right()
- elif current_map[y+1][x] == 2:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y+1][x] == 3:
- # Wall in front and left, door on right
- door_right()
- elif current_map[y+1][x] == 4:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y-1][x] == 1:
- if current_map[y+1][x] == 0:
- # Wall in front and right, space on left
- turn_left()
- elif current_map[y+1][x] == 1:
- # Wall in front, space on right and left
- t_intersection()
- elif current_map[y+1][x] == 2:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y+1][x] == 3:
- # Wall in front, space on left, door on right
- turn_left_door_right()
- elif current_map[y+1][x] == 4:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y-1][x] == 2:
- if current_map[y+1][x] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y+1][x] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y+1][x] == 2:
- # Wall in front, stairs on right and left
- t_intersection()
- elif current_map[y+1][x] == 3:
- # Wall in front, stairs on left, door on right
- turn_left_door_right()
- elif current_map[y+1][x] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y-1][x] == 3:
- if current_map[y+1][x] == 0:
- # Wall in front and right, door on left
- door_left()
- elif current_map[y+1][x] == 1:
- # Wall in front, space on right, door on left
- turn_right_door_left()
- elif current_map[y+1][x] == 2:
- # Wall in front, stairs on right, door on left
- turn_right_door_left()
- elif current_map[y+1][x] == 3:
- # Wall in front, door on right and left
- door_right_left()
- elif current_map[y+1][x] == 4:
- # Wall in front, door on left, stairs on right
- turn_right_door_left()
- elif current_map[y-1][x] == 4:
- if current_map[y+1][x] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y+1][x] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y+1][x] == 2:
- # Wall in front, stairs on right, stairs on left
- t_intersection()
- elif current_map[y+1][x] == 3:
- # Wall in front, door on right, stairs on left
- turn_left_door_right()
- elif current_map[y+1][x] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y][x+1] == 1:
- if current_map[y-1][x] == 0:
- if current_map[y+1][x] == 0:
- # Space in front, wall on left and right
- corridor()
- elif current_map[y+1][x] == 1:
- # Space in front and right, wall on left
- wall_left()
- elif current_map[y+1][x] == 2:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y+1][x] == 3:
- # Space in front, wall on left, door on right
- corridor_door_right()
- elif current_map[y+1][x] == 4:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y-1][x] == 1:
- if current_map[y+1][x] == 0:
- # Space in front and left, wall on right
- wall_right()
- elif current_map[y+1][x] == 1:
- # Space in front and left and right
- middle()
- elif current_map[y+1][x] == 2:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y+1][x] == 3:
- # Space in front and left, door on right
- wall_right_door()
- elif current_map[y+1][x] == 4:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y-1][x] == 2:
- if current_map[y+1][x] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y+1][x] == 1:
- # Space in front, stairs on left, space on right
- middle()
- elif current_map[y+1][x] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y+1][x] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y+1][x] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y-1][x] == 3:
- if current_map[y+1][x] == 0:
- # Space in front, door on left, wall on right
- corridor_door_left()
- elif current_map[y+1][x] == 1:
- # Space in front and right, door on left
- wall_left_door()
- elif current_map[y+1][x] == 2:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y+1][x] == 3:
- # Space in front, door on left, door on right
- corridor_door_left_right()
- elif current_map[y+1][x] == 4:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y-1][x] == 4:
- if current_map[y+1][x] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y+1][x] == 1:
- # Space in front and right, stairs on left
- middle()
- elif current_map[y+1][x] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y+1][x] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y+1][x] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x+1] == 2:
- if current_map[y-1][x] == 0:
- if current_map[y+1][x] == 0:
- # Stairs in front, wall on left and right
- stairs_front()
- elif current_map[y+1][x] == 1:
- # Stairs in front, wall on left, space on right
- turn_right_stairs()
- elif current_map[y+1][x] == 2:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y+1][x] == 3:
- # Stairs in front, wall on left, door on right
- stairs_front_door_right()
- elif current_map[y+1][x] == 4:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y-1][x] == 1:
- if current_map[y+1][x] == 0:
- # Stairs in front, space on left, wall on right
- turn_left_stairs()
- elif current_map[y+1][x] == 1:
- # Stairs in front, space on left, space on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 2:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 3:
- # Stairs in front, space on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y+1][x] == 4:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 2:
- if current_map[y+1][x] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y+1][x] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y+1][x] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 3:
- if current_map[y+1][x] == 0:
- # Stairs in front, door on left, wall on right
- stairs_front_door_left()
- elif current_map[y+1][x] == 1:
- # Stairs in front, door on left, space on right
- turn_right_stairs_door_left()
- elif current_map[y+1][x] == 2:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y+1][x] == 3:
- # Stairs in front, door on left, door on right
- stairs_front_door_left_right()
- elif current_map[y+1][x] == 4:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y-1][x] == 4:
- if current_map[y+1][x] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y+1][x] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y+1][x] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y+1][x] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 3:
- if current_map[y-1][x] == 0:
- if current_map[y+1][x] == 0:
- # Door in front, wall on right, wall on left
- door_front()
- elif current_map[y+1][x] == 1:
- # Door in front, wall on left, space on right
- turn_right_door_front()
- elif current_map[y+1][x] == 2:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y+1][x] == 3:
- # Door in front, wall on left, door on right
- door_front_right()
- elif current_map[y+1][x] == 4:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y-1][x] == 1:
- if current_map[y+1][x] == 0:
- # Door in front, space on left, wall on right
- turn_left_door_front()
- elif current_map[y+1][x] == 1:
- # Door in front, space on left, space on right
- door_t_intersection()
- elif current_map[y+1][x] == 2:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 3:
- # Door in front, space on left, door on right
- turn_left_door_front_right()
- elif current_map[y+1][x] == 4:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 2:
- if current_map[y+1][x] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y+1][x] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y+1][x] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y+1][x] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 3:
- if current_map[y+1][x] == 0:
- # Door in front, door on left, wall on right
- door_front_left()
- elif current_map[y+1][x] == 1:
- # Door in front, door on left, space on right
- turn_right_door_front_left()
- elif current_map[y+1][x] == 2:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y+1][x] == 3:
- # Door in front, door on left, door on right
- door_front_left_right()
- elif current_map[y+1][x] == 4:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y-1][x] == 4:
- if current_map[y+1][x] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y+1][x] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y+1][x] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y+1][x] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y+1][x] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 4:
- if current_map[y-1][x] == 0:
- if current_map[y+1][x] == 0:
- # Downstairs in front, wall on right, wall on left
- stairs_down()
- elif current_map[y+1][x] == 1:
- # Downstairs in front, wall on left, space on right
- turn_right_stairs_down()
- elif current_map[y+1][x] == 2:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y+1][x] == 3:
- # Downstairs in front, wall on left, door on right
- stairs_down_door_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y-1][x] == 1:
- if current_map[y+1][x] == 0:
- # Downstairs in front, space on left, wall on right
- turn_left_stairs_down()
- elif current_map[y+1][x] == 1:
- # Downstairs in front, space on left, space on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 2:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 3:
- # Downstairs in front, space on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 2:
- if current_map[y+1][x] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y+1][x] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y-1][x] == 3:
- if current_map[y+1][x] == 0:
- # Downstairs in front, door on left, wall on right
- stairs_down_door_left()
- elif current_map[y+1][x] == 1:
- # Downstairs in front, door on left, space on right
- turn_right_stairs_down_door_left()
- elif current_map[y+1][x] == 2:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y+1][x] == 3:
- # Downstairs in front, door on left, door on right
- stairs_down_door_left_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y-1][x] == 4:
- if current_map[y+1][x] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y+1][x] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y+1][x] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y+1][x] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- while current_face == 'North':
- y = current_position[0]
- x = current_position[1]
- if current_map[y-1][x] == 0:
- if current_map[y][x-1] == 0:
- if current_map[y][x+1] == 0:
- # Wall in front, left, and right
- dead_end()
- elif current_map[y][x+1] == 1:
- # Wall in front and left, space on right
- turn_right()
- elif current_map[y][x+1] == 2:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y][x+1] == 3:
- # Wall in front and left, door on right
- door_right()
- elif current_map[y][x+1] == 4:
- # Wall in front and left, stairs on right
- turn_right()
- elif current_map[y][x-1] == 1:
- if current_map[y][x+1] == 0:
- # Wall in front and right, space on left
- turn_left()
- elif current_map[y][x+1] == 1:
- # Wall in front, space on right and left
- t_intersection()
- elif current_map[y][x+1] == 2:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y][x+1] == 3:
- # Wall in front, space on left, door on right
- turn_left_door_right()
- elif current_map[y][x+1] == 4:
- # Wall in front, space on left, stairs on right
- t_intersection()
- elif current_map[y][x-1] == 2:
- if current_map[y][x+1] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y][x+1] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y][x+1] == 2:
- # Wall in front, stairs on right and left
- t_intersection()
- elif current_map[y][x+1] == 3:
- # Wall in front, stairs on left, door on right
- turn_left_door_right()
- elif current_map[y][x+1] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y][x-1] == 3:
- if current_map[y][x+1] == 0:
- # Wall in front and right, door on left
- door_left()
- elif current_map[y][x+1] == 1:
- # Wall in front, space on right, door on left
- turn_right_door_left()
- elif current_map[y][x+1] == 2:
- # Wall in front, stairs on right, door on left
- turn_right_door_left()
- elif current_map[y][x+1] == 3:
- # Wall in front, door on right and left
- door_right_left()
- elif current_map[y][x+1] == 4:
- # Wall in front, door on left, stairs on right
- turn_right_door_left()
- elif current_map[y][x-1] == 4:
- if current_map[y][x+1] == 0:
- # Wall in front and right, stairs on left
- turn_left()
- elif current_map[y][x+1] == 1:
- # Wall in front, space on right, stairs on left
- t_intersection()
- elif current_map[y][x+1] == 2:
- # Wall in front, stairs on right, stairs on left
- t_intersection()
- elif current_map[y][x+1] == 3:
- # Wall in front, door on right, stairs on left
- turn_left_door_right()
- elif current_map[y][x+1] == 4:
- # Wall in front, stairs on left, stairs on right
- t_intersection()
- elif current_map[y-1][x] == 1:
- if current_map[y][x-1] == 0:
- if current_map[y][x+1] == 0:
- # Space in front, wall on left and right
- corridor()
- elif current_map[y][x+1] == 1:
- # Space in front and right, wall on left
- wall_left()
- elif current_map[y][x+1] == 2:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y][x+1] == 3:
- # Space in front, wall on left, door on right
- corridor_door_right()
- elif current_map[y][x+1] == 4:
- # Space in front, wall on left, stairs on right
- wall_left()
- elif current_map[y][x-1] == 1:
- if current_map[y][x+1] == 0:
- # Space in front and left, wall on right
- wall_right()
- elif current_map[y][x+1] == 1:
- # Space in front and left and right
- middle()
- elif current_map[y][x+1] == 2:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y][x+1] == 3:
- # Space in front and left, door on right
- wall_right_door()
- elif current_map[y][x+1] == 4:
- # Space in front and left, stairs on right
- middle()
- elif current_map[y][x-1] == 2:
- if current_map[y][x+1] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y][x+1] == 1:
- # Space in front, stairs on left, space on right
- middle()
- elif current_map[y][x+1] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x+1] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y][x+1] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x-1] == 3:
- if current_map[y][x+1] == 0:
- # Space in front, door on left, wall on right
- corridor_door_left()
- elif current_map[y][x+1] == 1:
- # Space in front and right, door on left
- wall_left_door()
- elif current_map[y][x+1] == 2:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y][x+1] == 3:
- # Space in front, door on left, door on right
- corridor_door_left_right()
- elif current_map[y][x+1] == 4:
- # Space in front, door on left, stairs on right
- wall_left_door()
- elif current_map[y][x-1] == 4:
- if current_map[y][x+1] == 0:
- # Space in front, stairs on left, wall on right
- wall_right()
- elif current_map[y][x+1] == 1:
- # Space in front and right, stairs on left
- middle()
- elif current_map[y][x+1] == 2:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y][x+1] == 3:
- # Space in front, stairs on left, door on right
- wall_right_door()
- elif current_map[y][x+1] == 4:
- # Space in front, stairs on left, stairs on right
- middle()
- elif current_map[y-1][x] == 2:
- if current_map[y][x-1] == 0:
- if current_map[y][x+1] == 0:
- # Stairs in front, wall on left and right
- stairs_front()
- elif current_map[y][x+1] == 1:
- # Stairs in front, wall on left, space on right
- turn_right_stairs()
- elif current_map[y][x+1] == 2:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y][x+1] == 3:
- # Stairs in front, wall on left, door on right
- stairs_front_door_right()
- elif current_map[y][x+1] == 4:
- # Stairs in front, wall on left, stairs on right
- turn_right_stairs()
- elif current_map[y][x-1] == 1:
- if current_map[y][x+1] == 0:
- # Stairs in front, space on left, wall on right
- turn_left_stairs()
- elif current_map[y][x+1] == 1:
- # Stairs in front, space on left, space on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 2:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 3:
- # Stairs in front, space on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x+1] == 4:
- # Stairs in front, space on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 2:
- if current_map[y][x+1] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y][x+1] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x+1] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x-1] == 3:
- if current_map[y][x+1] == 0:
- # Stairs in front, door on left, wall on right
- stairs_front_door_left()
- elif current_map[y][x+1] == 1:
- # Stairs in front, door on left, space on right
- turn_right_stairs_door_left()
- elif current_map[y][x+1] == 2:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y][x+1] == 3:
- # Stairs in front, door on left, door on right
- stairs_front_door_left_right()
- elif current_map[y][x+1] == 4:
- # Stairs in front, door on left, stairs on right
- turn_right_stairs_door_left()
- elif current_map[y][x-1] == 4:
- if current_map[y][x+1] == 0:
- # Stairs in front, stairs on left, wall on right
- turn_left_stairs()
- elif current_map[y][x+1] == 1:
- # Stairs in front, stairs on left, space on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 2:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y][x+1] == 3:
- # Stairs in front, stairs on left, door on right
- turn_left_stairs_door_right()
- elif current_map[y][x+1] == 4:
- # Stairs in front, stairs on left, stairs on right
- stairs_t_intersection()
- elif current_map[y-1][x] == 3:
- if current_map[y][x-1] == 0:
- if current_map[y][x+1] == 0:
- # Door in front, wall on right, wall on left
- door_front()
- elif current_map[y][x+1] == 1:
- # Door in front, wall on left, space on right
- turn_right_door_front()
- elif current_map[y][x+1] == 2:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y][x+1] == 3:
- # Door in front, wall on left, door on right
- door_front_right()
- elif current_map[y][x+1] == 4:
- # Door in front, wall on left, stairs on right
- turn_right_door_front()
- elif current_map[y][x-1] == 1:
- if current_map[y][x+1] == 0:
- # Door in front, space on left, wall on right
- turn_left_door_front()
- elif current_map[y][x+1] == 1:
- # Door in front, space on left, space on right
- door_t_intersection()
- elif current_map[y][x+1] == 2:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 3:
- # Door in front, space on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x+1] == 4:
- # Door in front, space on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 2:
- if current_map[y][x+1] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y][x+1] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y][x+1] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x+1] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x-1] == 3:
- if current_map[y][x+1] == 0:
- # Door in front, door on left, wall on right
- door_front_left()
- elif current_map[y][x+1] == 1:
- # Door in front, door on left, space on right
- turn_right_door_front_left()
- elif current_map[y][x+1] == 2:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y][x+1] == 3:
- # Door in front, door on left, door on right
- door_front_left_right()
- elif current_map[y][x+1] == 4:
- # Door in front, door on left, stairs on right
- turn_right_door_front_left()
- elif current_map[y][x-1] == 4:
- if current_map[y][x+1] == 0:
- # Door in front, stairs on left, wall on right
- turn_left_door_front()
- elif current_map[y][x+1] == 1:
- # Door in front, stairs on left, space on right
- door_t_intersection()
- elif current_map[y][x+1] == 2:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y][x+1] == 3:
- # Door in front, stairs on left, door on right
- turn_left_door_front_right()
- elif current_map[y][x+1] == 4:
- # Door in front, stairs on left, stairs on right
- door_t_intersection()
- elif current_map[y-1][x] == 4:
- if current_map[y][x-1] == 0:
- if current_map[y][x+1] == 0:
- # Downstairs in front, wall on right, wall on left
- stairs_down()
- elif current_map[y][x+1] == 1:
- # Downstairs in front, wall on left, space on right
- turn_right_stairs_down()
- elif current_map[y][x+1] == 2:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y][x+1] == 3:
- # Downstairs in front, wall on left, door on right
- stairs_down_door_right()
- elif current_map[y][x+1] == 4:
- # Downstairs in front, wall on left, stairs on right
- turn_right_stairs_down()
- elif current_map[y][x-1] == 1:
- if current_map[y][x+1] == 0:
- # Downstairs in front, space on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x+1] == 1:
- # Downstairs in front, space on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 2:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 3:
- # Downstairs in front, space on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x+1] == 4:
- # Downstairs in front, space on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 2:
- if current_map[y][x+1] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x+1] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x+1] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x-1] == 3:
- if current_map[y][x+1] == 0:
- # Downstairs in front, door on left, wall on right
- stairs_down_door_left()
- elif current_map[y][x+1] == 1:
- # Downstairs in front, door on left, space on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x+1] == 2:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x+1] == 3:
- # Downstairs in front, door on left, door on right
- stairs_down_door_left_right()
- elif current_map[y][x+1] == 4:
- # Downstairs in front, door on left, stairs on right
- turn_right_stairs_down_door_left()
- elif current_map[y][x-1] == 4:
- if current_map[y][x+1] == 0:
- # Downstairs in front, stairs on left, wall on right
- turn_left_stairs_down()
- elif current_map[y][x+1] == 1:
- # Downstairs in front, stairs on left, space on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 2:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- elif current_map[y][x+1] == 3:
- # Downstairs in front, stairs on left, door on right
- turn_left_stairs_down_door_right()
- elif current_map[y][x+1] == 4:
- # Downstairs in front, stairs on left, stairs on right
- stairs_down_t_intersection()
- def door_front_left_right():
- global current_face
- door_front_right_loop = 'true'
- while door_front_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±°°°°°°°°±±°±±° °±±±³ ³
- ³±±±±° °±±°±±° °±±°±±° °±±±³ ³
- ³±±±±° °±±°±±° °±±°±±° °±±±³ ³
- ³±±±±° °±±°±±° °±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±° °±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_door_front_left():
- global current_face
- turn_right_door_front_left_loop = 'true'
- while turn_right_door_front_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±°°°°°°°°±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±° °±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_front_left():
- global current_face
- door_front_left_loop = 'true'
- while door_front_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±°°°°°°°°±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±° °±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±° °±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_door_front():
- global current_face
- turn_left_door_front_loop = 'true'
- while turn_left_door_front_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±°°°°°°°°±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±° °±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_door_front_right():
- global current_face
- turn_left_door_front_right_loop = 'true'
- while turn_left_door_front_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±°°°°°°°°±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±° °±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±° °±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_t_intersection():
- global current_face
- door_t_intersection_loop = 'true'
- while door_t_intersection_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±°°°°°°°°±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±° °±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±° °±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_front_right():
- global current_face
- door_front_right_loop = 'true'
- while door_front_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±°°°°°°°°±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±° °±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_door_front():
- global current_face
- turn_right_door_front_loop = 'true'
- while turn_right_door_front_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±°°°°°°°°±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±° °±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_front():
- global current_face
- door_front_loop = 'true'
- while door_front_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±°°°°°°°°±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±° °±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±° °±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- open_door()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_down_door_left_right():
- global current_face
- stairs_down_door_left_right_loop = 'true'
- while stairs_front_door_left_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_stairs_down_door_left():
- global current_face
- turn_right_stairs_down_door_left_loop = 'true'
- while turn_right_stairs_down_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_stairs_down_door_right():
- global current_face
- turn_left_stairs_down_door_right_loop = 'true'
- while turn_left_stairs_down_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_down_door_left():
- global current_face
- stairs_down_door_left_loop = 'true'
- while stairs_down_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_down_t_intersection():
- global current_face
- stairs_down_t_loop = 'true'
- while stairs_down_t_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_stairs_down():
- global current_face
- turn_left_stairs_down_loop = 'true'
- while turn_left_stairs_down_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_down_door_right():
- global current_face
- stairs_down_door_right_loop = 'true'
- while stairs_down_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_stairs_down():
- global current_face
- turn_right_stairs_down_loop = 'true'
- while turn_right_stairs_down_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_down():
- global current_face
- stairs_down_loop = 'true'
- while stairs_down_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- descend_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_front_door_left_right():
- global current_face
- stairs_front_door_left_right_loop = 'true'
- while stairs_front_door_left_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ±±±±±±±³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±ÃÄÄÄÄ´±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±³±±±±³±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_stairs_door_left():
- global current_face
- turn_right_stairs_door_left_loop = 'true'
- while turn_right_stairs_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±³±±±±³±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_stairs_door_right():
- global current_face
- turn_left_stairs_door_right_loop = 'true'
- while turn_left_stairs_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ À¿ ÚÙ ±±±±±±±³ ³
- ³ ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_front_door_left():
- global current_face
- stairs_front_door_left_loop = 'true'
- while stairs_front_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ±±±±±±±³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±³±±±±³±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_t_intersection():
- global current_face
- turn_left_stairs_loop = 'true'
- while turn_left_stairs_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ À¿ ÚÙ ³ ³
- ³ ÀÄijÄÄÄijÄÄÙ ³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_stairs():
- global current_face
- turn_left_stairs_loop = 'true'
- while turn_left_stairs_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ À¿ ÚÙ ±±±±±±±³ ³
- ³ ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_front_door_right():
- global current_face
- stairs_front_door_right_loop = 'true'
- while stairs_front_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ±±±±±±±³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_stairs():
- global current_face
- turn_right_stairs_loop = 'true'
- while turn_right_stairs_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def stairs_front():
- global current_face
- stairs_front_loop = 'true'
- while stairs_front_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± À¿ ÚÙ ±±±±±±±³ ³
- ³±±±±±±±±± ÀÄijÄÄÄijÄÄÙ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±ÃÄÄÄÄ´±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±³±±±±³±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- change_floors()
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def corridor_door_left_right():
- global step
- global current_position
- global current_face
- corridor_door_left_right_loop = 'true'
- while corridor_door_left_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±± ±±±±°°±±±³ 2: SEARCH ³
- ³±±±±° °±±±± ±±±±° °±±±³ 3: SAVE ³
- ³±±±±° °±±±° °±±±° °±±±³ ³
- ³±±±±° °±±±° °±±±° °±±±³ ³
- ³±±±±° °±±±° °±±±° °±±±³ ³
- ³±±±±° °±±±° °±±±° °±±±³ ³
- ³±±±±° °±±±° °±±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±±° °±±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def corridor_door_left():
- global step
- global current_position
- global current_face
- corridor_door_left_loop = 'true'
- while corridor_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±± ±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±± ±±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±±° °±±±±±±±±±±³ ³
- ³±±±±° °±±±° °±±±±±±±±±±³ ³
- ³±±±±° °±±±° °±±±±±±±±±±³ ³
- ³±±±±° °±±±° °±±±±±±±±±±³ ³
- ³±±±±° °±±±° °±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±±° °±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def wall_left_door():
- global step
- global current_position
- global current_face
- wall_left_door_loop = 'true'
- while wall_left_door_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ±°±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±± ±±°±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±± ±±±°±±±±±±³ 3: SAVE ³
- ³±±±±° °±±±° °±±±°±±±±±±³ ³
- ³±±±±° °±±±° °±±±°±±±±±±³ ³
- ³±±±±° °±±±° °±±±°±±±±±±³ ³
- ³±±±±° °±±±° °±±±°±±±±±±³ ³
- ³±±±±° °±±±° °±±±°±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±±° °±±±°±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def wall_right_door():
- global step
- global current_position
- global current_face
- wall_right_door_loop = 'true'
- while wall_right_door_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³±±±±±±±°± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±°±± ±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±°±±± ±±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±°±±±° °±±±° °±±±³ ³
- ³±±±±±±±°±±±° °±±±° °±±±³ ³
- ³±±±±±±±°±±±° °±±±° °±±±³ ³
- ³±±±±±±±°±±±° °±±±° °±±±³ ³
- ³±±±±±±±°±±±° °±±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±°±±±° °±±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def middle():
- global step
- global current_position
- global current_face
- middle_loop = 'true'
- while middle_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³±±±±±±±°± ±°±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±°±± ±±°±±±±±±³ 2: SEARCH ³
- ³±±±±±±±°±±± ±±±°±±±±±±³ 3: SAVE ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±°±±±° °±±±°±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def wall_right():
- global step
- global current_position
- global current_face
- wall_right_loop = 'true'
- while wall_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³±±±±±±±°± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±°±± ±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±°±±± ±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±°±±±° °±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def corridor_door_right():
- global step
- global current_position
- global current_face
- corridor_door_right_loop = 'true'
- while corridor_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±± ±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±± ±±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±±° °±±±° °±±±³ ³
- ³±±±±±±±±±±±° °±±±° °±±±³ ³
- ³±±±±±±±±±±±° °±±±° °±±±³ ³
- ³±±±±±±±±±±±° °±±±° °±±±³ ³
- ³±±±±±±±±±±±° °±±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±° °±±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def wall_left():
- global step
- global current_position
- global current_face
- wall_left_loop = 'true'
- while wall_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ±°±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±± ±±°±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±± ±±±°±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±° °±±±°±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def corridor():
- global step
- global current_position
- global current_face
- corridor_loop = 'true'
- while corridor_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±± ±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±± ±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±° °±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'w',b'W']:
- if current_face == 'North':
- current_position[0] -= 1
- elif current_face == 'East':
- current_position[1] += 1
- elif current_face == 'South':
- current_position[0] += 1
- elif current_face == 'West':
- current_position[1] -= 1
- step += 1
- current_face = face[alpha]
- return
- elif command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def dead_end():
- global current_face
- dead_end_loop = 'true'
- while dead_end_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right():
- global current_face
- turn_right_loop = 'true'
- while turn_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_right():
- global current_face
- door_right_loop = 'true'
- while door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left():
- global current_face
- turn_left_loop = 'true'
- while turn_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def t_intersection():
- global current_face
- t_intersection_loop = 'true'
- while t_intersection_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_left_door_right():
- global current_face
- turn_left_door_right_loop = 'true'
- while turn_left_door_right_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ±±±±±±±³ ³
- ³ ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±±±±±±±±±±±±±±±±±±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_left():
- global current_face
- door_left_loop = 'true'
- while door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def turn_right_door_left():
- global current_face
- turn_right_door_left_loop = 'true'
- while turn_right_door_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ³ ³
- ³±±±±±±±±± ³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±±±±±±±±±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±±±±±±±±±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±±±±±±±±±±±±±±±±±±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def door_right_left():
- global current_face
- door_right_left_loop = 'true'
- while door_right_left_loop == 'true':
- alpha = face.index(current_face)
- clear_screen()
- time.sleep(0.01)
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³±±±±±±±± ±±±±±±±³ ³
- ³±±±±±±±±± ±±±±±±±±³ 1: INVENTORY ³
- ³±±±±°°±±±±°±±±±±±±±±±±±°±±±±°°±±±³ 2: SEARCH ³
- ³±±±±° °±±±°±±±±±±±±±±±±°±±±° °±±±³ 3: SAVE ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ (Type CANCEL to cancel a command) ³
- ³±±±±° °±±°±±±±±±±±±±±±°±±° °±±±³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- command = msvcrt.getch()
- if command in [b'a',b'A']:
- try:
- current_face = face[alpha - 1]
- except:
- current_face = face[alpha + 4]
- return
- elif command in [b'd',b'D']:
- try:
- current_face = face[alpha + 1]
- except:
- current_face = face[alpha - 3]
- return
- elif command == b'1':
- view_items_noncombat()
- elif command == b'2':
- search()
- elif command == b'3':
- save_game()
- def clear_screen():
- if os.name in("nt","dos","ce"):
- os.system("CLS")
- else:
- print("Error: Unsupported OS.")
- time.sleep(5)
- def combat_battle(i):
- global party_hero
- global party_hero_length
- global party_enemy
- global party_enemy_length
- global battle_loop
- global battle_loop1
- party_hero_length = len(party_hero)
- party_enemy_length = len(party_enemy)
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- command = str(input(("\nWho will %s attack?\n>" % (charadict[party_hero[i]][6]))))
- try:
- command = int(command)
- does_enemy_exist = 'false'
- for k in range(party_enemy_length):
- if charadict_enemy[party_enemy[command-1]][6] == (charadict_enemy[party_enemy[k]][6]):
- combat_action(i,k)
- combat_death(i,k)
- party_enemy_length = len(party_enemy)
- does_enemy_exist = 'true'
- battle_loop1 = 'false'
- break
- else: pass
- if does_enemy_exist == 'false':
- print("That enemy doesn't exist.")
- time.sleep(0.8)
- else: pass
- except (ValueError, IndexError):
- try:
- command = command.capitalize()
- does_enemy_exist = 'false'
- for k in range(party_enemy_length):
- if charadict_enemy[command][6] == (charadict_enemy[party_enemy[k]][6]):
- combat_action(i,k)
- combat_death(i,k)
- party_enemy_length = len(party_enemy)
- does_enemy_exist = 'true'
- battle_loop1 = 'false'
- break
- else: pass
- if does_enemy_exist == 'false':
- print("That enemy doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- pass
- else:
- print("That enemy doesn't exist.")
- time.sleep(0.8)
- except:
- print("That enemy doesn't exist.")
- time.sleep(0.8)
- def combat_display():
- global party_hero
- global party_hero_length
- global party_enemy
- global party_enemy_length
- global battle_loop
- global battle_loop1
- while battle_loop == 'true':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³
- ³ ³ RANDOM ENCOUNTER ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- time.sleep(1)
- battle_loop = 'true2'
- while battle_loop == 'true2':
- party_hero_length = len(party_hero)
- party_enemy_length = len(party_enemy)
- for i in range(party_hero_length):
- if charadict[party_hero[i]][4] > 0:
- battle_loop1 = 'true'
- while battle_loop1 == 'true':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- command = str(input("\nWhat will %s do?\n>" % (charadict[party_hero[i]][6])))
- try:
- command = int(command)
- does_command_exist = 'false'
- if command_list[command-1] == 'Attack':
- combat_battle(i)
- if len(party_enemy) == 0:
- print("\nParty was victorious!")
- time.sleep(0.8)
- party_gain_exp()
- battle_loop = 'false'
- return
- else: pass
- does_command_exist = 'true'
- elif command_list[command-1] == 'Inventory':
- view_items(i)
- does_command_exist = 'true'
- elif command_list[command-1] == 'Escape':
- if boss == 'true':
- print("You can't escape!")
- time.sleep(0.8)
- else:
- print("Escaped successfully!")
- battle_loop = 'false'
- time.sleep(0.8)
- return
- does_command_exist = 'true'
- else: pass
- if does_command_exist == 'false':
- print("That is not an option. A")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_command_exist = 'false'
- if command == 'Attack':
- combat_battle(i)
- if len(party_enemy) == 0:
- print("\nParty was victorious!")
- time.sleep(0.8)
- party_gain_exp()
- battle_loop = 'false'
- return
- else: pass
- does_command_exist = 'true'
- elif command == 'Inventory':
- view_items(i)
- does_command_exist = 'true'
- elif command == 'Escape':
- if boss == 'true':
- print("You can't escape!")
- time.sleep(0.8)
- else:
- print("Escaped successfully!")
- battle_loop = 'false'
- time.sleep(0.8)
- return
- does_command_exist = 'true'
- else: pass
- if does_command_exist == 'false':
- print("That is not an option. B")
- time.sleep(0.8)
- else: pass
- except:
- print("That is not an option. C")
- time.sleep(0.8)
- else:
- temp = 0
- for u in range(party_hero_length):
- temp += charadict[party_hero[u]][4]
- if temp <= 0:
- print("\nParty has been defeated...")
- time.sleep(0.8)
- sys.exit()
- else: pass
- for k in range(party_enemy_length):
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- i = randint(1,party_hero_length) - 1
- if charadict[party_hero[i]][4] <= 0:
- try:
- i -= 1
- if charadict[party_hero[i]][4] <= 0:
- try:
- i -= 1
- if charadict[party_hero[i]][4] <= 0:
- i -= 1
- try:
- combat_action_enemy(i,k)
- combat_death(i,k)
- except:
- i += 1
- combat_action_enemy(i,k)
- combat_death(i,k)
- else:
- combat_action_enemy(i,k)
- combat_death(i,k)
- except:
- i += 1
- combat_action_enemy(i,k)
- combat_death(i,k)
- else:
- combat_action_enemy(i,k)
- combat_death(i,k)
- except:
- i += 1
- combat_action_enemy(i,k)
- combat_death(i,k)
- else:
- combat_action_enemy(i,k)
- combat_death(i,k)
- temp = 0
- for u in range(party_hero_length):
- temp += charadict[party_hero[u]][4]
- if temp <= 0:
- print("\nParty has been defeated...")
- time.sleep(0.8)
- sys.exit()
- else: pass
- def view_items_noncombat():
- global party_hero
- global party_hero_length
- global items_length
- items_length = len(items_list)
- items_loop = 'true'
- while items_loop == 'true':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ Currently accessing inventory... ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³
- ³ ³ USING INVENTORY ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ITEMS ÄÄÄÙ""")
- for m in range(8):
- try:
- print(" %s: %s - %s" %(m+1,itemsdict[items_list[m]][2],
- itemsdict[items_list[m]][0]))
- except:
- print(" ---")
- command = str(input("\nWhat item will you use?\n>"))
- try:
- command = int(command)
- does_item_exist = 'false'
- for e in range(items_length):
- if itemsdict[items_list[command-1]][2] == itemsdict[items_list[e]][2]:
- item_target_noncombat(e)
- does_item_exist = 'true'
- return
- else: pass
- if does_item_exist == 'false':
- print("You don't have that item.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_item_exist = 'false'
- for e in range(items_length):
- if itemsdict[command][2] == itemsdict[items_list[e]][2]:
- item_target_noncombat(e)
- does_item_exist = 'true'
- return
- else: pass
- if does_item_exist == 'false':
- if command == 'Cancel':
- return
- else:
- print("You don't have that item.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("You don't have that item.")
- time.sleep(0.8)
- except:
- print("You don't have that item.")
- time.sleep(0.8)
- def view_items(i):
- global party_hero
- global party_hero_length
- global items_length
- global battle_loop1
- items_length = len(items_list)
- items_loop = 'true'
- while items_loop == 'true':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ You're fighting an enemy! ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ 1: ATTACK ³
- ³ ³ USING INVENTORY ³ ³ 2: INVENTORY ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ 3: ESCAPE ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ITEMS ÄÄÄÙ""")
- for m in range(8):
- try:
- print(" %s: %s - %s" %(m+1,itemsdict[items_list[m]][2],
- itemsdict[items_list[m]][0]))
- except:
- print(" ---")
- command = str(input("\nWhat item will %s use?\n>" % (charadict[party_hero[i]][6])))
- try:
- command = int(command)
- does_item_exist = 'false'
- for e in range(items_length):
- if itemsdict[items_list[command-1]][2] == itemsdict[items_list[e]][2]:
- item_target(e)
- does_item_exist = 'true'
- return
- else: pass
- if does_item_exist == 'false':
- print("You don't have that item.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_item_exist = 'false'
- for e in range(items_length):
- if itemsdict[command][2] == itemsdict[items_list[e]][2]:
- item_target(e)
- does_item_exist = 'true'
- return
- else: pass
- if does_item_exist == 'false':
- if command == 'Cancel':
- return
- else:
- print("You don't have that item.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("You don't have that item.")
- time.sleep(0.8)
- except:
- print("You don't have that item.")
- time.sleep(0.8)
- def item_target_noncombat(e):
- global party_hero
- global party_hero_length
- global items_length
- party_hero_length = len(party_hero)
- items_length = len(items_list)
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ Currently accessing inventory... ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ ³
- ³ ³ USING INVENTORY ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- if itemsdict[items_list[e]][4] == 'A':
- command = str(input("\nUse %s on whom?\n>" % (itemsdict[items_list[e]][2])))
- try:
- command = int(command)
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[party_hero[command-1]][6] == charadict[party_hero[f]][6]:
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- if charadict[party_hero[f]][4] > charadict[party_hero[f]][5]:
- charadict[party_hero[f]][4] = charadict[party_hero[f]][5]
- print("It had no effect...")
- time.sleep(0.8)
- elif charadict[party_hero[f]][3] > 3:
- charadict[party_hero[f]][3] = 3
- print("It had no effect...")
- time.sleep(0.8)
- else:
- print("%s\'s %s rose by %s!" % (charadict[party_hero[f]][6],
- stats_names[itemsdict[items_list[e]][3]],
- itemsdict[items_list[e]][1]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[command][6] == charadict[party_hero[f]][6]:
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- if charadict[party_hero[f]][4] > charadict[party_hero[f]][5]:
- charadict[party_hero[f]][4] = charadict[party_hero[f]][5]
- print("It had no effect...")
- time.sleep(0.8)
- elif charadict[party_hero[f]][3] > 3:
- charadict[party_hero[f]][3] = 3
- print("It had no effect...")
- time.sleep(0.8)
- else:
- print("%s\'s %s rose by %s!" % (charadict[party_hero[f]][6],
- stats_names[itemsdict[items_list[e]][3]],
- itemsdict[items_list[e]][1]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- except:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- elif itemsdict[items_list[e]][4] == 'B':
- command = str(input("\nEquip %s to whom?\n>" % (itemsdict[items_list[e]][2])))
- try:
- command = int(command)
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[party_hero[command-1]][6] == charadict[party_hero[f]][6]:
- if charadict[party_hero[f]][9] == 0:
- charadict[party_hero[f]][9] = 1
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- elif charadict[party_hero[f]][9] == 1:
- command = str(input("%s already has %s. Unequip? Y/N\n>" % (charadict[party_hero[f]][6], charadict[party_hero[f]][8])))
- try:
- command = command.capitalize()
- if command in ['y','Y']:
- charadict[party_hero[f]][8] = charadict[party_hero[f]][8].capitalize()
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] -= itemsdict[charadict[party_hero[f]][8]][1]
- items_list.append(charadict[party_hero[f]][8])
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- elif command in ['n','N']: pass
- except:
- print("That doesn't make sense.")
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[command][6] == charadict[party_hero[f]][6]:
- if charadict[party_hero[f]][9] == 0:
- charadict[party_hero[f]][9] = 1
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- elif charadict[party_hero[f]][9] == 1:
- command = str(input("%s already has %s. Unequip? Y/N\n>" % (charadict[party_hero[f]][6], charadict[party_hero[f]][8])))
- try:
- command = command.capitalize()
- if command in ['y','Y']:
- charadict[party_hero[f]][8] = charadict[party_hero[f]][8].capitalize()
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] -= itemsdict[charadict[party_hero[f]][8]][1]
- items_list.append(charadict[party_hero[f]][8])
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- break
- elif command in ['n','N','Cancel']: pass
- except:
- print("That doesn't make sense.")
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- except:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- def item_target(e):
- global party_hero_length
- global party_hero
- global items_length
- global battle_loop1
- items_length = len(items_list)
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ You're fighting an enemy! ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ 1: ATTACK ³
- ³ ³ USING INVENTORY ³ ³ 2: INVENTORY ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ 3: ESCAPE ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- if itemsdict[items_list[e]][4] == 'A':
- command = str(input("\nUse %s on whom?\n>" % (itemsdict[items_list[e]][2])))
- try:
- command = int(command)
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[party_hero[command-1]][6] == charadict[party_hero[f]][6]:
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- if charadict[party_hero[f]][4] > charadict[party_hero[f]][5]:
- charadict[party_hero[f]][4] = charadict[party_hero[f]][5]
- print("It had no effect...")
- time.sleep(0.8)
- elif charadict[party_hero[f]][3] > 3:
- charadict[party_hero[f]][3] = 3
- print("It had no effect...")
- time.sleep(0.8)
- else:
- print("%s\'s %s rose by %s!" % (charadict[party_hero[f]][6],
- stats_names[itemsdict[items_list[e]][3]],
- itemsdict[items_list[e]][1]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[command][6] == charadict[party_hero[f]][6]:
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- if charadict[party_hero[f]][4] > charadict[party_hero[f]][5]:
- charadict[party_hero[f]][4] = charadict[party_hero[f]][5]
- print("It had no effect...")
- time.sleep(0.8)
- elif charadict[party_hero[f]][3] > 3:
- charadict[party_hero[f]][3] = 3
- print("It had no effect...")
- time.sleep(0.8)
- else:
- print("%s\'s %s rose by %s!" % (charadict[party_hero[f]][6],
- stats_names[itemsdict[items_list[e]][3]],
- itemsdict[items_list[e]][1]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- except:
- print("\nThat character doesn't exist. D")
- time.sleep(0.8)
- elif itemsdict[items_list[e]][4] == 'B':
- command = str(input("\nEquip %s to whom?\n>" % (itemsdict[items_list[e]][2])))
- try:
- command = int(command)
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[party_hero[command-1]][6] == charadict[party_hero[f]][6]:
- if charadict[party_hero[f]][9] == 0:
- charadict[party_hero[f]][9] = 1
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- elif charadict[party_hero[f]][9] == 1:
- command = str(input("%s already has %s. Unequip? Y/N\n>" % (charadict[party_hero[f]][6], charadict[party_hero[f]][8])))
- try:
- command = command.capitalize()
- if command in ['y','Y']:
- charadict[party_hero[f]][8] = charadict[party_hero[f]][8].capitalize()
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] -= itemsdict[charadict[party_hero[f]][8]][1]
- items_list.append(charadict[party_hero[f]][8])
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- elif command in ['n','N']: pass
- except:
- print("That doesn't make sense.")
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- does_target_exist = 'false'
- for f in range(party_hero_length):
- if charadict[command][6] == charadict[party_hero[f]][6]:
- if charadict[party_hero[f]][9] == 0:
- charadict[party_hero[f]][9] = 1
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- elif charadict[party_hero[f]][9] == 1:
- command = str(input("%s already has %s. Unequip? Y/N\n>" % (charadict[party_hero[f]][6], charadict[party_hero[f]][8])))
- try:
- command = command.capitalize()
- if command in ['y','Y']:
- charadict[party_hero[f]][8] = charadict[party_hero[f]][8].capitalize()
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] -= itemsdict[charadict[party_hero[f]][8]][1]
- items_list.append(charadict[party_hero[f]][8])
- charadict[party_hero[f]][8] = itemsdict[items_list[e]][2]
- charadict[party_hero[f]][itemsdict[items_list[e]][3]] += itemsdict[items_list[e]][1]
- print("%s equipped %s." %(charadict[party_hero[f]][6],itemsdict[items_list[e]][2]))
- time.sleep(0.8)
- del items_list[e]
- does_target_exist = 'true'
- battle_loop1 = 'false'
- break
- elif command in ['n','N','Cancel']: pass
- except:
- print("That doesn't make sense.")
- time.sleep(0.8)
- else: pass
- if does_target_exist == 'false':
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- else: pass
- except:
- try:
- command = command.capitalize()
- if command == 'Cancel':
- return
- else:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- except:
- print("\nThat character doesn't exist.")
- time.sleep(0.8)
- def combat_death(i,k):
- global party_hero
- global party_enemy
- global battle_exp
- global party_hero_length
- global party_enemy_length
- if charadict[party_hero[i]][4] <= 0:
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s was defeated!" % (charadict[party_hero[i]][6]))
- time.sleep(0.8)
- else: pass
- if charadict_enemy[party_enemy[k]][4] <= 0:
- charadict_enemy[party_enemy[k]][4] = charadict_enemy[party_enemy[k]][5]
- battle_exp += charadict_enemy[party_enemy[k]][7]
- del party_enemy[k]
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- else: pass
- def combat_action(i,k):
- global party_hero
- global party_enemy
- multiple_attack = 'false'
- for j in range(charadict[party_hero[i]][3]):
- roll_global = randint(1,100)
- if multiple_attack == 'false':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s attacked %s..." % (charadict[party_hero[i]][6],
- charadict_enemy[party_enemy[k]][6]))
- else:
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s attacked again..." % (charadict[party_hero[i]][6]))
- time.sleep(0.8)
- if roll_global >= 95:
- print("and hit for 3 damage! Critical hit!")
- time.sleep(0.8)
- charadict_enemy[party_enemy[k]][4] -= 3
- multiple_attack = 'true'
- elif roll_global >= hit[charadict[party_hero[i]][1]-1][charadict_enemy[party_enemy[k]][2]-1]:
- print("and hit for 1 damage!")
- time.sleep(0.8)
- charadict_enemy[party_enemy[k]][4] -= 1
- multiple_attack = 'true'
- else:
- print("but missed!")
- time.sleep(0.8)
- break
- def combat_action_enemy(i,k):
- global party_hero
- global party_enemy
- multiple_attack = 'false'
- for j in range(charadict_enemy[party_enemy[k]][3]):
- roll_global = randint(1,100)
- if multiple_attack == 'false':
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s attacked %s..." % (charadict_enemy[party_enemy[k]][6],
- charadict[party_hero[i]][6]))
- else:
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ You're fighting an enemy! ³
- ³ ³ ³ ³ ³
- ³ ³ ÛßÛßÛ ³ ³ 1: ATTACK ³
- ³ ³ ÛÛßßßÛÛ ³ ³ 2: INVENTORY ³
- ³ ³ ÛÛÛÛÛÛÛÛÛ ³ ³ 3: ESCAPE ³
- ³ ³ ÛÛÛÛÛÛÛÛÛÛÛ ³ ³ ³
- ³ ³ ³ ³ ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s attacked again..." % (charadict[party_hero[i]][6]))
- time.sleep(0.8)
- if roll_global <= hit[charadict_enemy[party_enemy[k]][1]-1][charadict[party_hero[i]][2]-1]:
- print("and hit for 1 damage!")
- time.sleep(0.8)
- charadict[party_hero[i]][4] -= 1
- multiple_attack = 'true'
- else:
- print("but missed!")
- time.sleep(0.8)
- break
- def party_print():
- for q in range(4):
- try:
- if len(charadict[party_hero[q]][6]) == 10:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 9:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 8:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 7:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 6:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 5:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 4:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 3:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 2:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- elif len(charadict[party_hero[q]][6]) == 1:
- print(" %s Lv. %s HP: %s/%s STR: %s DEF: %s HIT: %s %s"
- %(charadict[party_hero[q]][6],
- charadict[party_hero[q]][7],
- charadict[party_hero[q]][4],
- charadict[party_hero[q]][5],
- charadict[party_hero[q]][1],
- charadict[party_hero[q]][2],
- charadict[party_hero[q]][3],
- charadict[party_hero[q]][8]))
- except:
- print(" ---")
- def party_gain_exp():
- global battle_exp
- global party_hero_length
- party_hero_length = len(party_hero)
- for i in range(party_hero_length):
- if charadict[party_hero[i]][4] > 0:
- charadict[party_hero[i]][10] -= battle_exp
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ You're fighting an enemy! ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ 1: ATTACK ³
- ³ ³ EXPERIENCE GAINED ³ ³ 2: INVENTORY ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ 3: ESCAPE ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s gained %s EXP!" %(charadict[party_hero[i]][6],battle_exp))
- time.sleep(0.8)
- if charadict[party_hero[i]][10] <= 0:
- charadict[party_hero[i]][7] += 1
- charadict[party_hero[i]][10] += charadict[party_hero[i]][7]*10
- clear_screen()
- print("""ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ You're fighting an enemy! ³
- ³ ³ ³
- ³ ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ ³ 1: ATTACK ³
- ³ ³ EXPERIENCE GAINED ³ ³ 2: INVENTORY ³
- ³ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ³ 3: ESCAPE ³
- ³ ³ ³
- ³ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ENEMY ÄÄÄÄ""")
- for q in range(3):
- try:
- print(" %s: %s" %(q+1,charadict_enemy[party_enemy[q]][6]))
- except:
- print(" ---")
- print("\n%s leveled up!" %(charadict[party_hero[i]][6]))
- time.sleep(0.8)
- if charadict[party_hero[i]][7] % 5 == 0:
- stat_roll = randint(1,4)
- if stat_roll == 1:
- charadict[party_hero[i]][1] += 1
- print("%s\'s STR rose by 1!" %(charadict[party_hero[i]][6]))
- time.sleep(0.8)
- elif stat_roll == 2:
- charadict[party_hero[i]][2] += 1
- print("%s\'s DEF rose by 1!" %(charadict[party_hero[i]][6]))
- time.sleep(0.8)
- elif stat_roll == 3:
- charadict[party_hero[i]][5] += 1
- print("%s\'s max HP rose by 1!" %(charadict[party_hero[i]][6]))
- time.sleep(0.8)
- elif stat_roll == 4:
- charadict[party_hero[i]][3] += 1
- if charadict[party_hero[i]][3] > 3:
- charadict[party_hero[i]][3] = 3
- else:
- print("%s\'s HIT rose by 1!" %(charadict[party_hero[i]][6]))
- time.sleep(0.8)
- else: pass
- else: pass
- else: pass
- battle_exp = 0
- def status():
- global current_face
- print("Current Position: (%s,%s)" %(current_position[1],current_position[0]))
- print("Facing %s" %(current_face))
- print(step)
- def search():
- print("This feature is not implemented yet.")
- def descend_floors():
- print("hehe")
- def change_floors():
- print("hehe")
- def open_door():
- global current_position
- print("Try opening the door? Y/N")
- command = msvcrt.getch()
- if command in [b'y',b'Y']:
- print("You opened the door.")
- time.sleep(0.8)
- if current_face == 'North':
- current_position[0] -= 2
- elif current_face == 'East':
- current_position[1] += 2
- elif current_face == 'South':
- current_position[0] += 2
- elif current_face == 'West':
- current_position[1] -= 2
- return
- elif command in [b'n',b'N']: return
- else: return
- def save_game():
- print("This feature is not implemented yet.")
- time.sleep(0.8)
- def title_screen_main():
- title_screen_loop1 = 'true'
- while title_screen_loop1 == 'true':
- input("""
- DRAGONISH QUEST
- v1.02
- Press ENTER to continue.\n""")
- clear_screen()
- time.sleep(0.01)
- title_screen_options()
- def title_screen_options():
- title_screen_loop2 = 'true'
- while title_screen_loop2 == 'true':
- clear_screen()
- print("""
- DRAGONISH QUEST
- v1.02
- 1: New Game
- 2: Continue
- 3: Quit\n""")
- command = msvcrt.getch()
- if command == b'1':
- print("Starting new game...")
- time.sleep(2)
- new_game()
- elif command == b'2':
- print("This feature is not implemented yet.")
- time.sleep(0.8)
- elif command == b'3':
- print("Shutting down...")
- time.sleep(3)
- sys.exit()
- else: pass
- def new_game():
- clear_screen()
- time.sleep(0.01)
- print("""
- ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ COMMAND ÄÄÄ¿
- ³ ³ ³
- ³ ³ Currently in town... ³
- ³ °°°°°°°°°°° ³ ³
- ³ °°ÛÛÛÛÛ°°°°°° ³ 1: INVENTORY ³
- ³ °°Û°Û°Û°Û°°°°°° ³ 2: SAVE ³
- ³ ÛÛÛÛÛÛÛÛÛ°ÛÛÛ ³ ³
- ³ Û ÛÛÛ Û°ÛÛÛ ³ ³
- ³ Û ÛÛÛ Û°ÛÛÛ ³ ³
- ³ ³ (Type CANCEL to cancel a command) ³
- ³ ³ ³
- ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ PARTY ÄÄÄÙ""")
- party_print()
- print("""ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ STATS ÄÄÄÄ""")
- status()
- time.sleep(3600)
- dungeon_main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement