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


Joined: 27 Dec 2001
Posts: 3
Location: Canada

PostPosted: Thu Dec 27, 2001 7:27 am   

Question about %if
 
I'm trying to run a #GAG INSIDE an %if.
How would i set this up?
When i just put %GAG in there, it give me an syntax error. Whats worng? Or is it just imposible?
For more specific imformation, i'm trying to filter out the line <244hp 766m 560mv 100br> out (the numbers change), but only when it's alone. I also want to put each number into it's own variable. Here's what i have so far:

<(*)hp (*)m (*)mv (*)br>(*)

#VAR HP %1
#VAR M %2
#VAR MV %3
#VAR BR %4
%IF( %5="",#GAG,,)

HOW DO I MAKE IT WORK???
Thank you


-Falrow
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Thu Dec 27, 2001 7:32 am   
 
Why not just try this:

#trigger {<(*)hp (*)m (*)mv (*)br>$} {#GAG}

Iljhar
Reply with quote
Falrow
Newbie


Joined: 27 Dec 2001
Posts: 3
Location: Canada

PostPosted: Thu Dec 27, 2001 7:39 am   
 
ah, that doesn't do ANYTHING.
Anyways, i just need to #GAG it when it's alone, I can't #GAG it when there is text after it, cause i need to see that text and #GAG gags the whole line! So i can't just set up a trigger then #GAG it, making this problem difficult.

-Falrow
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Thu Dec 27, 2001 7:55 am   
 
It doesn't do anything? It works for me....did you cut-n-paste it into the command line? If so, try creating a new trigger in the settings editor and cut-n-paste the pattern of my trigger into the pattern box and just typing in #GAG in the value box.

As a side note, you'll notice that there's a $ at the end of the trigger pattern, that tells zMUD that there shouldn't be anything on that line after the $. Are you sure you put that in?

Iljhar
Reply with quote
Falrow
Newbie


Joined: 27 Dec 2001
Posts: 3
Location: Canada

PostPosted: Thu Dec 27, 2001 8:17 am   
 
Ah figured out the problem.
There was a space after the final > in the game, making the trigger not go.
I fixed it. Thanks alot for your help

-Falrow
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