Greetings,
I am wishing to make a trigger that, once I strike my target with an arrow I call out over a channel that the target was struck and which direction the shot hit. This is usually a simple task for me but I am now using GMCP to snipe in EVERY direction (as to not have to specify such while firing) thus am not sure which direction the target it in.
I am wondering if there was a way I could find out which direction I shoot my target. I use this as my snipe alias....
for exit in pairs (gmcp.Room.Info.exits) do send("snipe "..target.." "..exit, false)
end
any help is appreciated.
assistance please
Re: assistance please
That seems the most simple way to do it. Add whatever channel you want to send it to before "%s Sniped".
Last edited by Belgarath on Wed Oct 09, 2013 4:34 pm, edited 1 time in total.
Re: assistance please
First off thank you very much for your assistance!
Is there a way to incorporate the trigger line "Your arrow strikes true!" to this so I know the arrow actually hit my target, as sometimes it misses...? Thanks again Mork!
Is there a way to incorporate the trigger line "Your arrow strikes true!" to this so I know the arrow actually hit my target, as sometimes it misses...? Thanks again Mork!
Re: assistance please
also it appears that the alias is not working properly. In debug I get:
LUA: ERROR running script snipe (Alias208) ERROR:[string "function Alias208()..."]:3: bad argument
#3 to 'format' (string expected, got nil)
LUA: ERROR running script snipe (Alias208) ERROR:[string "function Alias208()..."]:3: bad argument
#3 to 'format' (string expected, got nil)
Re: assistance please
No problem. You can make a tempTrigger with that easily enough.
And yes I noticed that. Change "exit" to "x".
Re: assistance please
would I put this temp trigger into the alias or would i create a trigger Your arrow strikes true! and put the above code into such?
Re: assistance please
... You would put it in the Alias.
Re: assistance please
So after attempting to get this to work every way I possibly know how (which really is limited) I ask again for help.
Is there a way for me to make this:
for x in pairs(gmcp.Room.Info.exits) do
if svo.bals.balance and svo.bals.equilibrium and not svo.affl.prone then
send("shoot "..target.." "..x)
end
end
only try and shoot in the direction stored in x table until I am off balance and then store which direction I shot before losing balance and storing that value in a variable so I can pull it out when I see the trigger:
Your arrow strikes true!
I can announce over partytells which direction my target was shot. I know should just make an alias that shoots in a direction I choose but I'd like to accomplish this.
If this is not possible as I am sending all directions at one time does anyone have an idea how I could go about doing such with another method? Any assistance would be greatly appreciated!
Is there a way for me to make this:
for x in pairs(gmcp.Room.Info.exits) do
if svo.bals.balance and svo.bals.equilibrium and not svo.affl.prone then
send("shoot "..target.." "..x)
end
end
only try and shoot in the direction stored in x table until I am off balance and then store which direction I shot before losing balance and storing that value in a variable so I can pull it out when I see the trigger:
Your arrow strikes true!
I can announce over partytells which direction my target was shot. I know should just make an alias that shoots in a direction I choose but I'd like to accomplish this.
If this is not possible as I am sending all directions at one time does anyone have an idea how I could go about doing such with another method? Any assistance would be greatly appreciated!