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
Valdez
Newbie


Joined: 23 Jul 2002
Posts: 3
Location: USA

PostPosted: Tue Jul 23, 2002 12:45 pm   

Variable troubles...
 
On a MUD I play I may get a line like this:

PS*[QP]B Be Temp1 x: 7 y: 13 z: 0 r: 3.3 b:251 s: 0.0 h: 0 S:

the "b:251" stands for the bearing in degrees of my enemy. What I would like to know is, how can I make a trigger that would take the degrees, 251, and use it in the reaction, such as, "say The enemy is currently bearing at 251 degrees!"? I am nearly a newbie with triggers, so please have patience with me. Thank you.
Reply with quote
Virus
Wanderer


Joined: 29 Jun 2002
Posts: 69
Location: USA

PostPosted: Tue Jul 23, 2002 12:56 pm   
 
Since I know what your talking bout Ill answer this one.

Use the following format.

^{PS| S|P | }{*|v|l|r|t}~[(%w)~]{B|T|H|Q|V|b|t|h|w|v|q|p|n|u|f} * *x:*y:*z:*r:*b:(*)s:*h:*S:????

I know it looks like a lot, but cut and paste that and use it as your trigger. Next:
#SH The enemy is bearing %1!

Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Rich@gigdev.com
Reply with quote
Virus
Wanderer


Joined: 29 Jun 2002
Posts: 69
Location: USA

PostPosted: Tue Jul 23, 2002 12:57 pm   
 
I screwed it up. take the () away from the %w so instead of [(%w)] you get [%w]

Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Rich@gigdev.com
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue Jul 23, 2002 6:46 pm   
 
If all you want is the bearing, you can probably get away with a much shorter trigger. It appears that your numbers are right-aligned, so I've used the fixed-width pattern.
#TR {b:(&3)} {#SAY {The enemy is currently bearing at %1 degrees!}}

LightBulb
Senior Member
Reply with quote
Virus
Wanderer


Joined: 29 Jun 2002
Posts: 69
Location: USA

PostPosted: Wed Jul 24, 2002 11:43 pm   
 
He could, but.... that expression shows up so much in the mux that he will get so spammed from it. Valdez, E-Mail me and Ill send you my scrpits for 3030. They work rather good. Just need to get used to em. E-Mail is on this message


Richard Powell
Mux Alias: Virus
2796 Wizard Staff
64.89.10.1 port 2796
Rich@gigdev.com
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