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


Joined: 11 Jun 2009
Posts: 2
Location: Canada

PostPosted: Thu Jun 11, 2009 8:04 am   

Mutli Line Tap Trigger.
 
^(%s)(%d)~)(%s)(%w)(%s)(%w)(%s)(%d)

"%1" goes to 15, 1 through 15. I only want the trigger to fire on those 15, and Add "%8" from each 15 lines, and toss it in a DB var.

Is there a work around With #IF's to get it to ONLY capture those 15 lines?

Im stumped... im tired but i cant for the life of me figure it out.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Thu Jun 11, 2009 11:21 pm   
 
I have no idea what problem that trigger is attempting to solve and the text it's trying to match. Here's some info that'll help us to help you:

1) What problem are you trying to solve?
2) What text is that trigger supposed to match?
3) What's it supposed to do once it's matched it?
5) How is that going to solve the original problem?
4) What's it (not) doing that it should(n't) be doing?

I don't mean that those five specific questions are the only ones we'll need answers to, just that we need a lot more information about what you're trying to do and what's not working. At the moment I have no clue what you're asking for. Give us as much information as you can. Also, bear in mind that most of us haven't played or probably even heard of your MUD, so we have no idea what "tapping" is until you explain it to us.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Fri Jun 12, 2009 12:01 am   
 
It will also help to have some live examples from your MUD. Paste it in code boxes so that it preserves the spacing, too.

Charneus
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Fri Jun 12, 2009 3:45 am   
 
Besides, %1 is %s... which is white space. If you're only using 2 %d in the code portion of the trigger then you can simplify it a LOT by doing this:

Code:
#TRIGGER {^%s(%d)~)%s%w%s%w%s(%d)} {
   #IF (%1 > 0 AND %1 < 16) {
      // Put your code to add them and then db them or whatever else you want to do here.
   }
}
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
Reply with quote
CrashOverride24
Newbie


Joined: 11 Jun 2009
Posts: 2
Location: Canada

PostPosted: Tue Jun 16, 2009 6:47 am   
 
Thanks ral, that worked... never thought to use that, but after i seen you mention it it clicked:P Its been a while since ive done work with this code base.
Reply with quote
ralgith
Sorcerer


Joined: 13 Jan 2006
Posts: 715

PostPosted: Tue Jun 16, 2009 4:36 pm   
 
CrashOverride24 wrote:
Thanks ral, that worked... never thought to use that, but after i seen you mention it it clicked:P Its been a while since ive done work with this code base.


LOL, me too really. I just dabble these days. Its been almost 2 year since I wrote any major scripts. But hey, I have a head for code (when I'm not tired anyways) so I may as well keep at least mildly active. Anyways, glad it worked for you. Let us know if you need anything else.
_________________
CrossOver: Windows Compatibility on Mac and Linux CMUD Advocate
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