I was wondering, how would I right a script search first, to see if a particular address were a certain value, say 154, then to look at the last charater of the hex address, and if it is not a 0, a C, a 4, or an 8, and to reject the address if it's not.
The reason I am doing this is because, right now I am trying to hack a game where there are a lot of units running around and there is a certain pattern to the addresses of their health and exp when they spawn in, as it is it is very tedious to search for the values over and over again as they change every time they level up, also, they each will have random attributes that will effect their max health or max exp before leveling so if I tried creating a template, I would have to put so many possibilties it would take forever! With their health addresses, they seem to be random, but they always have an ending hex character of a 0 or an 8, with exp, C or 4, I'm trying to do this because, on average, the search will yield tons of addresses when I search for a value in this particular game and with how small of a number their health usually is, they will die within 2 searches and it will have been in vain, I have looked at the found addresses and a lot of the useless values or always non 0,C,4, 0r 8 at the end, so if I was able to right a script search for this it would be very helpful