list of objects in room

insidethecircle
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
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
i owe you a drink!

thanks for the help

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums