Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Tips and tricks
➜ Having trouble switching triggers to mushclient
|
Having trouble switching triggers to mushclient
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #15 on Tue 02 Dec 2003 02:44 AM (UTC) |
| Message
| Best bet is the last line:
<triggers>
<trigger
enabled="y"
group="Writhebalance"
match="^you go limp as the pain intermingles with indescribable pleasure\."
regexp="y"
send_to="12"
>
<send>if writhe = 0 then send "writhe"</send>
</trigger>
</triggers>
I have no idea what variable you may want to set, though as near as I can tell, the set of triggers you gave ignores those things anyway. | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #16 on Tue 02 Dec 2003 03:42 AM (UTC) |
| Message
| ok, I tried just that trigger above....it doesn't work, but I did get this to work...
Trigger Field: In a sensuously fluid motion, * reaches out and draws you close, baring
Send Field: Writhe
thats seems to work....but is it as good as the one you wrote with all that extra stuff? I'm not sure if there's a difference.... | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #17 on Tue 02 Dec 2003 04:10 AM (UTC) |
| Message
| The difference is only the 'if' statement in there, which is apparently supposed to begin the process of attempting to writhe out of something only if the message arrives and you are not already doing so. I am not sure that it matter at all, since the effect is probably the same.
As for all that extra stuff... It is the XML code for the trigger. I suspect you are doing:
Add...
Then trying to copy all the stuff into the Match: field. If so then "WRONG!". If you look at the trigger setup screen there are a mess of buttons, Add.., Edit, Remove, etc. On the far right are two buttons like:
Copy
-Paste- <-- this one dimmed.
If you 'copy' a trigger like I posted, as though you where copying it from one window to another, then the 'Paste' button should suddenly become active, since the clipboard (where windows puts things it is copying from one place to another) now contains a trigger. By clicking on that button, the thing you copied will be entered directly into the list of triggers, without you needing to use 'Add..' at all. Got it? ;) This lets you drop triggers directly in, along with all the complex settings, instead of entering every setting manually.
If you are doing what I think, then you are expecting mushclient to act like zmud and automatically convert everything you put into one box in the 'Add..' page into a complete trigger. Instead, mushclient will assume that all that stuff is the text you are looking for and will create a trigger that has no setting, sends nothing and will never match. | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #18 on Tue 02 Dec 2003 04:31 AM (UTC) |
| Message
| wow, that single one works great, thanks for explaining it.
I ctrl-copied the large group and pushed the past button an got this error
Line 106: Elements terminated out of sequence, expected </send>, got </trigger> (problem in this file)
thanks for the help with this again, I'm sorry I'v taken so much of your time | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #19 on Tue 02 Dec 2003 05:29 AM (UTC) |
| Message
| I got everything working finally, so far it's been going good, thanks for all the help Shadowfyr. to write out additional triggers my self should I just use the same model, except replce the match section and send seciton with the correct text?
| | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #20 on Tue 02 Dec 2003 05:59 AM (UTC) |
| Message
| For your own it is easier to enter all the setting in using "Add..". It is a lot easier to see and change all the settings in there.
To copy one, to show on here for example, you can then select it in the list and use the 'Copy' button. That will convert the trigger to XML and place it into the clipboard, so you can paste it into other programs.
Glad you figured out what was hanging up the triggers I gave you. I threw them together off the top of my head while waiting for some monsters to repopulate, so was only paying half attention to what I was doing. lol I also had no way to test them, so.. Hope they are work ok. ;) | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #21 on Tue 02 Dec 2003 07:31 AM (UTC) |
| Message
| I'm using the same setup you did for me earlier, if I wanted fo the sent portion of the trigger to be
#if {@herbalance=0 AND @stun=0} {
outb ash
eat ash
}
herbalance=1
ash=1
How would I add that to the sent script part.... | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #22 on Tue 02 Dec 2003 08:15 PM (UTC) |
| Message
| Usually all that sort of stuff is done in a master script, however I have been using send_to="12". In the Add.. dialog there is a selection that says 'Send to:', you would choose "Send to Script" from the list of options under that. Then convert the 'if' and stuff to VBScript and place it in the 'Send' box:
if herbalance=0 AND stun=0 then
outb ash
eat ash
end if
herbalance=1
ash=1
More complex stuff is better handled in the master script, which you probably don't yet have. Examples of how such a master script works are included with Mushclient. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #23 on Thu 04 Dec 2003 08:13 PM (UTC) |
| Message
| You mean:
if herbalance=0 AND stun=0 then
Send "outb ash"
Send "eat ash"
end if
herbalance=1
ash=1
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #24 on Thu 04 Dec 2003 09:02 PM (UTC) |
| Message
| if herbalance=0 AND stun=0 then
Send "outb ash"
Send "eat ash"
end if
herbalance=1
ash=1
the herbalance=0 AND stun=0 whats this checking for?
does it only send it if another command prior to it has elapsed? | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #25 on Thu 04 Dec 2003 10:33 PM (UTC) Amended on Thu 04 Dec 2003 10:35 PM (UTC) by Shadowfyr
|
| Message
| | Well, if stunned you can't do those commands, so it prevents that. It also prevents it if you are already making the attempt. Out of context of the entire script and the actual mud events that it handles, I can't say for certain. | | 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.
73,907 views.
This is page 2, subject is 2 pages long:
1
2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top