list of objects in room
insidethecircle
09 Sept 2009, 09:36hi 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
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:50Hi
You need to make the printing of the message (and objects list) conditional on the variable 'quest.formatobjects' not being empty.
Something like this,
That ought to do it.
Al (MaDbRiT)
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:25i owe you a drink!
thanks for the help
thanks for the help