brianuuu / AutoController_swsh

Automation for various tasks in Pokemon Sword & Shield and other Pokemon games on Nintendo Switch
70 stars 19 forks source link

Talk to Lotom slowly in AutoLoto #8

Open Winedays opened 2 years ago

Winedays commented 2 years ago

My game language is Traditional Chinese (CHT), and there is a problem when running AutoLoto.

When talking with Lotom, the action is "Start to Talk"> "Try Loto-ID"> "No"> "Restart to Talk"> "Quit", waiting for a few seconds will start to skip 1 frame and repeat it. I recorded a video to show the problem, you can view it at https://youtu.be/KtRkOSLy1FM.

I think the reason may be CHT text is shorter than English, it can early go to next sentence, so the program will keep push "B" when Lotom ask player to confirm Loto-ID, and push "A" and "B" a few second, that why player will talk to Lotom again.

I think it is difficult to get a appropriate duration of "A_SPAM" and "B_SPAM" in different language, so I update AutoLoto to only push "A" & "B" four times between "Try Loto-ID" & "Yes". This should be avoided the same problem occurs in other language. In fact, this change has not been tested in other languages, or we need more tests to confirm it.