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


Joined: 23 Jul 2002
Posts: 22
Location: United Kingdom

PostPosted: Wed Jul 24, 2002 11:24 am   

Yellow highlights in triggers
 
Ho hum
Looking at a #TEMP trigger inside a long alias, the patterns (%d) or (%1) or whatever I use are highlighted with a yellow background and red text. No errors are shown but the trigger does not work. Can anyone clarify what the highlights signify.

tia

/Porsche
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Wed Jul 24, 2002 11:50 am   
 
The highlights just show that it's a trigger pattern within the main body of the code. As for why it's not working for you, I can't tell without more information.



 - Charbal
Reply with quote
porsche
Beginner


Joined: 23 Jul 2002
Posts: 22
Location: United Kingdom

PostPosted: Wed Jul 24, 2002 12:23 pm   
 
Thanks

The trigger is
#temp {On the paper is written: 'l:(%d), p:(%d)'} {login %1;password %2}

Which needs to trigger on patterns like:
On the paper is written: 'l:3498, p:58240525'

Its incredibly simple but I've tried various combinations. It works if I type it manually, but as part of the alias it triggers but the 2 variables are blank.

I was asking about the yellow highlights because if I don't put the %d in brackets it's in magenta, if I put it in brackets then its red with yellow highlight.

thanks again

/Porsche
Reply with quote
Humpton
Apprentice


Joined: 10 Oct 2000
Posts: 158
Location: Chicago, IL

PostPosted: Wed Jul 24, 2002 1:57 pm   
 
It may have something to do with the :s. This is the focus character be default. In your trigger add a ~ before it.

#temp {On the paper is written~: 'l~:(%d), p~:(%d)'} {login %1;password %2}


Stay JOLLY!
H

___
Humpton lives like he types.... fast, and full of mistakes!

Core 2651: For those who prefer the future to the past.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Wed Jul 24, 2002 3:18 pm   
 
The problem is that it is using the %1 and %2 from the alias instead of just sending it as actual text for the trigger to be created. Try doing this instead:
#TEMP {On the paper is written: 'l:(%d), p:(%d)'} {login %%1;password %%2}

Kjata
Reply with quote
porsche
Beginner


Joined: 23 Jul 2002
Posts: 22
Location: United Kingdom

PostPosted: Wed Jul 24, 2002 3:45 pm   
 
Worked a treat Kjata!
Thank you

/Porsche
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