Page 1 of 1

Improving a Gaming Script

Posted: 24 Sep 2017, 14:08
by Flubberj
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.

Re: Improving a Gaming Script

Posted: 24 Sep 2017, 15:52
by Spawnova
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

Re: Improving a Gaming Script

Posted: 24 Sep 2017, 20:44
by Flubberj
Thank you so so much