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


Joined: 01 Jun 2006
Posts: 8

PostPosted: Mon Jan 14, 2008 3:54 am   

Trigger help?
 
I am trying to make a trigger to regen up my Hp's once it falls below a certain value. Now, I figured I needed to make 2 types of triggers in order to make it work. I have made a prompt trigger but it doesnt seem to be correct. Could someone tell me what I am doing wrong with this trigger?

Pattern:~[(*)~] ~<(%d)hp (%d)m (%d)mv (%d)bl~>

Command:f @blood<124 {drink rod;[4m- blood}


I am getting a message Error compiling script:
unmatched braces.

Triggered fired but did not complie.

Help?
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jan 14, 2008 4:05 am   
 
It doesn't look like you pasted the entire thing. Even so, I'm going to suggest this (and assume some things):

#TRIGGER {~[*~]~<%dhp %dm %dmv (%d)bl~>} {#IF (%1<124) {drink rod}}

I don't know what your [4m- blood bit is. I don't even want to venture a guess, but the unmatched braces is because of the [ you have in there.

Charneus
Reply with quote
alluran
Adept


Joined: 14 Sep 2005
Posts: 223
Location: Sydney, Australia

PostPosted: Tue Jan 15, 2008 12:19 pm   
 
the 4m is him pasting an ascii color code in i'd say
_________________
The Drake Forestseer
Reply with quote
Zugg
MASTER


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

PostPosted: Tue Jan 15, 2008 6:19 pm   
 
If so, then that will be a problem. You should never embed control characters directly into a script. If you want an ESC character, use the %e variable. For ANSI colors, use the %ansi function.
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