Hi Pertex I looked at your reply and I placed your coding after the for: example
<function name="ShowRoomDescription"><![CDATA[
if (HasScript(player.parent, "description")) {
do (player.parent, "description")
}
else {
if (game.autodescription) {
desc = ""
for (i, 1, 4) {
if (i = game.autodescription_description) {
if (HasScript(player.parent, "description")) {
if (LengthOf(desc) > 0) {
msg (desc)
desc = ""
}
do (player.parent, "description")
}
else {
desc = AddDescriptionLine(desc, GetRoomDescription())
}
}
if (i = game.autodescription_youarein) {
if (game.autodescription_youarein_useprefix) {
youarein = player.parent.descprefix
desc = AddDescriptionLine (desc, youarein + " " + GetDisplayName(player.parent) + ".")
}
else {
desc = AddDescriptionLine (desc, "<b>" + CapFirst(GetDisplayName(player.parent)) + "</b>")
}
}
if (i = game.autodescription_youcansee) {
objects = FormatObjectList(player.parent.objectslistprefix, GetNonTransparentParent(player.parent), Template("And"), ".", false)
desc = AddDescriptionLine(desc, objects)
}
if (i = game.autodescription_youcango) {
exits = FormatExitList(player.parent.exitslistprefix, ScopeExits(), Template("Or"), ".")
desc = AddDescriptionLine(desc, exits)
}
if (i = game.autodescription_description) {
desc = AddDescriptionLine(desc, GetRoomDescription())
}
}
if (LengthOf(desc) > 0) {
msg (desc)
}
}
else {
fulldesc = GetRoomDescription()
if (LengthOf(fulldesc) > 0) {
msg (fulldesc)
}
}
}
]]></function>
</asl>
Is this the correct way to tackle this problem
Thanks