def example2_build_verticle_exit(x, y, **kwargs):
 if (kwargs['iteration'] == 0):
  return
 north_room = kwargs['room_dict'][(x, (y - 1))]
 south_room = kwargs['room_dict'][(x, (y + 1))]
 north = create_object(exits.Exit, key='south', aliases=['s'], location=north_room, destination=south_room)
 south = create_object(exits.Exit, key='north', aliases=['n'], location=south_room, destination=north_room)
 kwargs['caller'].msg(((('Connected: ' + north_room.key) + ' & ') + south_room.key))

def example2_build_verticle_exit ( x , y , ** kwargs ) : if ( kwargs [ 'iteration' ] == 0 ) : return north_room = kwargs [ 'room_dict' ] [ ( x , ( y - 1 ) ) ] south_room = kwargs [ 'room_dict' ] [ ( x , ( y + 1 ) ) ] north = create_object ( exits . Exit , key = 'south' , aliases = [ 's' ] , location = north_room , destination = south_room ) south = create_object ( exits . Exit , key = 'north' , aliases = [ 'n' ] , location = south_room , destination = north_room ) kwargs [ 'caller' ] . msg ( ( ( ( 'Connected: ' + north_room . key ) + ' & ' ) + south_room . key ) )
creates two exits to and from the two rooms north and south .