Hi i am working on a woodcutting script and im trying to make it detect tree ents. obviously the best way is to look for yellow text but does anyone have a good method to do this? thanks![]()
Hi i am working on a woodcutting script and im trying to make it detect tree ents. obviously the best way is to look for yellow text but does anyone have a good method to do this? thanks![]()
i got two pictures one is the yellow text and one is how it looks in top left corner but obviously it would have yellow text on it
sqjnft.png
The same way a human would detect it. First off, have your script know which tree it is you're cutting, using whatever methods you'd like to. Second, either constantly check the a box region that includes the tree (the more it includes of "only" the tree, the better) for pixelshift (color-based movement). For confirmation, when a certain amount of pixelshift is detected move your mouse over the tree you're cutting and check for yellow uptext. Perhaps you could make a bitmap of the yellow "Cut" uptext which would make it universal for all types of Ents.
Current projects:
[ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]
"I won't fall in your gravity. Open your eyes,
you're the Earth and I'm the sky..."
There are currently 1 users browsing this thread. (0 members and 1 guests)