Hi guys, it's my first time here, I searched and read lots of things but could not find a solution to make the script I was making work.
There are two things I did not understand, one is in index 3, is it possible to search for more pngs in a region?
then if almost one png is found I'd need to go back to index 2 and repeat 3, this for 2 times maximum, then if one of pngs is found for 3 times I should go to index 9, change team and repeat searching for opponents, or else go on to battle, how can I do that?
And in search opponent, if i want to skip change opponent is it correct to use index + 2?
--search opponent
------ 1 -----
touchList[index] = {target = "9.png", region = Region(1573, 501, 1040, 640), id = "9", action = 'click'}
index = index + 2
--change opponent
------ 2 -----
touchList[index] = {target = "10.png", region = Region(1573, 501, 1040, 640), id = "10", action = 'click'}
index = index + 1
--check if opponent has key characters to avoid, if there are go back to 2, if there are not go on to 4
------ 3 -----
touchList[index] = {target = "cap.png;tha.png;min.png;hel.png;sym.png;emm.png;pho.png;bb.png;iw.png;ult.png;zem.png;oct.png", region = Region(1417, 175, 700, 500), id = "11", action = 'idontknowhowtomakeitgobackto2'}
index = index + 1
--battle
------ 4 -----
touchList[index] = {target = "12.png", region = Region(672, 506, 1040, 640), id = "12", action = 'click'}
index = index + 1
--autoplay
------ 5 -----
touchList[index] = {target = "13.png", region = Region(-120, -120, 1040, 640), id = "13", action = 'click'}
index = index + 1
--x2 if x1
------ 6 -----
touchList[index] = {target = "14.png", region = Region(-120, -120, 1040, 640), id = "14", action = 'click'}
index = index + 1
--x3 if x2
------ 7 -----
touchList[index] = {target = "15.png", region = Region(-120, -120, 1040, 640), id = "15", action = 'click'}
index = index + 1
--continue at end game either win or lose
------ 8 -----
touchList[index] = {target = "16.png", region = Region(653, 574, 1040, 640), id = "16", action = 'click'}
index = index + 1
--change team
------ 9 -----
touchList[index] = {target = "17.png", region = Region(-120, 503, 1040, 640), id = "17", action = 'click'}
index = index + 1
--stop if battle costs 25 charges
------ 10 -----
touchList[index] = {target = "18.png", region = Region(672, 506, 1040, 640), id = "18", action = 'scriptExit()'}
index = index + 1
-EDIT: I found there's a findA_ClickB action, where can I find a list of those actions? Is it possible to have a findA or B or C or D or E_ClickF one?