Code:
def cmd_fire(target)
critter_needs_to_be_legged = true
waitrt?
if (target.status =~ /prone|sit|lay|kneel|stun|sleep/i)
fput "get 1 my arrow"
result = dothistimeout "fire ##{target.id} right eye", 2, /round(time)?/i
if result =~ /round(time)?/i
critter_needs_to_be_legged = nil
elsif result.nil?
nil
end
end
if (critter_needs_to_be_legged)
fput "get 1 my arrow"
result = dothistimeout "fire ##{target.id} right leg", 2, /round(time)?/i
if result =~ /round(time)?/i
nil
elsif result.nil?
fput "fire ##{$my_target.id} right leg"
end
end
end
>
[bigshot]>get 1 my arrow
You already have that.
>
[bigshot]>fire #19445912 right leg
I do not understand, please rephrase that.
Changing FIRE to AMBUSH:
[bigshot]>get 1 my arrow
You already have that.
>
[bigshot]>ambush #19451339 right leg
You thrust with an arrow at a XXX!
AS: +101 vs DS: +141 with AvD: +4 + d100 roll: +26 = -10
A clean miss.
Roundtime: 6 sec.
Why does it work differently for ranged?