list of objects in room

insidethecircle
09 Sept 2009, 09:36
hi alex and co.

great application.

just one quick question which will help me quite a bit.
im trying to run a script displaying every available object currently in the existing room after a room description. unfortunately im not sure of how to turn it off when there is nothing in the room. As it prints out 'there is aslo here' when no object is present.

print "there is also #quest.formatobjects# here."

thanks for your time

nickG

MaDbRiT
09 Sept 2009, 10:50
Hi

You need to make the printing of the message (and objects list) conditional on the variable 'quest.formatobjects' not being empty.

Something like this,

if not (#quest.formatobjects# =) then {
msg <your message #quest.formatobjects#.>
}


That ought to do it.

Al (MaDbRiT)

insidethecircle
10 Sept 2009, 10:25
i owe you a drink!

thanks for the help