Fate-Grand-Order_Lua icon indicating copy to clipboard operation
Fate-Grand-Order_Lua copied to clipboard

Support selection does not work when a friend has not set any support Servants

Open metapea opened this issue 4 years ago • 3 comments

If you have friends with newer players, this is a problem since the scrip will just stop if out of nowhere if one of them shows up on the top of the screen like this when the scrip is selecting a support servant. All the scrip will do is just click on the gray part on the left until the player/user click on a servant manually. Is there any way where you can tell the scrip to ignore the grey part or check to see if it's says "Servant: Not Set" and then go to the one below it when choosing a support servant.

metapea avatar Mar 20 '20 20:03 metapea

Are you running the latest commit? In #335, @TryBane changed support_region_tool.png from this:

To this:

So it should work, I guess. What's the option you're using? preferred or first?

potchy avatar Mar 20 '20 20:03 potchy

Are you running the latest commit?

I was using the "Merge pull request #343 from reconman/fix-debug-option" one before now.

What's the option you're using? preferred or first?

Are you taking about the lua scrips? if then so, then i'm just using the default settings.

metapea avatar Mar 20 '20 20:03 metapea

This is due to the script can not find a friend support on the first screenshot, it will stop there instead of trying to scroll and find one. In selectPreferred, change the code to:

if result == "ok" then
			click(support)
			return true

		elseif result ~= "ok" and numberOfSwipes < Support_SwipesPerUpdate then
			scrollList()
			numberOfSwipes = numberOfSwipes + 1
			wait(0.3)

should fix this

Abdallah198UX avatar Jun 06 '20 06:06 Abdallah198UX