Log in

View Full Version : flteching script help



wetsand
09-30-2020, 01:25 PM
Can anyone please help me make this script complete crossbow bolts vs arrows? I messed with changing items in the code but I can't figure out how to remove the nocking portion(as bolts don't require them).

https://pastebin.com/33Zy2V4H

Tgo01
09-30-2020, 01:43 PM
I wanna say if after this line:

nocked = fletched = cut = whittled = false

You add this line:

nocked = true

It should skip nocking.

wetsand
09-30-2020, 01:55 PM
Like this?

nocked = fletched = cut = whittled = false
nocked = true

or

nocked = fletched = cut = whittled = false nocked=true

I tried both

even did nocked = fletched = cut = whittled = false = nocked=true

Still returning a false on nocking

[crossbowboltstest]>cut #353645522 with #352949009
You pare away the excess wood, taking care to keep the shaft straight. Looking over the shaft, you note numerous rough spots and an overall curvature that would probably look right on a strung bow.
Roundtime: 31 sec.
>
[crossbowboltstest: shaft cutting success]
>
[crossbowboltstest]>cut nocks in #353645522 with #352949009
Crossbow shafts do not require nocks.
>
[crossbowboltstest: unknown nock cutting result: false]
[crossbowboltstest]>drop shaft
You drop a single crossbow shaft.

Tgo01
09-30-2020, 01:56 PM
nocked = fletched = cut = whittled = false
nocked = true

This one

wetsand
09-30-2020, 02:14 PM
Okay after deleting and saving the nocked= true is working but now is hanging due to full hands.

[crossbowboltstest: shaft cutting success]
>
[crossbowboltstest]>remove #352949005
...wait 1 seconds.
>
[crossbowboltstest]>remove #352949005
You need a free hand for that.

Tgo01
09-30-2020, 02:36 PM
After this line:

echo "shaft cutting success"

put this line:

fput "put ##{Dagger.id} in ##{Fletchsack.id}"

So it would look like:



echo "shaft cutting success"
fput "put ##{Dagger.id} in ##{Fletchsack.id}"

wetsand
09-30-2020, 02:52 PM
Yay! I got it going, hopefully. Just needed a StoreTool() in the shaftcutting success def.

wetsand
09-30-2020, 02:53 PM
Thank you for the help.