|
CrashOverride24 Newbie
Joined: 11 Jun 2009 Posts: 2 Location: Canada
|
Posted: 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. |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: 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. |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: 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 |
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
CrashOverride24 Newbie
Joined: 11 Jun 2009 Posts: 2 Location: Canada
|
Posted: 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.
|
|
|
|
ralgith Sorcerer
Joined: 13 Jan 2006 Posts: 715
|
Posted: 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 |
|
|
|
|
|