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
| Hathcock
(49 posts) Bio
|
| Date
| Mon 01 Dec 2003 11:54 AM (UTC) |
| Message
| Ok, I bought a system for Zmud, then decided I hated Zmud, now I need to convert the system to Mushclient, if anyone can help I'd be very grateful. This is all confusing, so if there is help, I will need it step by step, sorry.
Zmud Writhebalance in MSScript / VBSript
#CLASS {Writhebalance}
#TRIGGER {Sticky strands of webbing spray out from %1 to cover you.} {
web=1
#if {@writhe=0} {writhe}
}
#TRIGGER {blade back and plunges it deep into your helpless body} {
impale=1
#if (@writhe=0) {writhe}
}
#TRIGGER {reaches out and draws you close} {
feed=1
#if {@writhe=0} {writhe}
}
#TRIGGER {Strangely, you forget whatever it was you were doing and feel inwardly } {
transfix=1
#if {@writhe=0} {writhe}
}
#TRIGGER {You spring a trap!! A loop of rope entwines around you} {
rope=1
#if {@writhe=0} {writhe}
}
#TRIGGER {You begin to writhe furiously to escape the blade that has impaled you.} {writhe=1}
#TRIGGER {You begin to trying to wrest your mind free of that which has transfixed it.} {writhe=1}
#TRIGGER {You exert your will and attempt to writhe free of the vampire's embrace.} {writhe=1}
#TRIGGER {You have writhed free of your state of transfixation.} {
transfix=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
ebay
}
#TRIGGER {Summoning your will, you writhe free of * agonizingly pleasurable} {
feed=0
wrbal
as
}
#TRIGGER {You have writhed free of your entanglement by tied ropes.} {
rope=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free of your entanglement by ropes.} {
rope=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free of your entanglement by webs.} {
web=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free} {writhe=0}
#TRIGGER {With an heroic effort you manage to writhe yourself free from the weapon} {
impale=0
wrbal
}
#TRIGGER {blade back and plunges it deep into your helpless body} {
impale=1
#if (@writhe=0) {writhe}
}
#TRIGGER {reaches out and draws you close} {
feed=1
#if {@writhe=0} {writhe}
}
#TRIGGER {Sticky strands of webbing spray out from %1 to cover you.} {
web=1
#if {@writhe=0} {writhe}
}
#TRIGGER {Strangely, you forget whatever it was you were doing and feel inwardly } {
transfix=1
#if {@writhe=0} {writhe}
}
#TRIGGER {Summoning your will, you writhe free of * agonizingly pleasurable} {
feed=0
wrbal
as
}
#TRIGGER {With an heroic effort you manage to writhe yourself free from the weapon} {
impale=0
wrbal
}
#TRIGGER {You begin to trying to wrest your mind free of that which has transfixed it.} {writhe=1}
#TRIGGER {You begin to writhe furiously to escape the blade that has impaled you.} {writhe=1}
#TRIGGER {You exert your will and attempt to writhe free of the vampire's embrace.} {writhe=1}
#TRIGGER {You have writhed free of your entanglement by ropes.} {
rope=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free of your entanglement by tied ropes.} {
rope=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free of your entanglement by webs.} {
web=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
}
#TRIGGER {You have writhed free of your state of transfixation.} {
transfix=0
wrbal
#ECHO YOU'RE FREE!!!
#cw 12
ebay
}
#TRIGGER {You have writhed free} {writhe=0}
#TRIGGER {You spring a trap!! A loop of rope entwines around you} {
rope=1
#if {@writhe=0} {writhe}
}
#CLASS 0 | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #1 on Mon 01 Dec 2003 11:58 AM (UTC) |
| Message
| Wow, I didn't know it was that long, if you can do like the first 2 triggers (which ever 2 those are, I'm completly lost) I should be able to figure it out, I had another question, what are the random values for triggers, such as for zmud, a simple trigger looks like this
%w forms a spear hand and stabs out at you.$* connects to the * arm!
send: #var attack 1
thanks again for the help | | Top |
|
| Posted by
| Johnathan Allen
(49 posts) Bio
|
| Date
| Reply #2 on Mon 01 Dec 2003 01:31 PM (UTC) |
| Message
| | Lets start at the beginning. Can you post the strings that you'd like to match, and what you'd like to do with them? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #3 on Mon 01 Dec 2003 04:32 PM (UTC) |
| Message
| Hmm, it seems that the same triggers appear multiple times... is that normal?
You should post some example text of what you're trying to match, that always makes it easier to see exactly what we're looking for.
By the way, how does one writhe free from being impaled on a blade? Seems that once you're impaled on the blade you're sort of, well, dead. :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #4 on Mon 01 Dec 2003 08:13 PM (UTC) |
| Message
| | I'm not sure what I'm doing....I can e-mail anyone that wants a copy of the Zmud trigger/alias system so you can see it personally, but I'm not sure what I would copy so you can see what I'm having problems with.....hmmmm, the impale thing is a good point.... | | Top |
|
| Posted by
| Johnathan Allen
(49 posts) Bio
|
| Date
| Reply #5 on Mon 01 Dec 2003 08:52 PM (UTC) |
| Message
| | Give us direct quotes from the game and tell us what you want to do with them, would be a better way to phrase it, I guess. | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #6 on Mon 01 Dec 2003 09:31 PM (UTC) |
| Message
| lol, thats the problem, I bought the system because it takes months to build your own. It's a system based around curing afflictions and healing when you fight. All I have to go on is what Zmud has in it's files, which is what I copied above. the Writhebalance confuses the hell outta me, and I don't even know what to look for. Here is all I can do, sorry again for my ignorance.
Zmud version:
Pattern:%w dodges nimbly to the side and trips you to the floor.
Command: #echo ****STAND!!! STAND!!!****;#cw 6786;#temp {You have recovered} {stand}
----------------------------------
the %w is the random target or name I guess of the character doing the attack on you, what does mushclient use in place of that? Second, I'm not even sure what all that crap thats in the command section is, I would assume that all I would want to have sent is STAND....I don't know what the hell the #echo crap means | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #7 on Tue 02 Dec 2003 12:33 AM (UTC) |
| Message
| Well it is a mess and I have no clue if it will actually work, but:
<triggers>
<trigger
enabled="y"
group="Writhebalance"
match="^Sticky strands of webbing spray out from %1 to cover you\."
regexp="y"
send_to="12"
>
<send>web = 1
if writhe = 0 then send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="blade back and plunges it deep into your helpless body"
send_to="12"
>
<send>impale = 1
if writhe = 0 then send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="reaches out and draws you close"
send_to="12"
>
<send>feed = 1
if writhe = 0 then send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="Strangely, you forget whatever it was you were doing and feel inwardly "
send_to="12"
>
<send>transfix = 1
if writhe = 0 then send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You spring a trap!! A loop of rope entwines around you"
send_to="12"
>
<send>rope = 1
if writhe = 0 then send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You begin to writhe furiously to escape the blade that has impaled you."
send_to="12"
>
<send>writhe = 1
send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You begin to trying to wrest your mind free of that which has transfixed it."
send_to="12"
>
<send>writhe = 1
send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You exert your will and attempt to writhe free of the vampire's embrace."
send_to="12"
>
<send>writhe = 1
send "writhe"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You have writhed free of your state of transfixation."
send_to="12"
>
<send>transfix = 0
send "wrbal"
colournote "red","black","YOU'RE FREE!!"
send "ebay"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="Summoning your will, you writhe free of * agonizingly pleasurable"
send_to="12"
>
<send>feed = 0
send "wrbal"
send "as"</send>
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="^(You have writhed free of your entanglement by tied ropes\.|You have writhed free of your entanglement by ropes\.)"
regexp="y"
send_to="12"
>
<send>rope = 0
send "wrbal"
colournote "red","black","YOU'RE FREE!!"
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You have writhed free of your entanglement by webs."
send_to="12"
>
<send>web = 0
send "wrbal"
colournote "red","black","YOU'RE FREE!!"
</trigger>
<trigger
enabled="y"
group="Writhebalance"
match="You have writhed free"
send_to="12"
>
<send>writhe = 0</send>
<trigger
enabled="y"
group="Writhebalance"
match="With an heroic effort you manage to writhe yourself free from the weapon"
send_to="12"
>
<send>impale = 0
send "wrbal"</send>
</triggers>
| | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #8 on Tue 02 Dec 2003 12:35 AM (UTC) |
| Message
| | I get the feeling that some of the repeated stuff in the original was just flat out confusion on the part of the designer. Some of it did things that could be done in a single trigger and others where just plain redundant. | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #9 on Tue 02 Dec 2003 12:41 AM (UTC) |
| Message
| | wow, thanks, Do I just copy and paste that whole script into one trigger now? orwhat? I really am thankful for this help | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #10 on Tue 02 Dec 2003 12:47 AM (UTC) |
| Message
| ok, I'm starting to get how this works now...a few more questions...what do the following things actually do?
^
%1
%2
%3
* (* this is a wildcard right?) | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #11 on Tue 02 Dec 2003 01:18 AM (UTC) |
| Message
| Hmm.. Actually, the first trigger in there needs to be:
match="^Sticky strands of webbing spray out from .* to cover you\."
I forgot the %1 was in there. :(
However, to answer your question:
'^' is a special character used with 'regexp' types. It means "only match if this is at the start of a line".
'*' is a wildcard, however in the line above you will notice I use '.*' instead, this is because * has a different meaning in regular expressions (regexp="y" types). In regexp it means "more than one of the prior item" and "." is the wildcard. Specifically - '.*' means "match any character + more than one of this character". This is identical to '*' when used in normal triggers. There is no real reason that first trigger should use it, but I later use this:
^(You have writhed free of your entanglement by tied ropes\.|You have writhed free of your entanglement by ropes\.)
In this case the '()' are a sub-collection and '|' means 'or', so it will match either one of those strings, which saves having to have more than one trigger.
As for things like %1, %2, %3, etc. These are the 'values' of a wildcard. These cannot be used in the 'match' field. Used in the send field they directly substitute the word(s) captured. For instance a trigger like:
match="* says: Hi!"
<send>say Hi %1.</send>
Would do this:
Line recieved - Fred says: Hi!
%1 becomes "Fred" and the trigger would send "say Hi Fred."
You will also notice that I use send_to="12" in several places. This means "treat all the stuff in <send></send> as code. In that case you would need to place "" around the %1 or direct substitution would result in the script thinking that the word(s) are variables, not a value. Using the above example:
Normal trigger - say Hi %1.
Using send_to="12" - send "say Hi %1."
The " is the XML version of ". If you are creating a trigger directly in Mushclient you would use the normal character, not the XML version.
As for how to use it all, you just fix the minor mistake I made, copy it all into the clipboard and use the "Paste" button in the trigger editing menu. Assuming I didn't screw up the actual XML code, it should copy the whole mess right into the trigger list. ;) | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #12 on Tue 02 Dec 2003 02:33 AM (UTC) |
| Message
| | hmmm, I must be doing something wrong.... it didn't work, I pasted the text into the trigger part right? by pushing the little button to the left of the field that has the ... in it? I pasted all that in there...... | | Top |
|
| Posted by
| Hathcock
(49 posts) Bio
|
| Date
| Reply #13 on Tue 02 Dec 2003 02:40 AM (UTC) |
| Message
| Here's one I've been playing around with trying to figure it out and I cant get it to work...
In a sensuously fluid motion, Kismit reaches out and draws you close, baring
pale fangs before sinking them into the tender flesh of your neck. Horrified,
you go limp as the pain intermingles with indescribable pleasure.
what do I set the trigger for and how? I need it to allow me to writhe | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #14 on Tue 02 Dec 2003 02:41 AM (UTC) |
| Message
| | Hilight all of the triggers, then use Ctrl-C to copy them. If mushclient recognizes what is now in the clipboard as being a set of triggers, then a button that says "Paste" will be available in the trigger menu. That is all there is too it. | | 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,897 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top