TheJokester117
2011-12-22 22:52:57
Alright, so I followed YoHoJo's tutorial for scripting, and decided to make my own. Problem is, I'm running into a few problems. What I basically did was modify the code he taught in the tutorials to cut Yew trees in Edgeville.(Credit to him.) After I get these problems solved, I'm going to add walking and banking to the script too.
Anyways, here's a few questions to start:
1. The 2 Yew trees in Edgy have 2 sides. Of the Northern tree, the color is 5003874. Of the Southern tree, the color is 3357762. I'm using the following line of code:
That code works great for finding and chopping the northern tree. But, my problem is once the tree is cut down, I need to cut the other tree. The code for that would be:
I'm having trouble making an statement along the lines of
I don't know if I'm just a noob, but I can't for the life of me write a working code for this. I basically need it to check for the other tree once one is chopped down.
For now, this really is the only problem I've run into with the chopping part. It cuts the north tree fine, and the WriteLn debugs I've set up for it works great. I just can't get it to check for the southern tree. Any help is greatly appreciated, because once I solve this I can move onto the walking and banking parts.
Anyways, here's a few questions to start:
1. The 2 Yew trees in Edgy have 2 sides. Of the Northern tree, the color is 5003874. Of the Southern tree, the color is 3357762. I'm using the following line of code:
if FindObjTPA(X,Y, 5003874, 10, 1, 15, 60, 600, ['Cho']) thenThat code works great for finding and chopping the northern tree. But, my problem is once the tree is cut down, I need to cut the other tree. The code for that would be:
if FindObjTPA(X,Y, 3357762, 10, 1, 15, 60, 600, ['Cho']) thenI'm having trouble making an statement along the lines of
if tree 1 (the northern tree) is not found (chopped down) then
rotate camera angle and find tree 2 (the southern tree).I don't know if I'm just a noob, but I can't for the life of me write a working code for this. I basically need it to check for the other tree once one is chopped down.
For now, this really is the only problem I've run into with the chopping part. It cuts the north tree fine, and the WriteLn debugs I've set up for it works great. I just can't get it to check for the southern tree. Any help is greatly appreciated, because once I solve this I can move onto the walking and banking parts.