Ran into a similar problem recently.. Sadly while gammon added direct setting of variables in triggers, setting them in aliases is still not possible without using a script (inconvenient of all you are trying to do is set one variable). :p Worse, placing /world.setvariable "mob", %1 won't work either since the output from aliases is never processed prior to sending it (though I think macros do/did allow this??)... How about some consistancy here Gammon? lol
What you need to do is use notepad to create a file containing the following:
sub Setname(aliasname, output, wildcards)
world.setvariable "mob", wildcards(1)
end sub
Save this file as a .vbs, but make sure to use "" or notepad will save it as file.vbs.txt. :p
Once you have this file you can turn on scripting, set the type to vbscript and point the program at the file you just created. Then just add a label and the new script name 'Setname' to the alias you use and each time you use it the variable should be set. ;)
Oh and to Gammon again... I thought several times of trying to create something that could 'simulate' zmud scripting for those making a switch, but this is one good example of why it will likely never be possible. :p Unless I am mistaken, even if you could write a plugin script that could parse the zmud code and generate a new script that duplicates it... is there a way to then auto-load it from the same script? Some stuf can simply be run in an true emulation, but things like creating a trigger that also contains a script... Hmm.. Gotta think about it a bit. It may not be worth it. Though it would probably (like MXP under zmud) be more stable as a mushclient plugin. lol |