So hello, I have been using Mushclient for a while. I am (barely) capable of making the simplest of triggers and aliases but what I have is mostly snagged from other scripts or just lucky guesses.
Anyway I have been trying to make two 'simple' triggers, the idea is this.
In a mud someone says something over a channel called a web and I respond to that.
The phrase would look like this:
(Web): Someone says, "Jack - COLOUR."
To which I do a command that switches to arrows of that colour.
The other phrase is:
(Web): Someone says, "TARGET is our target to the DIRECTION."
Which would lead me to targeting the target (I can target manually doing TAR TARGET) but also saving the Direction as a variable.
So later when someone says over that web, Fire.. I do AIM TARGET DIRECTION and SHOOT TARGET DIRECTION
I -thought- I finally had it but.. alas.. I suck.
Now I already have some sort of a 'system' which has the variable target in it.. I was looking to implement this in that but I'll show what I had up until now. (which doesn't work) I had been browsing about, but I think the problem lies with it not properly picking up the (Web) part though I could be wrong, please do point out what I did wrong and how I could prevent this in the future, my utmost thanks for you time reading this and any possible help offered.
Anyway I have been trying to make two 'simple' triggers, the idea is this.
In a mud someone says something over a channel called a web and I respond to that.
The phrase would look like this:
(Web): Someone says, "Jack - COLOUR."
To which I do a command that switches to arrows of that colour.
The other phrase is:
(Web): Someone says, "TARGET is our target to the DIRECTION."
Which would lead me to targeting the target (I can target manually doing TAR TARGET) but also saving the Direction as a variable.
So later when someone says over that web, Fire.. I do AIM TARGET DIRECTION and SHOOT TARGET DIRECTION
I -thought- I finally had it but.. alas.. I suck.
Now I already have some sort of a 'system' which has the variable target in it.. I was looking to implement this in that but I'll show what I had up until now. (which doesn't work) I had been browsing about, but I think the problem lies with it not properly picking up the (Web) part though I could be wrong, please do point out what I did wrong and how I could prevent this in the future, my utmost thanks for you time reading this and any possible help offered.
Quote:
<triggers>
<trigger
enabled="y"
match="(?s)^(Web)\:\s+\w+\s+says\,\s+"\s+NAME\s+.\s+(\w+)\s+"\.\Z"
regexp="y"
send_to="2"
sequence="100"
>
<send>secure bastard
bowstance
switch %1
ColourNote "crimson", "silver", "Switching to %1"</send>
</trigger>
<trigger
enabled="y"
match="(?s)^(Web)\:\s+\w+\s+says\,\s+"\s+(\w+)\s+is\s+our\s+target\s+to\s+the\s+(\w+)\s+"\.\Z"
regexp="y"
send_to="2"
sequence="100"
>
<send>world.SetVariable "target", "%1"
ColourNote "deepskyblue", "black", "Target: %1"
world.SetVariable "direction", "%2"
ColourNote "green", "black", "Dir: %2"</send>
</trigger>
</triggers>
<variables>
<variable name="target"></variable>
<variable name="direction"></variable>
</variables>