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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Thu Jan 06, 2005 3:05 am   

MXP Triggers
 
This has probably been mentioned somewhere, but for all my searching i havent been able to find it, so i appologize for repeating this.

What I would like to do is set triggers to go off on mxp code. What i mean is this, when i turn the mxp emulation off, i get to see things like this:

<!ENTITY hp 2580 max=2580><!ENTITY xp 318104><!ENTITY gp 439 max=442>

I would like the trigger to go off when it comes across this line, and capture the relative entity values, the way im trying to do it doesnt work, which is this:

#trig {<!ENTITY hp (%d) max=(%d)><!ENTITY xp (%d)><!ENTITY gp (%d) max=(%d)>} {#show %1 %2 %3 %4 %5}


Of course id like this trigger to work while mxp emulation is turned on.
Thanks
_________________
That which does not kill us, makes us stronger.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Thu Jan 06, 2005 4:41 am   
 
since <'s and >'s are special characters by default, you may want to use the tilde (~) character to make these a part of your pattern instead of a supposed expression. i.e. (~<!ENTITY hp... ~>~<!ENTITY.....~>~<...etc.)

I don't play on a MXP enhanced mud, so I don't know how zMud handles them, but.. that's my first advice atleast.
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Thu Jan 06, 2005 6:23 am   
 
nah i tryed that. thanks for the quick reply tho
_________________
That which does not kill us, makes us stronger.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Jan 06, 2005 7:00 am   
 
Can't you refrence mud entitys with something like %mud.hp
view-settings-general-mxp-entites-mud
for a list.

just a guess since I don't use a mxp I wouldn't know :P
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Thu Jan 06, 2005 8:23 am   
 
I can but that would only give me access to the entity value. I want to have access to the entity description as well. The description bit is "max=2580" in the MXP code below.

<!ENTITY hp 2580 max=2580>
_________________
That which does not kill us, makes us stronger.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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