[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Multi-line Trigger not working
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Multi-line Trigger not working
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please)
Maximum of 6000 characters. Text only please, no HTML.
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Posted by Catthou   (5 posts)  [Biography] bio
Date Fri 15 Jul 2005 09:56 PM (UTC)  quote  ]
Message
"You could use variables to track what your command was and then have the trigger check to see if you were successful or should re-try the command."

Alright, can someone help me out with that? ^ ^ I'm entering unknown territory, but I would like to learn. Maybe showing me how to do this can be my first step.
[Go to top] top

Posted by Larkin   (278 posts)  [Biography] bio
Date Thu 14 Jul 2005 12:31 PM (UTC)  quote  ]
Message
Flannel asked if the "weave" part was a command you entered because they are not caught by triggers. Commands are parsed via aliases, so you would have to come up with some combination of aliases and triggers to fully match on the lines you want. You could use variables to track what your command was and then have the trigger check to see if you were successful or should re-try the command.
[Go to top] top

Posted by Catthou   (5 posts)  [Biography] bio
Date Wed 13 Jul 2005 10:07 PM (UTC)  quote  ]
Message
weave 1 cure
But you are not holding Saidin.

I input "weave 1 cure" - the game gives me "But you are..."

So I end up with that two line combination, which is what I want my trigger to run off of. I want it to "grasp" and then re-weave the spell I ordered it to. (in this case, 1 cure).

One more thing: I enabled "ignore case", but it still doesn't work.
[Go to top] top

Posted by Flannel   USA  (1,230 posts)  [Biography] bio
Date Wed 13 Jul 2005 08:44 AM (UTC)  quote  ]
Message
Is the weave line stuff that you enter?

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
[Go to top] top

Posted by Nick Gammon   Australia  (19,433 posts)  [Biography] bio   Forum Administrator
Date Wed 13 Jul 2005 07:38 AM (UTC)  quote  ]
Message
Can you copy and paste an example of the lines from the MUD that don't work?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Catthou   (5 posts)  [Biography] bio
Date Wed 13 Jul 2005 06:49 AM (UTC)  quote  ]
Message
<triggers>
<trigger
enabled="y"
group="Multi Line"
lines_to_match="2"
keep_evaluating="y"
match="weave (.*)\nBut you are not holding Saidin\.\Z"
multi_line="y"
regexp="y"
send_to="2"
sequence="100"
>
<send>grasp^weave %1</send>
</trigger>
</triggers>


This is what I have going right now, but it doesn't work! I can't for the life of me figure it out. If I could, I would prefer that the entire first line be a wildcard, cuz sometimes is "Weave 1 portal 2", "weave 10 gateway 4" and sometimes its "p2", "p4", "g5" etc.

Help!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,810 views.

[New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Web site powered by FutureQuest.Net]