Hello MUSHers!
So I'm having an issue.
What I'm trying to do is set a trigger to recognize a variable. Only way I can think is by using wildcards in the trigger.
(using picking herbs as an example)
Usually wildcards are used like this:
Trigger:
There are sixty batches of * here.
Send:
Send ("pick %1")
I want it to, rather than picking %1, pick a variable. So say I have a variable @target set to "witan". I want the trigger to see "@target" (in this case "witan")
So the output would be:
There are sixty batches of witan here.
Trigger would be:
There are sixty batches of * here.
And because the target is "witan", it would trigger. And if the target was not witan, it doesn't trigger.
Basically what I want is to script it so that the client recognizes "*" as "@target" or in this example "witan".
I'm not sure if it's possible or if there is another function I need to use. I've looked into it on the MUSHclient website, but know luck as I don't know much of the Lua jargon.
I don't know if any of that makes sense to you guys, but any help would be amazing.
Thanks,
Strex
So I'm having an issue.
What I'm trying to do is set a trigger to recognize a variable. Only way I can think is by using wildcards in the trigger.
(using picking herbs as an example)
Usually wildcards are used like this:
Trigger:
There are sixty batches of * here.
Send:
Send ("pick %1")
I want it to, rather than picking %1, pick a variable. So say I have a variable @target set to "witan". I want the trigger to see "@target" (in this case "witan")
So the output would be:
There are sixty batches of witan here.
Trigger would be:
There are sixty batches of * here.
And because the target is "witan", it would trigger. And if the target was not witan, it doesn't trigger.
Basically what I want is to script it so that the client recognizes "*" as "@target" or in this example "witan".
I'm not sure if it's possible or if there is another function I need to use. I've looked into it on the MUSHclient website, but know luck as I don't know much of the Lua jargon.
I don't know if any of that makes sense to you guys, but any help would be amazing.
Thanks,
Strex