okay made a trig as shown for each but it doesnt work. the return after i enter mend bag comes up but doesnt trigger anything.
<triggers>
<trigger
custom_colour="2"
enabled="y"
match="You bend * WAY out of shape while trying to mend it!!"
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You brutally mangle * in your attempt to mend it!!"
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You buff and polish * a bit."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You cringe at the condition of * and you wish you had an anvil."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You get out a huge hammer to repair *."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You work long and hard to make * useable once again."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You get out a large hammer to repair *."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
<trigger
custom_colour="2"
enabled="y"
match="You get out a small hammer to repair *."
regexp="y"
sequence="100"
>
<send>mend %1</send>
</trigger>
</triggers>
All you have to do is capture the line which tells you that you had problems mending <item> and mend it again, like this:
<triggers>
<trigger
enabled="y"
match="You bend * WAY out of shape while trying to mend it!!"
sequence="100"
>
<send>mend %1</send>
</trigger>
</triggers>
Now make one of those for each message. Since it matches on a wildcard, it will apply to suits, swords etc.
well , by typing "mend suit" will prompt one of these responses
(not in any particular order):
"You bend suit WAY out of shape while trying to mend it!!"
"You brutally mangle suit in your attempt to mend it!!"
"You cringe at the condition of suit and you wish you had an anvil."
"You get out a huge hammer to repair suit."
"You get out a large hammer to repair suit."
"You get out a small hammer to repair suit."
"You work long and hard to make suit useable once again."
so for each of those (7) responses i made a trigger to send out "mend suit" again.
mending will either end in:
FIX IT:You look at an suit in amazement!!! It is obvious you have created a masterpiece!!
BREAK IT: The suit in your attempt to mend it and it is TOTALLY DESTROYED!!
so my problem is that for each item i mend i have to make a whole new set of these
i tried to copy and paste it but it was too long.. didnt let me save..
my triggers are random ones that i made for me mudding..
eg. i get a king endorsement from head; rem cd; put cd head; wear king
here is a link good for a week..
https://www.yousendit.com/download/T2dkVWRwMGsyWGUwYjhUQw
k i still dont get how to write a script..
how do you input a wildcard as a trigger..
say mending equipment..
i will type <mend *> with * being the obj.
and the mud returns <You buff and polish * a bit.>
i want to keep sending <mend *> till it doesnt return the msg.
that link is very useful.. i dont think i got that far.
the only items i have in my world is triggers and aliases..
eg
Alias (rune) (cast 'rune')
Trigger (You get a heal from your bag) triggers (quaf heal)
i havent got to the steps on the link.. will check it out and report back.. thanks NICK!
triggers work fine.. but i cant get the script and varibles to work.. triggers and alias work fine..
i dont think i can get the wild card to work also.. is that possible?
They work but they don't work? Of course you can get wildcards to work. They are used extensively by many people.
This is all very vague without showing what you are doing, and what you are expecting to match.
Can you please copy and paste the trigger you are working on ...
For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.
If it calls a script, copy and paste the script. I presume it isn't very long.
also i dont know how to turn on the script.. in the script config page, under script prefixes its says (not active) how do i turn it on?
i tried to make a simple script comment to see it actually do something like get heal bag but it doesnt even run that..
been stuck for a while.
do you have a simple short script that works on a particular mud so i can compare and see what i am doing wrong?
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.