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
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Tue Nov 23, 2010 1:10 am   

gmcp trigger not working
 
I have been away from mudding for a while, and I just got CMUD 3.32 pro. My mud is Midkemia, and I am noticing that the mapper is not "just working". I'd like to do some manual tagging of exits and checking of vnums in order to fix this. The problem is, I can't seem to get a simple gmcp trigger to work.

Code:

<trigger type="GMCP" priority="330" newline="false" prompt="true" id="33">
<pattern>Room.Info.exits</pattern>
<value>stuff="got it"</value>
</trigger>


Nothing happens with this trigger when I walk around.

Clues?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Nov 23, 2010 1:20 am   
 
Does your MUD support GMCP? Do you have GMCP enabled under preferences?

If your MUD supports GMCP, are you sure it's room.info.exits?

Also, go under Preferences->Protocols and make sure the things you want are set to 1.
Reply with quote
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Tue Nov 23, 2010 1:53 am   
 
Midkemia Online is an IRE mud, and it supports GMCP. I'm able to do a successful "#SHOW %gmcp.Room.Info.exits" from the command line, so I assumed that this was the correct pattern for a GMCP trigger.

Since, I can access the GMCP info, I assume that answers your questions, thus far?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Tue Nov 23, 2010 6:43 am   
 
Just logged onto your MUD and tested it... I should have seen this earlier, but meh... you can't go to a third key with gmcp... so instead of Room.info.exits, you can only do Room.Info.*... don't know why... but that's your reason.
Reply with quote
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Tue Nov 23, 2010 11:13 am   
 
Sweet. That worked.

Interestingly, in the trigger pattern, I wasn't able to get this to work: #show "got it". Instead, I had to update a variable to verify the trigger: stuff="got it".

Thanks for your help!
Reply with quote
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Tue Nov 23, 2010 1:28 pm   
 
#print works, but not #show. Not an issue, just pointing it out.
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue Nov 23, 2010 2:08 pm   
 
You're saying that
Code:

#show "got it"

didn't work? That's very strange. Do you have some trigger gagging that?
Reply with quote
marduk
Beginner


Joined: 05 Feb 2006
Posts: 14

PostPosted: Tue Nov 23, 2010 2:56 pm   
 
My cmud install is very sparse, right now. I have just the one gmcp trigger for Room.Info, and I just added a simple pattern trigger to test #show. No gagging.

When #show is the only line in a trigger script, it will not display literal text. I haven't tested it beyond that. I'm just using #print now, so it's not a big deal to me.
Reply with quote
Anaristos
Sorcerer


Joined: 17 Jul 2007
Posts: 821
Location: California

PostPosted: Fri Nov 26, 2010 6:21 pm   
 
It seems to me there is a problem with your trigger specification. I fail to see "param=201" in your xml.
_________________
Sic itur ad astra.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Nov 26, 2010 6:46 pm   
 
Param=201 is not the problem. CMud ignores it for GMCP triggers.
_________________
EDIT: I didn't like my old signature
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Nov 29, 2010 6:16 pm   
 
The Pattern for a GMCP trigger needs to be just the name of the GMCP message. The "exits" information is one of the data keys for the "Room.Info" message. So your pattern should just be "Room.Info". No * or anything else.

Then in the trigger you can access the %gmcp.Room.Info.exits variable to get the data you need.
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