Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b1b4a99dff | ||
![]() |
183fe11075 | ||
![]() |
4a0bfb901d | ||
![]() |
1b96299edc | ||
![]() |
740833541b | ||
![]() |
e1bf16aa96 | ||
![]() |
6876dab8df |
@@ -120,10 +120,13 @@ class ActionBasics:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def personVonRaumNachRaum(self, person, vonRaumId, nachRaumId):
|
def personVonRaumNachRaum(self, person, vonRaumId, nachRaumId):
|
||||||
|
logging.debug(f'person Von Raum {vonRaumId} nach {nachRaumId}')
|
||||||
vonRaum = self.world.findRaumById(vonRaumId)
|
vonRaum = self.world.findRaumById(vonRaumId)
|
||||||
nachRaum = self.world.findRaumById(nachRaumId)
|
nachRaum = self.world.findRaumById(nachRaumId)
|
||||||
|
|
||||||
del vonRaum.personen[person.id]
|
if person.id in vonRaum.personen:
|
||||||
|
del vonRaum.personen[person.id]
|
||||||
|
|
||||||
nachRaum.personen[person.id] = person
|
nachRaum.personen[person.id] = person
|
||||||
person.raumid = nachRaumId
|
person.raumid = nachRaumId
|
||||||
|
|
||||||
|
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
from ActionBasics import ActionBasics
|
from ActionBasics import ActionBasics
|
||||||
|
import HilfeModul
|
||||||
|
|
||||||
class ActionModul(ActionBasics):
|
class ActionModul(ActionBasics):
|
||||||
|
|
||||||
@@ -14,6 +15,8 @@ class ActionModul(ActionBasics):
|
|||||||
def __init__(self, world):
|
def __init__(self, world):
|
||||||
|
|
||||||
super().__init__(world)
|
super().__init__(world)
|
||||||
|
self.hilfemodul = HilfeModul.HilfeModul(world)
|
||||||
|
|
||||||
|
|
||||||
def warte(self):
|
def warte(self):
|
||||||
print('Du wartest')
|
print('Du wartest')
|
||||||
@@ -141,12 +144,21 @@ class ActionModul(ActionBasics):
|
|||||||
self.setFehler('Du ziehst die Schwimmweste an.')
|
self.setFehler('Du ziehst die Schwimmweste an.')
|
||||||
elif self.isItem(item,self.world.ITEM_DIAMANT):
|
elif self.isItem(item,self.world.ITEM_DIAMANT):
|
||||||
if self.isAktuellerRaum(self.world.RAUM_MAUER):
|
if self.isAktuellerRaum(self.world.RAUM_MAUER):
|
||||||
|
geist = self.world.findPersonById(self.world.PERSON_GEIST)
|
||||||
self.world.printText('graböffnung')
|
self.world.printText('graböffnung')
|
||||||
self.world.aktuellerRaum.ausgaenge[self.world.SUED] = self.world.RAUM_GRAB
|
self.world.aktuellerRaum.ausgaenge[self.world.SUED] = self.world.RAUM_GRAB
|
||||||
|
self.personVonRaumNachRaum(geist, geist.raum.id, self.world.RAUM_GRAB)
|
||||||
|
self.world.printText('victory')
|
||||||
|
# self.world.aktuellerRaum.personen[self.world.PERSON_GEIST] = geist
|
||||||
self.ausDemInventar(item)
|
self.ausDemInventar(item)
|
||||||
else:
|
elif self.isItem(item,self.world.ITEM_BOXSACK):
|
||||||
|
self.schlage(parsedCommand)
|
||||||
|
else:
|
||||||
self.setFehler('Nichts passiert.')
|
self.setFehler('Nichts passiert.')
|
||||||
|
|
||||||
|
def about(self):
|
||||||
|
self.world.printAbout()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def baueBruecke(self):
|
def baueBruecke(self):
|
||||||
@@ -218,6 +230,10 @@ class ActionModul(ActionBasics):
|
|||||||
def schlage(self, parsedCommand):
|
def schlage(self, parsedCommand):
|
||||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||||
|
|
||||||
|
if item == None:
|
||||||
|
self.setFehler('Das sehe ich hier nicht.')
|
||||||
|
return
|
||||||
|
|
||||||
if item.id == self.world.ITEM_BOXSACK:
|
if item.id == self.world.ITEM_BOXSACK:
|
||||||
self.setFehler('Der Boxsack sagt: Hmm, hmm?')
|
self.setFehler('Der Boxsack sagt: Hmm, hmm?')
|
||||||
|
|
||||||
@@ -342,9 +358,7 @@ class ActionModul(ActionBasics):
|
|||||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||||
|
|
||||||
if item != None:
|
if item != None:
|
||||||
#alter Code!
|
pass
|
||||||
if item.id == 8:
|
|
||||||
self.world.stdscr.addstr('Du ziehst den Hebel und es passiert.... nichts!')
|
|
||||||
else:
|
else:
|
||||||
self.setFehler('Das sehe ich hier nicht.')
|
self.setFehler('Das sehe ich hier nicht.')
|
||||||
|
|
||||||
@@ -495,6 +509,8 @@ class ActionModul(ActionBasics):
|
|||||||
self.wechsleRaum(imwasser)
|
self.wechsleRaum(imwasser)
|
||||||
else:
|
else:
|
||||||
self.setFehler('Das Wasser ist viel zu tief, du würdest ertrinken.')
|
self.setFehler('Das Wasser ist viel zu tief, du würdest ertrinken.')
|
||||||
|
else:
|
||||||
|
self.setFehler('Hieh-Hüpf')
|
||||||
|
|
||||||
|
|
||||||
def sprich(self,parsedCommand):
|
def sprich(self,parsedCommand):
|
||||||
@@ -506,10 +522,7 @@ class ActionModul(ActionBasics):
|
|||||||
self.setFehler(f'{parsedCommand.gegenstand} ist nicht im Raum.')
|
self.setFehler(f'{parsedCommand.gegenstand} ist nicht im Raum.')
|
||||||
|
|
||||||
def hilfe(self,parsedCommand):
|
def hilfe(self,parsedCommand):
|
||||||
if parsedCommand.gegenstand == 'befehle':
|
self.hilfemodul.hilfe(parsedCommand.gegenstand)
|
||||||
self.world.printBefehle()
|
|
||||||
else:
|
|
||||||
self.world.printText('hilfe')
|
|
||||||
|
|
||||||
def geheNachItem(self,parsedCommand):
|
def geheNachItem(self,parsedCommand):
|
||||||
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
item = self.world.findItemInAktuellerRaum(parsedCommand.gegenstand)
|
||||||
@@ -552,6 +565,9 @@ class ActionModul(ActionBasics):
|
|||||||
self.geheNach(richtung)
|
self.geheNach(richtung)
|
||||||
elif richtung == 'rauf':
|
elif richtung == 'rauf':
|
||||||
self.rauf()
|
self.rauf()
|
||||||
|
self.geheNach(richtung)
|
||||||
|
elif richtung == 'runter':
|
||||||
|
self.runter()
|
||||||
else:
|
else:
|
||||||
self.geheNachItem(parsedCommand)
|
self.geheNachItem(parsedCommand)
|
||||||
|
|
||||||
@@ -623,6 +639,7 @@ class ActionModul(ActionBasics):
|
|||||||
logging.debug(f'gefundener Ausgang: {ausgang}')
|
logging.debug(f'gefundener Ausgang: {ausgang}')
|
||||||
if ausgang != None:
|
if ausgang != None:
|
||||||
raum = self.world.sucheRaum(ausgang)
|
raum = self.world.sucheRaum(ausgang)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logging.warn('Keine AusgandId gefunde')
|
logging.warn('Keine AusgandId gefunde')
|
||||||
self.setFehler("In diese Richtung gibt's keine Ausgang!")
|
self.setFehler("In diese Richtung gibt's keine Ausgang!")
|
||||||
@@ -653,10 +670,6 @@ class ActionModul(ActionBasics):
|
|||||||
def runter(self):
|
def runter(self):
|
||||||
self.geheNach(self.world.RUNTER)
|
self.geheNach(self.world.RUNTER)
|
||||||
|
|
||||||
def about(self):
|
|
||||||
print("Tomb Version " + self.world.VERSION)
|
|
||||||
self.world.waitForCR
|
|
||||||
|
|
||||||
def raumaction(self):
|
def raumaction(self):
|
||||||
raumid = self.world.aktuellerRaum.id
|
raumid = self.world.aktuellerRaum.id
|
||||||
|
|
||||||
|
13
BewegungsModul.py
Normal file
13
BewegungsModul.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
# Bewegungsmodul - Steuert die Bewegungen aller NPC.
|
||||||
|
import logging
|
||||||
|
|
||||||
|
class BewegungsModul:
|
||||||
|
|
||||||
|
|
||||||
|
def __init__(self, world):
|
||||||
|
|
||||||
|
self.world = world
|
||||||
|
|
||||||
|
|
||||||
|
def bewegeNPCS(self):
|
||||||
|
skip
|
9
ConfigError.py
Normal file
9
ConfigError.py
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
class ConfigError(Exception):
|
||||||
|
def __init_(self,message):
|
||||||
|
self.message = message
|
||||||
|
super().__init(message)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.message
|
||||||
|
|
||||||
|
|
29
FileReader.py
Normal file
29
FileReader.py
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
class FileReader() :
|
||||||
|
|
||||||
|
__zeilen__ = []
|
||||||
|
__dateiname__ = ""
|
||||||
|
def __init__(self,dateiname):
|
||||||
|
self.__zeilen__ = []
|
||||||
|
self.__dateiname__ = dateiname
|
||||||
|
|
||||||
|
|
||||||
|
def lines(self):
|
||||||
|
with open(self.__dateiname__,"r" ) as file:
|
||||||
|
for zeile in file:
|
||||||
|
self.__zeilen__.append(zeile.strip())
|
||||||
|
return self.__zeilen__
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.__zeilen__)
|
||||||
|
|
||||||
|
class CsvReader(FileReader):
|
||||||
|
def __init__(self,dateiname):
|
||||||
|
super().__init__(dateiname)
|
||||||
|
|
||||||
|
def lines(self):
|
||||||
|
zeilen = super().lines()
|
||||||
|
liste = []
|
||||||
|
|
||||||
|
return [zeile.split() for zeile in zeilen]
|
||||||
|
# for zeile in zeilen:
|
||||||
|
# liste.append(zeile.split(","))
|
||||||
|
# return liste
|
77
HilfeModul.py
Normal file
77
HilfeModul.py
Normal file
@@ -0,0 +1,77 @@
|
|||||||
|
import logging
|
||||||
|
import FileReader
|
||||||
|
from os.path import exists
|
||||||
|
|
||||||
|
class HilfeModul():
|
||||||
|
|
||||||
|
def isBlank(self,str):
|
||||||
|
if str != None and len(str.strip()) == 0:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
|
def __init__(self, world):
|
||||||
|
|
||||||
|
self.world = world
|
||||||
|
|
||||||
|
self.check()
|
||||||
|
|
||||||
|
def readTxt(self, datei):
|
||||||
|
logging.debug(f'öffne Hilfedatei {datei}')
|
||||||
|
reader = FileReader.FileReader(datei)
|
||||||
|
|
||||||
|
lines = reader.lines()
|
||||||
|
reader = None
|
||||||
|
# reader.close()
|
||||||
|
|
||||||
|
return lines
|
||||||
|
|
||||||
|
def check(self):
|
||||||
|
|
||||||
|
for id in self.world.befehle:
|
||||||
|
befehl = self.world.befehle[id]
|
||||||
|
|
||||||
|
helptxt = self.baueHilfedatei(befehl.key)
|
||||||
|
|
||||||
|
logging.debug(f'suche Hilfedatei {helptxt}')
|
||||||
|
if not exists(helptxt):
|
||||||
|
logging.warn(f'Hilfedatei {helptxt} existiert nicht')
|
||||||
|
|
||||||
|
|
||||||
|
def hilfe(self, command):
|
||||||
|
generalHelp = True
|
||||||
|
if not self.isBlank(command):
|
||||||
|
helptxt = self.findHilfetext(command)
|
||||||
|
|
||||||
|
logging.debug(f'Hilfetext: {helptxt}')
|
||||||
|
|
||||||
|
if helptxt != None:
|
||||||
|
lines = self.readTxt(helptxt)
|
||||||
|
logging.debug(f'lines: {lines}')
|
||||||
|
self.world.printHilfe(lines)
|
||||||
|
generalHelp = False
|
||||||
|
|
||||||
|
if generalHelp:
|
||||||
|
if command == 'befehle':
|
||||||
|
self.world.printBefehle()
|
||||||
|
else:
|
||||||
|
self.world.printText('hilfe')
|
||||||
|
|
||||||
|
def baueHilfedatei(self, key):
|
||||||
|
return f'ascii/hilfe/cmd-{key}.txt'
|
||||||
|
def findHilfetext(self, command):
|
||||||
|
|
||||||
|
logging.debug(f'suche Hilfetext zu {command}')
|
||||||
|
|
||||||
|
for cmdid in range(0,len(self.world.befehle)):
|
||||||
|
if str(cmdid) in self.world.befehle:
|
||||||
|
befehl = self.world.befehle[str(cmdid)]
|
||||||
|
|
||||||
|
logging.debug(f'cmdid= {cmdid}')
|
||||||
|
|
||||||
|
logging.debug(f'vergleiche {befehl.name.lower()} mit {command.lower()}')
|
||||||
|
|
||||||
|
if befehl.name.lower() == command.lower():
|
||||||
|
logging.debug(f'gefundener Befehl: {befehl.name}')
|
||||||
|
return self.baueHilfedatei(befehl.key)
|
||||||
|
|
||||||
|
return None
|
@@ -19,11 +19,11 @@ class TestModule:
|
|||||||
|
|
||||||
def testOeffneTruhe(self):
|
def testOeffneTruhe(self):
|
||||||
logging.debug('===== Beginn Testmodul Truhe =====')
|
logging.debug('===== Beginn Testmodul Truhe =====')
|
||||||
pcmd = self.parseInput('nimm Truhe')
|
|
||||||
|
|
||||||
#Auf den Dachboden
|
#Auf den Dachboden
|
||||||
self.ac.rauf()
|
self.ac.rauf()
|
||||||
self.schrittzaehler += 1
|
self.schrittzaehler += 1
|
||||||
|
pcmd = self.parseInput('nimm Truhe')
|
||||||
self.ac.nimm(pcmd)
|
self.ac.nimm(pcmd)
|
||||||
self.schrittzaehler += 1
|
self.schrittzaehler += 1
|
||||||
|
|
||||||
|
35
World.py
35
World.py
@@ -15,12 +15,33 @@ class World:
|
|||||||
def clearScreen(self):
|
def clearScreen(self):
|
||||||
self.stdscr.clear()
|
self.stdscr.clear()
|
||||||
|
|
||||||
|
def printAbout(self):
|
||||||
|
s = self.stdscr
|
||||||
|
|
||||||
|
self.clearScreen()
|
||||||
|
s.addstr(1,0,'Das Grab des Azteken', curses.color_pair(2))
|
||||||
|
s.addstr(2,0,f'Version {self.VERSION}')
|
||||||
|
self.waitForCR()
|
||||||
def printText(self,textid):
|
def printText(self,textid):
|
||||||
self.clearScreen()
|
self.clearScreen()
|
||||||
self.stdscr.addstr(1,0,self.texte[textid].name)
|
self.stdscr.addstr(1,0,self.texte[textid].name)
|
||||||
self.waitForCR()
|
self.waitForCR()
|
||||||
self.printRaum()
|
self.printRaum()
|
||||||
|
|
||||||
|
def printHilfe(self,lines):
|
||||||
|
|
||||||
|
self.clearScreen()
|
||||||
|
s = self.stdscr
|
||||||
|
s.addstr(1,0, lines[0])
|
||||||
|
s.addstr(3,0, lines[2], curses.color_pair(2)) # Befehl
|
||||||
|
s.addstr(4,0, lines[3]) #Parameter
|
||||||
|
s.addstr(5,0, lines[4]) # siehe auch
|
||||||
|
s.addstr(8,0, lines[7]) #Text 1
|
||||||
|
s.addstr(9,0, lines[8]) #Text 2
|
||||||
|
if len(lines) == 10 :
|
||||||
|
s.addstr(10,0, lines[9]) #Text 3
|
||||||
|
self.waitForCR()
|
||||||
|
|
||||||
def printKarte(self):
|
def printKarte(self):
|
||||||
self.clearScreen()
|
self.clearScreen()
|
||||||
s = self.stdscr
|
s = self.stdscr
|
||||||
@@ -244,6 +265,16 @@ class World:
|
|||||||
return person
|
return person
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
def findPersonById(self,persid):
|
||||||
|
|
||||||
|
for id in self.personen:
|
||||||
|
person = self.personen[id]
|
||||||
|
|
||||||
|
if person.id == persid:
|
||||||
|
return person
|
||||||
|
|
||||||
|
return None
|
||||||
|
|
||||||
def findPersonImAktuellenRaumById(self, personid):
|
def findPersonImAktuellenRaumById(self, personid):
|
||||||
raum = self.aktuellerRaum
|
raum = self.aktuellerRaum
|
||||||
|
|
||||||
@@ -376,7 +407,9 @@ class World:
|
|||||||
self.WEST = '3'
|
self.WEST = '3'
|
||||||
self.RAUF = '4'
|
self.RAUF = '4'
|
||||||
self.RUNTER = '5'
|
self.RUNTER = '5'
|
||||||
self.VERSION = '0.5'
|
|
||||||
|
self.VERSION = '0.91'
|
||||||
|
|
||||||
self.ITEM_TISCH = '1'
|
self.ITEM_TISCH = '1'
|
||||||
self.ITEM_LEITER = '2'
|
self.ITEM_LEITER = '2'
|
||||||
self.ITEM_TRUHE = '3'
|
self.ITEM_TRUHE = '3'
|
||||||
|
@@ -30,6 +30,17 @@ class WorldParser():
|
|||||||
logging.error(f'keine Beschreibung für Item {itemid} - {item.name}')
|
logging.error(f'keine Beschreibung für Item {itemid} - {item.name}')
|
||||||
raise ValueError('Text ' +textid + ' fehlt')
|
raise ValueError('Text ' +textid + ' fehlt')
|
||||||
|
|
||||||
|
for raumid in self.world.raumliste:
|
||||||
|
raum = self.world.raumliste[raumid]
|
||||||
|
textid = 'raum-' +raumid
|
||||||
|
|
||||||
|
if textid in self.world.raumliste:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
|
logging.warn(f' keine Beschreibung für Raum {raumid} - {raum.name}')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def parseWorld(self,filename):
|
def parseWorld(self,filename):
|
||||||
|
|
||||||
@@ -83,6 +94,9 @@ class WorldParser():
|
|||||||
key = befehl.attrib['key']
|
key = befehl.attrib['key']
|
||||||
command = Befehl(name,id,key)
|
command = Befehl(name,id,key)
|
||||||
|
|
||||||
|
if id in self.world.befehle:
|
||||||
|
raise ValueError(f'doppelte Befehl-Id {id}')
|
||||||
|
|
||||||
self.world.befehle[id] = command
|
self.world.befehle[id] = command
|
||||||
# Adjektive
|
# Adjektive
|
||||||
for adj in root.findall('adjektive/adjektiv'):
|
for adj in root.findall('adjektive/adjektiv'):
|
||||||
|
11
ascii/hilfe/cmd-0.txt
Normal file
11
ascii/hilfe/cmd-0.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: ende, quit
|
||||||
|
Parameter: -keine
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Beendet das Programm.
|
||||||
|
|
||||||
|
|
||||||
|
|
14
ascii/hilfe/cmd-1.txt
Normal file
14
ascii/hilfe/cmd-1.txt
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: geh, gehe
|
||||||
|
Parameter: Richtung, Objekt
|
||||||
|
siehe auch: süd, nord, west, ost
|
||||||
|
|
||||||
|
|
||||||
|
geht in die angegebene Richtung oder das Objekt. Ist der Ausgang in die Richtung frei, landest du
|
||||||
|
im nächsten Raum.
|
||||||
|
|
||||||
|
mögliche Richtungen sind: Nord, Ost, Süd, West, Rauf und Runter
|
||||||
|
|
||||||
|
|
||||||
|
|
9
ascii/hilfe/cmd-10.txt
Normal file
9
ascii/hilfe/cmd-10.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: runter
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe,klettere
|
||||||
|
|
||||||
|
|
||||||
|
Geht runter, sofern dort ein Ausgang ist.
|
||||||
|
|
9
ascii/hilfe/cmd-12.txt
Normal file
9
ascii/hilfe/cmd-12.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: inventar
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Listet die Gegenstände im Inventar auf.
|
||||||
|
|
9
ascii/hilfe/cmd-13.txt
Normal file
9
ascii/hilfe/cmd-13.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: about
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Git Informationen zum Programm.
|
||||||
|
|
9
ascii/hilfe/cmd-14.txt
Normal file
9
ascii/hilfe/cmd-14.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: verliere
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch: nimm
|
||||||
|
|
||||||
|
|
||||||
|
entfernt einen Gegenstand aus dem Inventar und legt ihn im aktuellen Raum ab.
|
||||||
|
|
9
ascii/hilfe/cmd-15.txt
Normal file
9
ascii/hilfe/cmd-15.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: warte
|
||||||
|
Parameter: -keiner
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Tut nix.
|
||||||
|
|
9
ascii/hilfe/cmd-16.txt
Normal file
9
ascii/hilfe/cmd-16.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: drücke
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Drückt auf einen Gegenstand imInventar oder aktuellen Raum.
|
||||||
|
|
9
ascii/hilfe/cmd-17.txt
Normal file
9
ascii/hilfe/cmd-17.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: ziehe
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch: drücke
|
||||||
|
|
||||||
|
|
||||||
|
Zieht an einem Objekt im Inventar oder aktuellen Raum.
|
||||||
|
|
9
ascii/hilfe/cmd-19.txt
Normal file
9
ascii/hilfe/cmd-19.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: stelle, stell
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Stellt ein Objekt im Inventar ab.
|
||||||
|
|
12
ascii/hilfe/cmd-2.txt
Normal file
12
ascii/hilfe/cmd-2.txt
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: nimm
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Nimmt einen Gegenstand im aktuellen Raum auf und verstaut ihn in deinem Inventar.
|
||||||
|
Hinweis: Einge Gegenstände können nicht mitgenommen werden.
|
||||||
|
|
||||||
|
|
||||||
|
|
10
ascii/hilfe/cmd-20.txt
Normal file
10
ascii/hilfe/cmd-20.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: öffne
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch: nimm
|
||||||
|
|
||||||
|
|
||||||
|
Öffnet einen Behälter oder eine Tür.
|
||||||
|
Der Gegenstand muss sich im Inventar oder aktuellen Raum befinden.
|
||||||
|
|
11
ascii/hilfe/cmd-21.txt
Normal file
11
ascii/hilfe/cmd-21.txt
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: klettere
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch: rauf, runter
|
||||||
|
|
||||||
|
|
||||||
|
Klettert an einem Gegenstand rauf oder runter.
|
||||||
|
Der Gegenstand muss sich im aktuellen Raum befinden.
|
||||||
|
Hinweis: Manchmal muss der Gegenstand erst kletterbar gemacht werden.
|
||||||
|
|
10
ascii/hilfe/cmd-22.txt
Normal file
10
ascii/hilfe/cmd-22.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: fange
|
||||||
|
Parameter: Person
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Fängt die angebene Person. Möglicherweise benötigst du einen weiteren
|
||||||
|
Gegenstand zum Fangen.
|
||||||
|
|
9
ascii/hilfe/cmd-23.txt
Normal file
9
ascii/hilfe/cmd-23.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: hilfe
|
||||||
|
Parameter: Befehl
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Zeigt Hilfe zu einem Befehl an.
|
||||||
|
|
10
ascii/hilfe/cmd-24.txt
Normal file
10
ascii/hilfe/cmd-24.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: schlage, boxe
|
||||||
|
Parameter: Genstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Schlägt auf einen Gegenstand im aktuellen Raum.
|
||||||
|
Achte darauf, wen oder was du schlägst!
|
||||||
|
|
10
ascii/hilfe/cmd-25.txt
Normal file
10
ascii/hilfe/cmd-25.txt
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: sprich
|
||||||
|
Parameter: Person
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Spricht eine Person im aktuellen Raum an. Dadurch könntest du an spielentscheidende
|
||||||
|
Informationen kommen.
|
||||||
|
|
9
ascii/hilfe/cmd-26.txt
Normal file
9
ascii/hilfe/cmd-26.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: leere
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Leert einen Gegenstand im Inventar bzw. schüttet seinen Inhalt aus.
|
||||||
|
|
9
ascii/hilfe/cmd-27.txt
Normal file
9
ascii/hilfe/cmd-27.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: fülle, fuelle
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Füllt einen Gegenstand im Inventar. Das einzufüllende Material muss im aktuellen Raum vorhanden sein.
|
||||||
|
|
9
ascii/hilfe/cmd-28.txt
Normal file
9
ascii/hilfe/cmd-28.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: wirf
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Wirft einen Gegenstand im Inventar.
|
||||||
|
|
9
ascii/hilfe/cmd-29.txt
Normal file
9
ascii/hilfe/cmd-29.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: gib
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Gibt einen Gegenstand aus dem Inventar an eine Person im aktuellen Raum.
|
||||||
|
|
13
ascii/hilfe/cmd-3.txt
Normal file
13
ascii/hilfe/cmd-3.txt
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: untersuche,schaue
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Gibt dir eine genauere Beschreibung eines Gegenstands. Der Gegenstand muss sich in deinem Inventar
|
||||||
|
oder im aktuellen Raum befinden.
|
||||||
|
Hinweis: Lässt du das Objekt weg, gibt es eine Beschreibung des aktuellen Raums.
|
||||||
|
|
||||||
|
|
||||||
|
|
9
ascii/hilfe/cmd-30.txt
Normal file
9
ascii/hilfe/cmd-30.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: entzünde
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Entzündet einenbrennbaren Gegestand aus dem Inventar. Feuer bedeutet Licht.
|
||||||
|
|
9
ascii/hilfe/cmd-31.txt
Normal file
9
ascii/hilfe/cmd-31.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: lösche
|
||||||
|
Parameter: Gegenstand
|
||||||
|
siehe auch: entzünde
|
||||||
|
|
||||||
|
|
||||||
|
Löscht einen brennden Gegenstand im Inventar.
|
||||||
|
|
9
ascii/hilfe/cmd-32.txt
Normal file
9
ascii/hilfe/cmd-32.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: spring
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Springt in die Höhe oder über etwas rüber oder in etwas hinein.
|
||||||
|
|
9
ascii/hilfe/cmd-4.txt
Normal file
9
ascii/hilfe/cmd-4.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: benutze
|
||||||
|
Parameter: Objekt
|
||||||
|
siehe auch:
|
||||||
|
|
||||||
|
|
||||||
|
Benutzt einen Gegenstand aus dem Inventar. Unter Umständen kann ein spezieller Gegenstand nur
|
||||||
|
in bestimmten Räumen benutzt werden.
|
9
ascii/hilfe/cmd-5.txt
Normal file
9
ascii/hilfe/cmd-5.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: nord
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe
|
||||||
|
|
||||||
|
|
||||||
|
Geht nach Norden, sofern dort ein Ausgang ist.
|
||||||
|
|
9
ascii/hilfe/cmd-6.txt
Normal file
9
ascii/hilfe/cmd-6.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: süd, süden
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe
|
||||||
|
|
||||||
|
|
||||||
|
Geht nach Süden, sofern dort ein Ausgang ist.
|
||||||
|
|
7
ascii/hilfe/cmd-7.txt
Normal file
7
ascii/hilfe/cmd-7.txt
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: nord
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe
|
||||||
|
|
||||||
|
Geht nach Norden, sofern dort ein Ausgang ist.
|
9
ascii/hilfe/cmd-8.txt
Normal file
9
ascii/hilfe/cmd-8.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: west, westen
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe
|
||||||
|
|
||||||
|
|
||||||
|
Geht nach Westen, sofern dort ein Ausgang ist.
|
||||||
|
|
9
ascii/hilfe/cmd-9.txt
Normal file
9
ascii/hilfe/cmd-9.txt
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
Hilfeseite
|
||||||
|
|
||||||
|
Befehl: rauf
|
||||||
|
Parameter: -keiner-
|
||||||
|
siehe auch: gehe, klettere
|
||||||
|
|
||||||
|
|
||||||
|
Geht rauf, sofern dort ein Ausgang ist.
|
||||||
|
|
28
world.xml
28
world.xml
@@ -288,7 +288,7 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
|
|
||||||
<commandset>
|
<commandset>
|
||||||
<command name='quit' id='0' key='0' />
|
<command name='quit' id='0' key='0' />
|
||||||
<command name='ende' id='0' key='0' />
|
<command name='ende' id='43' key='0' />
|
||||||
<command name='geh' id='1' key='1' />
|
<command name='geh' id='1' key='1' />
|
||||||
<command name='gehe' id='27' key='1' />
|
<command name='gehe' id='27' key='1' />
|
||||||
<command name='nimm' id='2' key='2' />
|
<command name='nimm' id='2' key='2' />
|
||||||
@@ -306,10 +306,8 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
<command name='verliere' id='15' key='14' />
|
<command name='verliere' id='15' key='14' />
|
||||||
<command name='warte' id='16' key='15' />
|
<command name='warte' id='16' key='15' />
|
||||||
<command name='drücke' id='17' key='16' />
|
<command name='drücke' id='17' key='16' />
|
||||||
<command name='ende' id='18' key='0' />
|
|
||||||
<command name='schaue' id='18' key='3' />
|
<command name='schaue' id='18' key='3' />
|
||||||
<command name='ziehe' id='19' key='17' />
|
<command name='ziehe' id='19' key='17' />
|
||||||
<command name='benutze' id='20' key='18' />
|
|
||||||
<command name='stelle' id='21' key='19' />
|
<command name='stelle' id='21' key='19' />
|
||||||
<command name='stell' id='22' key='19' />
|
<command name='stell' id='22' key='19' />
|
||||||
<command name='öffne' id='23' key='20' />
|
<command name='öffne' id='23' key='20' />
|
||||||
@@ -319,7 +317,7 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
<command name='schlage' id='29' key='24' />
|
<command name='schlage' id='29' key='24' />
|
||||||
<command name='boxe' id='30' key='24' />
|
<command name='boxe' id='30' key='24' />
|
||||||
<command name='norden' id='31' key='5' />
|
<command name='norden' id='31' key='5' />
|
||||||
<command name='süd' id='32' key='7' />
|
<command name='süden' id='32' key='7' />
|
||||||
<command name='westen' id='33' key='8' />
|
<command name='westen' id='33' key='8' />
|
||||||
<command name='sprich' id='34' key='25' />
|
<command name='sprich' id='34' key='25' />
|
||||||
<command name='leere' id='35' key='26' />
|
<command name='leere' id='35' key='26' />
|
||||||
@@ -393,6 +391,8 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
<item name='Loch' id='44' display='' raum='30' imobil='true' adjektiv='0' msgid='8' visible='true' />
|
<item name='Loch' id='44' display='' raum='30' imobil='true' adjektiv='0' msgid='8' visible='true' />
|
||||||
<item name='Plakette' id='45' display='' raum='42' imobil='true' adjektiv='0' msgid='2' visible='true' />
|
<item name='Plakette' id='45' display='' raum='42' imobil='true' adjektiv='0' msgid='2' visible='true' />
|
||||||
<item name='Kühlschrank' id='46' display='' raum='43' imobil='true' adjektiv='0' msgid='2' visible='true' />
|
<item name='Kühlschrank' id='46' display='' raum='43' imobil='true' adjektiv='0' msgid='2' visible='true' />
|
||||||
|
<item name='Uhr' id='47' display='' raum='43' imobil='true' adjektiv='0' msgid='2' visible='true' />
|
||||||
|
<item name='Schriftzug' id='48' display='' raum='39' imobil='true' adjektiv='0' msgid='2' visible='false' />
|
||||||
|
|
||||||
</items>
|
</items>
|
||||||
<personen>
|
<personen>
|
||||||
@@ -558,6 +558,12 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
<text id='item-46'>
|
<text id='item-46'>
|
||||||
Wie überraschend, er ist weiß.
|
Wie überraschend, er ist weiß.
|
||||||
</text>
|
</text>
|
||||||
|
<text id='item-47'>
|
||||||
|
Die Uhr ist bei 22:04 Uhr stehen geblieben.
|
||||||
|
</text>
|
||||||
|
<text id='item-48'>
|
||||||
|
Über die ganze Wand hat jemand "Romanum ite domum" gepinselt.
|
||||||
|
</text>
|
||||||
<text id='raum-21'>
|
<text id='raum-21'>
|
||||||
Im Tunnel ist es zu dunkel, um etwas zu sehen. Aber du spürst einen leichten Wind, der von Osten durch den Tunnel weht.
|
Im Tunnel ist es zu dunkel, um etwas zu sehen. Aber du spürst einen leichten Wind, der von Osten durch den Tunnel weht.
|
||||||
</text>
|
</text>
|
||||||
@@ -567,6 +573,12 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
<text id='raum-31-1'>
|
<text id='raum-31-1'>
|
||||||
Im Licht der Fackel erkennst du, dass das Loch sorgfältig gegraben und mit Schiffsplanken abgestützt wurde.
|
Im Licht der Fackel erkennst du, dass das Loch sorgfältig gegraben und mit Schiffsplanken abgestützt wurde.
|
||||||
</text>
|
</text>
|
||||||
|
<text id='raum-43'>
|
||||||
|
Eine praktisch eingerichtete Küche. An der Wand hängt eine Uhr, ein Kühlschrank steht gegenüber der Tür.
|
||||||
|
</text>
|
||||||
|
<text id='npc-5'>
|
||||||
|
Muuuh.
|
||||||
|
</text>
|
||||||
<text id='npc-6'>
|
<text id='npc-6'>
|
||||||
Der Zwerg klappert vor Kälte mit den Zähnen und kann nicht sprechen.
|
Der Zwerg klappert vor Kälte mit den Zähnen und kann nicht sprechen.
|
||||||
</text>
|
</text>
|
||||||
@@ -589,7 +601,7 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
Die Liste der möglichen Befehle erhälst du mit "hilfe befehle".
|
Die Liste der möglichen Befehle erhälst du mit "hilfe befehle".
|
||||||
Die Aufgabe gibt dir jemand im Spiel.
|
Die Aufgabe gibt dir jemand im Spiel.
|
||||||
</text>
|
</text>
|
||||||
<text id='geist'>
|
<text id='npc-4'>
|
||||||
Ich bin der Geist deines Großonkels Henry. Mein ganzes Leben habe ich damit verbracht, das Himmelsgrab der Azteken zu finden, wie zuvor
|
Ich bin der Geist deines Großonkels Henry. Mein ganzes Leben habe ich damit verbracht, das Himmelsgrab der Azteken zu finden, wie zuvor
|
||||||
mein Vater.
|
mein Vater.
|
||||||
Leider erfolglos. Die Karte, die ich mir mühsam aus Hinweisen erstellt hatte, wurde mir von einem hinterlistigen Zwerg entwendet.
|
Leider erfolglos. Die Karte, die ich mir mühsam aus Hinweisen erstellt hatte, wurde mir von einem hinterlistigen Zwerg entwendet.
|
||||||
@@ -609,5 +621,11 @@ Du stehst in der Küche. In der Ecke steht ein Kühlschrank.
|
|||||||
Also du den Diamant in den Sockel setzt, schiebt sich ein Teil der Mauer knirschend nach hinten und gibt einen Durchgang frei. Staubige Luft
|
Also du den Diamant in den Sockel setzt, schiebt sich ein Teil der Mauer knirschend nach hinten und gibt einen Durchgang frei. Staubige Luft
|
||||||
quillt dir entgegen.
|
quillt dir entgegen.
|
||||||
</text>
|
</text>
|
||||||
|
<text id='victory'>
|
||||||
|
Henry erscheint und sagt:
|
||||||
|
"Es war sehr beeindruckend, deine Suche zu verfolgen. Du hast meine Aufgabe erfolgreich zu Ende geführt."
|
||||||
|
"Endlich kann ich meine Frieden finden."
|
||||||
|
</text>
|
||||||
|
|
||||||
</texte>
|
</texte>
|
||||||
</welt>
|
</welt>
|
||||||
|
Reference in New Issue
Block a user