Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: Sun Oct 04, 2009 2:36 pm   

Easy question
 
Ok, so if I'm in my MUD and I run in to a door and it returns this message:

The door seems to be closed.

What trigger do I set up so that it automatically will input 'open door'.

I tried using the database variable in place of both doors but it didn't work.

Thanks.

Brandon
Reply with quote
Josiah.Bruns
Apprentice


Joined: 04 Mar 2007
Posts: 103

PostPosted: Sun Oct 04, 2009 2:59 pm   
 
<trigger>
<pattern>The door seems to be closed.</pattern>
<value>open door</value>
</trigger>
Reply with quote
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: Sun Oct 04, 2009 3:05 pm   
 
Yes, that would work. But... I'm wanting it in case the argument is different for door....

So for instance. The doorway seems to be closed. The trapdoor seems to be closed.

The <insert door like thing> seems to be closed.

Does that make sense? Basically so it will grab whatever it is and use that after open.

Brandon
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Oct 04, 2009 4:15 pm   
 
(%w), this will lead you to the phrase "open %1"
_________________
EDIT: I didn't like my old signature
Reply with quote
FuSoYa
Novice


Joined: 10 Feb 2007
Posts: 34
Location: Denton, TX

PostPosted: Sun Oct 04, 2009 5:41 pm   
 
MattLofton wrote:
(%w), this will lead you to the phrase "open %1"


This worked Matt. Thanks. Though I had to use %1 and then open %1.

Brandon
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net