rabdill / bishop

An engine for writing browser-based text adventures using only client-side JavaScript.
Other
1 stars 0 forks source link

Dropped items are always described as they were when they were picked up #144

Open rabdill opened 9 years ago

rabdill commented 9 years ago

An example:

"items" : {
    "stole" : {
        "name" : "mink stole",
        "status" : "default",
        "take" : {
            "default" : "You gently lift the stole and wrap it around your neck."
        },
        "states" : {
            "default" : {
                "descriptor" : "There is a delicate mink stole stuffed in the corner."
            }
        }
    }
}

When you pick it up out of the closet, everything is cool. But when you go out to the corn field and drop the stole, all of the sudden you're in a field and a scarf is "stuffed in the corner." Maybe associate a "dropped descriptor" in states that the player is allowed to take from? IE:

"items" : {
    "stole" : {
        "name" : "mink stole",
        "status" : "default",
        "take" : {
            "default" : "You gently lift the stole and wrap it around your neck."
        },
        "states" : {
            "default" : {
                "descriptor" : "There is a delicate mink stole stuffed in the corner.",
                "dropped" : "A delicate mink stole is on the ground here."
            }
        }
    }
}

OR

"items" : {
    "stole" : {
        "name" : "mink stole",
        "status" : "default",
        "take" : {
            "default" : {
                "message" : "You gently lift the stole and wrap it around your neck.",
                "dropped" : "A delicate mink stole is on the ground here."
        },
        "states" : {
            "default" : {
                "descriptor" : "There is a delicate mink stole stuffed in the corner.",
            }
        }
    }
}