if (HasScript(game.pov.parent, "description")) {
do (game.pov.parent, "description")
}
else {
objects = FormatObjectList("", GetNonTransparentParent(game.pov.parent), "and", "")
if (not objects = "" and HasString(game.pov.parent, "lookwith")) {
fulldesc = Replace(game.pov.parent.lookwith, "%", objects)
}
else {
fulldesc = game.pov.parent.description
if (not objects = "") {
fulldesc = fulldesc + " You can see " + objects + " here."
}
}
if (LengthOf(fulldesc) > 0) {
msg (fulldesc)
}
}If you turn on "in-room descriptions" on the features tab of the game object, you can then add a description to each object on its setup, and that will get used in the room descriptions. The disadvantage is it is the same for all rooms.
Particleman wrote:
The other disadvantage, I think, is that it won't list an item's children, will it? It would just list that there was a table, not what was sitting on the table.