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


Joined: 28 Aug 2002
Posts: 16

PostPosted: Wed Aug 13, 2003 1:57 am   

Help with a capture trigger
 
[HP: 183/186 SP: 186/186] MON [A hedgehog]: 94%

[HP: 143/186 SP: 177/186]

I want to capture from the lines above. But the triggers that I have made do not work [#TRIGGER {~[ HP~: &HpVr1~/&HpVr2 SP~:} {}]. I want to capture these so I can use a gague. I can get the gague to work with preset vars but have not been able to get the trigger to catch them and keep updating. The var I am using is hpvr1/hpvr2 spvr1/spvr2 and mnvr1 for after mon and mnvr2 for the %. If anyone could help out I whould really appricate it.. Thanks
Reply with quote
moksha
Novice


Joined: 13 Oct 2002
Posts: 37
Location: United Kingdom

PostPosted: Wed Aug 13, 2003 3:24 am   
 
Hi, these should work. Just cut and paste into the command line.

#TRIGGER {^~[HP~: (%d)~/(%d) SP~: (%d)~/(%d)~] MON ~[(*)~]~: (%d)~%$} {#VAR hpv1 {%1};#VAR hpv2 {%2};#VAR spv1 {%3};#VAR spv2 {%4};#VAR mnvr1 {%5};#VAR mnvr2 {%6}}

#TRIGGER {^~[HP~: (%d)~/(%d) SP~: (%d)~/(%d)~]$} {#VAR hpv1 {%1};#VAR hpv2 {%2};#VAR spv1 {%3};#VAR spv2 {%4}}


Moksha
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Aug 13, 2003 3:26 am   
 
#TR {HP: (%d)/(%d) SP: (%d)/(%d)} {#VAR hpvr1 %1;#VAR hpvr2 %2;#VAR spvr1 %3;#VAR spvr2 %4} {} {prompt}
#TR {MON ~[(*)~]: (%d)~%} {#VAR mnvr1 {%1};#VAR mnvr2 %2} {} {prompt}
Reply with quote
Oni
Beginner


Joined: 28 Aug 2002
Posts: 16

PostPosted: Wed Aug 13, 2003 4:05 am   
 
Thanks LightBulb worked great.
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