Can anyone help convert this script to MUSH ? thanks!
#TRIGGER {If (%1) cows jumped into Runaway River and (%2) } {#math answer %1-%2;say @answer}
#TRIGGER {If (%1) beavers and (%2) beavers got together with (%3)} {#math answer %1+%2+%3;say @answer}
#TRIGGER {If (%1) eggs were lain each by (%2) } {#math answer %1*%2;say @answer}
#TRIGGER {If (%1) nuts were saved for winter storage and (%2)} {#math answer %1/%2;say @answer}
Thank you very much! i have one more thing to bug ya about, can i add the normal * wildcard to the fronts and ends of these, and if so, where would i put them so the triggers would still run?
In other triggers, yes, However these are "regular expressions", so the syntax is a bit different. Append .*$ (period, asterisk, Dollarsign) to the end (or (.*)$ (Same as before but with the parenthesis) if you want to be able to reference what was in them (with the %# type thing).
Maybe i'm a bit slow, but i still cant get them to work. basiclly, i just want Mush to read the math parts, and add them up, or what ever funnction is neded, but it needs to ignore the rest of the sentence, because it will be diffrenet each time, if it were to be the world it would be somthing like this the star above a part of the sentence means i need that part to be wildcarded.
(* *)
Soandso says ,"If (#) beavers and (#) beavers got together
(* *)
with (#) blah blah ."
thanks for the help
Why dont you post some examples, triggers are fickle things, if you drop one space, or punctuation mark, they wont match.
Also, you can try making the triggers change the color of the text, to see if they are matching at all. (theres a drop down menu on the edit trigger screen.)
Actually, YOUR problem is the Say part. You can solve it two ways. Does the same person say it every time? Or is there a list of people that will? Or Do you want to respond to everyone everytime a question is asked?
You can delete the caret (^) off of the front of each, and it will work fine (even without the wildcards at the end). Or you can add the XXXX says '[rest of the trigger]' to it.
Zmud triggers are fairly crude, They can be easily spoofed since you cant anchor them to anywhere, and for the most part they match on pieces of the lines. Mushclient ones are a smidge trickier to use, if youre not used to them, but theyre a lot more versatile, and a lot harder to fool.
These would the four match texts:
If (\d+) cows jumped into Runaway River and (\d+)
If (\d+) beavers and (\d+) beavers got together with (\d+)
If (\d+) eggs were lain each by (\d+)
If (\d+) nuts were saved for winter storage and (\d+)