Example #1
0
def KansasHouse():

    house = Entity(["house"])
    house.add_description(
        "A small suburban house with a white picket fence (your house)")
    house.add_examine_description("your parents house")

    car = Entity(["car"])
    car.add_description(
        "There is a car in your parents driveway, its a 1995 honda civic, it might get you to oregon..."
    )
    car.add_examine_description(
        "It looks like solid reliable transportation, its old but trusty, can fit a cramped 4, and has a full tank of gas"
    )

    mom = Entity(["mom", "lady", "parents", "woman"])
    mom.add_description("There is an older woman standing in your driveway")
    mom.add_examine_description(
        "She says to you 'Hey, make sure to pack before you go, '")

    snacks = Entity(["money"])
    snacks.add_description("Maybe she has some money if you ask nicely")
    snacks.add_examine_description("$100")
    snacks.add_command(command_pick_up(snacks))

    mom.add_entity(snacks)
    house.add_entity(car)
    house.add_entity(mom)

    return house
Example #2
0
def Table(id):
    table = Entity(["table"+str(id)])
    table.add_name("wooden table")
    table.add_description("a simple wooden table"+str(id))
    table.add_examine_description("a wooden table, it looks like a good place to place things")
    table.data = {"health" : 1}
    table.add_entity(Chair(1))
    table.add_entity(Chair(2))
    table.add_command(command_travel(table))
    table.add_entity(dagger(""))
    table.add_command(command_attack(table))
    return table
Example #3
0
def Tavern(cryptoItemEngine):
    entity = Entity(["tavern"])
    store = Store(cryptoItemEngine)
    entity.add_entity(store)
    entity.remove_command("stats")

    add_descriptions(
        entity,
        "The Oily Rat tavern is alive and well! patrons from nearby towns gather to hear what quests the curier has to offer!",
        "The tavern is sturdily built, its location at the county's crossroads makes it an ideal place meet, there is a ['store'] in the far corner... could be worth checking out"
    )

    return entity
Example #4
0
def Kansas(engine):
    city = Entity(["city", "kanzas"])
    city.add_description(
        "It is Kanzas city, it smells of barbecue chicken and craft beer")
    city.add_examine_description(
        "You can't be more exited to leave this place")

    nextCity = Entity(["iowa"])
    nextCity.add_command(command_travel(engine.get_room("Iowa")))
    nextCity.add_description(
        "There is a highway, and a roadsign that says 'next stop Iowa'")
    nextCity.add_examine_description("The road looks arduous")

    city.add_entity(nextCity)
    city.add_entity(create_house(engine))

    city.add_entity(KansasStore())

    return city
Example #5
0
def Tavern(engine):
    tavern = Entity(["tavern"])
    tavern.add_description("The Oily Rat tavern is alive and well! patrons from nearby towns gather to hear what quests the curier has to offer!")
    tavern.add_examine_description("The tavern is sturdily built, its location at the county's crossroads makes it an ideal place meet")
    tavern.add_entity(Table(""))
    return tavern