Janalon2008-11-09 12:22:20
Not real great with coding triggers-- even in Nexus (which is the client I am currently using). Was wondering if I threw something out there, that someone could offer some input.
Just acquired Scorpion Spit in the Nekotai skill set. I want it to respond that when I get poisoned, I will spit my poison back at a target. Easy enough:
Alias: Glands in your mouth secrete
Group: poison
Script: spit &tar
But I want to give it conditions. If that target is a mob, I will get the error message that:
I do not recognize anything called that here.
OR
Ahh, I am truly sorry, but I do not see anyone by that name here.
SO, I wanted to amend my script with an If Then so IF i get one of those two error message, THEN I will spit rather than spit &tar.
Also, is there a way to gag the error message so it appears seamless on my end?
FINALLY is there any possibility that IF I sip a poison from a vial, THEN it won't trigger this whole alias?
Just acquired Scorpion Spit in the Nekotai skill set. I want it to respond that when I get poisoned, I will spit my poison back at a target. Easy enough:
Alias: Glands in your mouth secrete
Group: poison
Script: spit &tar
But I want to give it conditions. If that target is a mob, I will get the error message that:
I do not recognize anything called that here.
OR
Ahh, I am truly sorry, but I do not see anyone by that name here.
SO, I wanted to amend my script with an If Then so IF i get one of those two error message, THEN I will spit rather than spit &tar.
Also, is there a way to gag the error message so it appears seamless on my end?
FINALLY is there any possibility that IF I sip a poison from a vial, THEN it won't trigger this whole alias?
Shiri2008-11-09 12:37:33
1. There should be more error messages than that, check them.
2. There's no way to do exactly what you want. What you would have to do is make all the error messages triggers that do this:
#if $scorpionspit = on { spit }
#set scorpionspit off
Then have your spit $target alias also #set scorpionspit on (and your successful spit, on target or otherwise, set it off).
Note that this will have the minor side effect of also spitting on the ground whenever you're blind or someone moves, but whatever.
3. You cannot gag it. You can #highlight "black" though.
2. There's no way to do exactly what you want. What you would have to do is make all the error messages triggers that do this:
#if $scorpionspit = on { spit }
#set scorpionspit off
Then have your spit $target alias also #set scorpionspit on (and your successful spit, on target or otherwise, set it off).
Note that this will have the minor side effect of also spitting on the ground whenever you're blind or someone moves, but whatever.
3. You cannot gag it. You can #highlight "black" though.
Daved2008-11-09 16:07:23
Error messages:
Ahh, I am truly sorry, but I do not see anyone by that name here.
I do not recognize anything called that here
Nothing can be seen here by that name.
You cannot see that being here.
You detect nothing here by that name.
Ahh, I am truly sorry, but I do not see anyone by that name here.
I do not recognize anything called that here
Nothing can be seen here by that name.
You cannot see that being here.
You detect nothing here by that name.
Daganev2008-11-09 16:42:54
You could always manually set a "bashing" variable, and just set it to true when you know you are targeting NPCs.
Maybe make a macro to toggle it back and forth.
Also make a trigger on sipping poison from a vial to toggle another variable, like sippingPoison.
so your code would be like
if(&sippingPoison == 1)
{
}
else {
if (&bashing == 1)
{
spit
} else
{
spit &tar
}
}
Maybe make a macro to toggle it back and forth.
Also make a trigger on sipping poison from a vial to toggle another variable, like sippingPoison.
so your code would be like
if(&sippingPoison == 1)
{
}
else {
if (&bashing == 1)
{
spit
} else
{
spit &tar
}
}
Janalon2008-11-09 19:43:44
Thanks for all of your advice. After a ton of tinkering, I liked the most simple solution. My script is as follows:
spit &tar
spit
Yup-- that's it.
This method gives me the most immediate response while hunting; I don't have to wait for IF THEN to process on one or more variables. So I get the error message (oh well) and then I cleanse my glands by spitting.
If fighting a combatant, I will spit the poison back at them. The second spit will then act as an emote (yeah, spitting twice). Oh well.
Finally, I can choose to sip vials of poison during combat (especially if my opponent doesn't fight with an envenomed weapon). This cause the alias to respond by spitting the poison right at my opponent.
I've tested the hunting aspect, and it works well enough. Will have to give it a go in combat though to see if this is a viable solution.
spit &tar
spit
Yup-- that's it.
This method gives me the most immediate response while hunting; I don't have to wait for IF THEN to process on one or more variables. So I get the error message (oh well) and then I cleanse my glands by spitting.
If fighting a combatant, I will spit the poison back at them. The second spit will then act as an emote (yeah, spitting twice). Oh well.
Finally, I can choose to sip vials of poison during combat (especially if my opponent doesn't fight with an envenomed weapon). This cause the alias to respond by spitting the poison right at my opponent.
I've tested the hunting aspect, and it works well enough. Will have to give it a go in combat though to see if this is a viable solution.
Rika2008-11-09 19:45:14
You'll be messed up in aeon, though. But then again, spitting shouldn't be your biggest priority there.