Example #1
0
lobby.add_parent(room_class)
lobby.add_property(
    "description",
    **dict(
        owner_id=wizard.get_id(),
        value="""A dusty old waiting area, every minute spent in this room
feels like an eternity.
""",
    )
)

wizard.set_location(laboratory)

wizard.set_player(True, is_wizard=True, passwd="wizard")

wizard_class.add_verb("reload", **dict(ability=True, filename=bootstrap.get_verb_path("wizard_class_reload.py")))

system.add_verb("authenticate", **dict(method=True, filename=bootstrap.get_verb_path("system_authenticate.py")))

system.add_verb("connect", **dict(method=True, filename=bootstrap.get_verb_path("system_connect.py"))).allow(
    "everyone", "execute"
)

system.add_verb("login", **dict(method=True, filename=bootstrap.get_verb_path("system_login.py"))).allow(
    "everyone", "execute"
)

system.add_verb("logout", **dict(method=True, filename=bootstrap.get_verb_path("system_logout.py"))).allow(
    "everyone", "execute"
)
Example #2
0
    **dict(
        owner_id=wizard.get_id(),
        value="""A dusty old waiting area, every minute spent in this room
feels like an eternity.
""",
    ))

wizard.set_location(laboratory)

wizard.set_player(True, is_wizard=True, passwd='wizard')

wizard_class.add_verb(
    'reload',
    **dict(
        ability=True,
        filename=bootstrap.get_verb_path('wizard_class_reload.py'),
    ))

system.add_verb(
    'authenticate',
    **dict(
        method=True,
        filename=bootstrap.get_verb_path('system_authenticate.py'),
    ))

system.add_verb(
    'connect',
    **dict(
        method=True,
        filename=bootstrap.get_verb_path('system_connect.py'),
    )).allow('everyone', 'execute')
Example #3
0
room = exchange.instantiate('object', name='The First Room', unique_name=True)
room.set_owner(wizard)

user = exchange.instantiate('object', name= 'User', unique_name=True)
user.set_owner(user)
user.add_parent(player_defaults)

wizard.set_location(room)
user.set_location(room)

wizard.set_player(True, is_wizard=True, passwd='wizard')
user.set_player(True, passwd='user')

wizard.add_verb('@edit', **dict(
    ability        = True,
    filename    = bootstrap.get_verb_path('wizard_class_edit.py'),
))

wizard.add_verb('@exec', **dict(
    ability        = True,
    filename    = bootstrap.get_verb_path('wizard_class_exec.py'),
)).allow('wizards', 'execute')

wizard.add_verb('@eval', **dict(
    ability        = True,
    filename    = bootstrap.get_verb_path('wizard_class_eval.py'),
)).allow('wizards', 'execute')

player_defaults.add_verb('@set', **dict(
    ability        = True,
    filename    = bootstrap.get_verb_path('player_class_set.py'),
Example #4
0
user = exchange.instantiate('object', name='User', unique_name=True)
user.set_owner(user)
user.add_parent(player_defaults)

wizard.set_location(room)
user.set_location(room)

wizard.set_player(True, is_wizard=True, passwd='wizard')
user.set_player(True, passwd='user')

wizard.add_verb(
    'edit',
    **dict(
        ability=True,
        filename=bootstrap.get_verb_path('wizard_class_edit.py'),
    ))

wizard.add_verb(
    'exec',
    **dict(
        ability=True,
        filename=bootstrap.get_verb_path('wizard_class_exec.py'),
    )).allow('wizards', 'execute')

wizard.add_verb(
    'eval',
    **dict(
        ability=True,
        filename=bootstrap.get_verb_path('wizard_class_eval.py'),
    )).allow('wizards', 'execute')
Example #5
0
lobby.set_owner(wizard)
lobby.add_parent(room_class)
lobby.add_property('description', **dict(
    owner_id = wizard.get_id(),
    value = """A dusty old waiting area, every minute spent in this room
feels like an eternity.
""",
))

wizard.set_location(laboratory)

wizard.set_player(True, is_wizard=True, passwd='wizard')

wizard_class.add_verb('reload', **dict(
    ability        = True,
    filename    = bootstrap.get_verb_path('wizard_class_reload.py'),
))

system.add_verb('authenticate', **dict(
    method        = True,
    filename    = bootstrap.get_verb_path('system_authenticate.py'),
))

system.add_verb('connect', **dict(
    method        = True,
    filename    = bootstrap.get_verb_path('system_connect.py'),
)).allow('everyone', 'execute')

system.add_verb('login', **dict(
    method        = True,
    filename    = bootstrap.get_verb_path('system_login.py'),