Improving a Gaming Script

Ask gaming related questions
Flubberj
Posts: 2
Joined: 24 Sep 2017, 13:52

Improving a Gaming Script

24 Sep 2017, 14:08

Essentially, I have a gaming script that I use to train Action Points by repeatedly unloading/reloading a weapon, simple stuff. I can do this as long as the enemy I'm fighting always does zero damage (which causes white text to appear in the upper left-hand corner of the screen) and once they start to do 1 damage (which causes red text to appear in the left-hand corner) I need to stop the cycle from continuing or else my character will eventually die. So, my question is if there's a way to make the script stop if that shade of red ever appears on the screen.

I assume that this will mean I'll need that exact RBG code, so if anyone has any information on the best way to find that I'd also appreciate that.
User avatar
Spawnova
Posts: 319
Joined: 08 Jul 2015, 00:12
Contact:

Re: Improving a Gaming Script

24 Sep 2017, 15:52

Generally, I will take a PrintScreen, then open it up in paint, using window spy you can see the hex colors.

from there you will want to use PixelSearch.
There is an example at the bottom of that link.

keep in mind pixelsearch assumes BGR color format. unless RGB is specified PixelSearch, outputX, outputY, x1, y1, x2, y2, color, shadeVariation, Fast RGB
Flubberj
Posts: 2
Joined: 24 Sep 2017, 13:52

Re: Improving a Gaming Script

24 Sep 2017, 20:44

Thank you so so much

Return to “Gaming”

Who is online

Users browsing this forum: Dumitas and 4 guests