Says in room progs

For builders to discuss and ask building questions.
Post Reply
User avatar
Argentia
Sword Grand Master
Sword Grand Master
Posts: 357
Joined: Fri Jul 23, 2004 4:31 am
Location: The City of Splendors
Contact:

Says in room progs

Post by Argentia » Sat Aug 06, 2005 11:15 pm

In a room prog, let's say a greet prog, will says work despite the absence of any mobs to say them? For example, will this room prog work:

Code: Select all

((Room code here))
>greet_prog 60~
if quest(0, 4, $n) == 1
  mpecho A haunting laughter echos through the room
  sayto $n So, you have come to kill me? Well, you'll
  sayto $n have to find me first!
endif
~
Do not meddle in the affairs of dragons, for you are crunchy and go well with ketchup.
Dalvyn
Sword Grand Master
Sword Grand Master
Posts: 4708
Joined: Tue Jul 15, 2003 9:26 pm
Location: House of Wonder, Waterdeep

Post by Dalvyn » Sun Aug 07, 2005 10:18 am

As written in another post, all object and room programs are actually run by a special mob (the supermob) who comes to the spot where the program is to be run and runs it.

In this case, the supermob (a mobinvis secretive mob) will come to the room and talk to $n. Since it's mobinvis, no mortal can see it and it will show up as "Someone says to ...".
Image
Post Reply