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


Joined: 31 Jul 2003
Posts: 22

PostPosted: Sat Aug 02, 2003 4:41 pm   

Trigger won't work
 
This is my trigger but when I die it doesn't add to the death count anyone know why? I was wondering if the ' ' was throwing it off

#Trigger {^Death says 'You lived what anybody gets, you got a lifetime'$} {#Add DeathCount 1}

Thanks
Reply with quote
Maximus
Wanderer


Joined: 21 May 2001
Posts: 59
Location: USA

PostPosted: Sat Aug 02, 2003 4:51 pm   
 
Try putting ~ in front of the single quotes so it matches them literally instead of trying to interpret them. ~' should tell it you're looking for the single quote characters, not trying to do something else.
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat Aug 02, 2003 6:43 pm   
 
Single quotes aren't usually included in special characters, so they aren't likely to be the problem. You probably don't quite match the line, and since you put anchors at both ends of your pattern you have to have an exact match. That includes punctuation, leading/trailing spaces, etc.

My guess? You probably left off a period or exclamation point.
Reply with quote
Amok
Beginner


Joined: 31 Jul 2003
Posts: 22

PostPosted: Sat Aug 02, 2003 10:12 pm   
 

..Everything begins to fade to black.

Before you hovers a woman of breathtaking beauty. Her pale skin and ebon
hair stand out against the blue heavens that call to you. She places her
hands on her hips and smirks.

You feel a strange pulling sensation as strange and colorful mists swirl
around you...

Death says 'You lived what anybody gets, you got a lifetime'






That is what the mud says when I die
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Aug 03, 2003 12:47 am   
 
I your post is an exact copyfrom the mud output then as Lightbulb said you missed trailing spaces.

Code:

#Trigger {^Death says 'You lived what anybody gets, you got a lifetime'  $} {#Add DeathCount 1}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sun Aug 03, 2003 3:00 am   
 
I don't know why your particular trigger doesn't work, I just make educated guesses. Here's several ideas for you to try. Note that you are the only one who can actually find out which of these work in your particular situation.

Remove the anchors. If you have leading or trailing spaces missing from the pattern, that will fix it.
#Trigger {^Death says 'You lived what anybody gets, you got a lifetime'} {#Add DeathCount 1}
#Trigger {Death says 'You lived what anybody gets, you got a lifetime'$} {#Add DeathCount 1}
#Trigger {Death says 'You lived what anybody gets, you got a lifetime'} {#Add DeathCount 1}

Try a pattern which doesn't include single quotes.
#Trigger {You lived what anybody gets, you got a lifetime} {#Add DeathCount 1}
#Trigger {..Everything begins to fade to black.} {#Add DeathCount 1}

Try putting ~ in front of the single quotes. (Maximus already suggested this, I hoped you tried it?)
#Trigger {^Death says ~'You lived what anybody gets, you got a lifetime~'$} {#Add DeathCount 1}

Try changing the options on your trigger to PROMPT instead of NEWLINE. The final line might be a prompt-type output that waits for you to hit ENTER before proceeding.
#Trigger {^Death says 'You lived what anybody gets, you got a lifetime'} {#Add DeathCount 1} {} {nocr|prompt}

I don't know if any of these will work. If any of them do, it would be nice if you came back and said so (in case someone else has a similar problem). Feel free to combine possibilities as well as trying each one separately.
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