Example #1
0
from room import Room
r = Room()
r.roomname = 'testroom2'
r.exits = {'up': 'testroom'}
r.roomdesc = """
As you look around, you notice there seems to be not much here.
it appears you can go up and get back to where you came from
there is a pile of gold and a large monster looking at you strangely.


"""
r.looktargets = {'gold': 'oooh. Shiny!\n\n',
 'monster': 'HOLY CRAP ITS A MONSTER\n\n',
 'pile': 'oooh. Shiny!\n\n',
 'pile of gold': 'oooh. Shiny!\n\n',
 }
r.talktargets = {'monster': 'test_monster'}
r.characters = ['test_monster']
Example #2
0
from room import Room
r = Room()
r.roomname = 'testroom'
r.exits = {'under table': 'testroom2'}
r.roomdesc = """
This room seems very empty except for a small round table
in the very center. This table is covered by a white tablecloth
and has a single mysterious object sitting exactly in the center
of the table. Also there is an old man. 

"""
r.looktargets = {'object': 'You cant seem to descern what it is\n\n',
 'old man': 'He appears very old. maybe you should talk to him?\n\n',
 'table': 'This seems to be a normal table\n\n',
 'tablecloth': 'perfect white linen tablecloth. Nice!\n\n\n',
}
r.talktargets = {'old man':'test_npc'}
r.characters = ['test_npc']