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


Joined: 27 Apr 2007
Posts: 16

PostPosted: Fri Apr 27, 2007 6:29 am   

Odd Trigger Problems
 
I have a couple problems with Cmud coding/trigger set up. This same trigger
works on zmud but not on Cmud. I have a version of this trigger that is working
fine that is the exactly the same as the one below EXCEPT the addition of the "
, 899/899 mana". I tested it using the match and seqrec function and everything
comes our right except it does not #su the line its suppose to.

Here is my trigger set up:
Code:

From the Mud:
( Head)  1118/1118  hit,  204/204  move,  899/899  mana Someone

Pattern: &pos &hit/&maxhit hit, &mov/&maxmov move, &mana/&maxmana mana &name
Commands:
#va hitdif @hit-@maxhit
#va hitper (@hit * 100)/@maxhit
#su {@pos @hit/@maxhit hit, @mov/@maxmov move, @mana/@maxmana mana    @name ==== @hitdif}



I am also trying to #cap the text ( Head) and put the line into another window
called Group. Now I have it working for (Front) but it will not work with ( Head). I have tried various ways but nothing works.

Code:
Here is my trigger set up for (Front):

Pattern: ^%pFront%p

This one works, but doesnt work for ( Head).


Just FYI, this is the code I use for this healthchecker that IS working with Cmud:

Code:
From Mud:
( Head)  1118/1118  hit,  204/204  move  Someone

Pattern:
(*) &hit/&maxhit hit, &mov/&maxmov move &Name

Commands:
#va hitdif @hit-@maxhit
#va hitper (@hit * 100)/@maxhit
#su {%1 @hit/@maxhit hit, @mov/@maxmov move    @name ==== @hitdif}
#if (@hitper >= 95) {#co {@name ==== @hitdif} bold,green}
#if (@hitper <= 95) {#co {@name ==== @hitdif} brown}
#if (@hitper <= 90) {#co {@name ==== @hitdif} yellow}
#if (@hitper <= 80) {#co {@name ==== @hitdif} bold,purple}
#if (@hitper <= 50) {#co {@name ==== @hitdif} purple}
#if (@hitper <= 30) {#co {@name ==== @hitdif} bold,red}
#if (@hitper <= 5) {#co {@name ==== @hitdif} blink,high,red,red}
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Fri Apr 27, 2007 11:10 am   
 
Escape the parentheses in your pattern with ~ in front of each one?
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