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


Joined: 03 Feb 2003
Posts: 6

PostPosted: Mon Feb 03, 2003 10:41 am   

Whats wrong with this trigger!?
 
hi,
i get my status as follows
<73hp 145sp 162st>
so i have this trigger

#trigger {<(%d)hp (%d)sp (%d)st>}

but it keeps giving me syntax errors anyone know what the problem is thanx in advance...
Reply with quote
patryn
Apprentice


Joined: 26 Sep 2001
Posts: 124

PostPosted: Mon Feb 03, 2003 11:06 am   
 
try this:

#trigger {~<(%d)hp (%d)sp (%d)st~>}

That which does not kill us, makes us stronger.
Reply with quote
Ch33rz
Newbie


Joined: 03 Feb 2003
Posts: 6

PostPosted: Mon Feb 03, 2003 11:30 am   
 
well i think that worked although the (%d)'s are highlighted yellow any reason?

well the trigger is now this

#trigger {~<(%d)hp (%d)sp (%d)st~>} {
#var hps 1%
#var mps 2%
#var mv 3%
}

but my variables have the values of 1%,2% etc

shouldn't they have captured the values of %d ?
im sure its due to my coding but what??
Reply with quote
Turnip
Beginner


Joined: 22 Jan 2003
Posts: 11
Location: United Kingdom

PostPosted: Mon Feb 03, 2003 12:19 pm   
 
Hi

#trigger {~<(%d)hp (%d)sp (%d)st~>} {
#var hps %1
#var mps %2
#var mv %3
}

You just had the % and the numbers round the wrong way
Reply with quote
Ch33rz
Newbie


Joined: 03 Feb 2003
Posts: 6

PostPosted: Mon Feb 03, 2003 1:01 pm   
 
hmmm its still saying my variables are not defined :( ...why are the %d's highlighted yellow? is this normal..
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Feb 03, 2003 1:16 pm   
 
You are entering the trigger in wrong. First, create a new trigger and put this as the pattern:
~<(%d)hp (%d)sp (%d)st~>

then put this as the value:
#VAR hps %1
#VAR mps %2
#VAR mv %3

Finally, make sure that in the Options tab Trigger on Prompt is selected and Trigger on Newline is not.

Kjata
Reply with quote
Ch33rz
Newbie


Joined: 03 Feb 2003
Posts: 6

PostPosted: Mon Feb 03, 2003 1:49 pm   
 
omg schweet!!! thanx for your help and time works 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