I wrote this one for my mechanical crossbow:
Code:
fput "cock my crossbow"
waitrt?
fput "stance defensive"
fput "get 1 my bolt from my #{GameObj[UserVars.ammosack]}"
if (GameObj.right_hand.noun == 'bolt')
fput "load my crossbow"
fput "kneel"
fput "stance offensive"
else
waitrt?
fput "stow right"
fput "get 1 my bolt from my #{GameObj[UserVars.ammosack]}"
fput "load my crossbow"
fput "kneel"
fput "stance offensive"
end
match 'loaded', 'can only hold up to three bolts!'
match 'loaded', 'You must have your other hand free'
match 'fire', 'You fire'
match 'fire', 'I could not find'
match 'fire', 'is quite dead already'
fput "fire " + script.vars[1]
matchwait
loaded:
if GameObj.right_hand.noun == 'bolt'
fput "put bolt in bolt in my #{GameObj[UserVars.ammosack]}"
fput "fire " + script.vars[1]
else
fput "stow right"
fput "fire " + script.vars[1]
end
fire:
waitrt?
waitrt?
fput "stand"
fput "stance defensive"
Usage - ;bolt <target>