Moefie 0 Share 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 Link to comment Share on other sites More sharing options...
Einsteinium 2 Share 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(). Link to comment Share on other sites More sharing options...
Moefie 0 Author Share 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 😛 Link to comment Share on other sites More sharing options...
Einsteinium 2 Share 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? Link to comment Share on other sites More sharing options...
Moefie 0 Author Share 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? Link to comment Share on other sites More sharing options...
Moefie 0 Author Share Posted December 10, 2018 This is what I got right now, stil doesn't work. Link to comment Share on other sites More sharing options...
Einsteinium 2 Share 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 ==. Link to comment Share on other sites More sharing options...
Moefie 0 Author Share Posted December 10, 2018 Something like this ? Link to comment Share on other sites More sharing options...
Einsteinium 2 Share Posted December 10, 2018 Yeah, that would work I think. Link to comment Share on other sites More sharing options...
Moefie 0 Author Share Posted December 10, 2018 Oh well it doesn't work Damn... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.