Talk to Lotom slowly in AutoLoto #8
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.