Moefie 0 Posted December 10, 2018 Hello guys, So today I tried to write a script with the help of a youtuber. I think this is what I want, so I tried to run it and it doesn't do anything. Anyone knows whats the problem ? Cheers
Einsteinium 2 Posted December 10, 2018 The action for chopping trees is "Chop down" case sensitivity will get ya. Your banking method is interesting seeing as you used getBank(), but also use NPC's. This could be a lot simpler with just the use of getBank().
Moefie 0 Author Posted December 10, 2018 I fixed the "Chop down" but it didn't do anything . Also this is my first time writing a script so ye 😛
Einsteinium 2 Posted December 10, 2018 You also aren't setting your GameObject to "Tree," you're just checking if your tree object is equal to "Tree." How could it without being set?
Moefie 0 Author Posted December 10, 2018 So what do I need to change then exacly , if I where to say that I want to chop regular logs?
Einsteinium 2 Posted December 10, 2018 Ok, so I would delete the lambda statement in your GameObject statement. Just do something like GameObject tree = getGameObjects.closest(Tree); this will set your tree object to whatever String you pass in when calling this function. Also, your lambda in the sleepUntil method wont work. It will stop after one log I believe, try changing countLog with getInventory().isFull(); and the > into a ==.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.