Results 1 to 1 of 1
Thread: Old School D&D Stat Roller
07-22-2012, 09:10 PM #1
- Join Date
- Jul 2012
Old School D&D Stat Roller
I need this to work.. lol.. what compiler should I use or can someone give me a hand? I know what I need done, just need help with the specifics..
Any help would be greatly appreciated.
Click 991X, 616Y (Roll new character)
Enter Text(Character Name)
Click 391X, 225Y (Accept Name)
Click Dwarf 280X, 285Y, Elf 273X, 285Y, Human 446X, 284Y, Halfling 277X, 310Y (Maybe make a GUI to make this easy.)
PixelGetColor, OutputVar, X, Y [,RGB]
Charasima I need to check pixel colors in this area checking 10
223X, 494Y Or so coords on X, like 223,224,225,226,227 while leaving Y at 494
223X, 476Y I guess I can use some kind of expression for these things?
Constitution Because I'll need to save each one as "IF 1 color out of the 10
223X, 454Y checkspots from left to right is yellow, then it's perfect
Dexterity If it's red it's not, black means the numbers shifted too much
223X, 432Y And i'll need to use more pixels checkers per stat.
If after the 60-100 pixel checks it does(10 or so for each stat to determine if they are yellow or red)
And it's not atleast 5/6 perfect
Click 328X, 589Y (Reroll)
IF Black screen comes up asking a simple math question
Click Screen (anywhere, it will just close the whole program)
Then, Loop back to the beggining
Loop back to Reroll and Begin checking each stats pixels to determine perfects again.