I had some help in the game and have created a targeting alias which has this pattern: ----^t (.+)$---- and this in the big box: ----target = matches[2]----
It is saved and activated. I then have a key binding for my drawslash ability: ------send("drawslash " ..target)---- to F1 and this also is saved and activated. When I attempt to target something, a stirge for example, I get this message: Target TAR = stirge.
After this, when I type drawslash target or hit F1 I get this message: You cannot see that being here.
Anyone know what I'm doing wrong? I'd really appreciate the help.
0
Comments
Archdragon Mizik Corten, Herald of Ruin says, "Man, that was a big axk."
Hellrazor Cain de Soulis, Sartan's Hammer says, "Your [sic] a beast."
Results of disembowel testing | Knight limb counter | GMCP AB files
Results of disembowel testing | Knight limb counter | GMCP AB files
Site: https://github.com/trevize-achaea/scripts/releases
Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
(need a new keyboard, this one sucks)
If you want it to look reallllly complicated:
^\s{0,}?t{2}\s{1,}?([A-Za-z0-9'-]{1,}?)\s{0,}?$
Site: https://github.com/trevize-achaea/scripts/releases
Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
Site: https://github.com/trevize-achaea/scripts/releases
Thread: http://forums.achaea.com/discussion/4064/trevizes-scripts
Latest update: 9/26/2015 better character name handling in GoldTracker, separation of script and settings, addition of gold report and gold distribute aliases.
In any case, I think I can just barely make out the rails this thread used to be on from here. @Twy, did you ever get it working?
It's not necessary to define it in a separate script. If it's not explicitly declared local in the alias, it will be global.
But now I know you just type that to indicate something. Silly really, but there we are, now I know!
target = target or nil
doesn't DO anything, except in the case that target has been defined elsewhere as false, in which case this changes it to nil.