Hey everyone!
So for my current project, I'm substituting any sort of battle system for one that instead depends on the player inputting the correct button at the correct time in order to create conditional branches which would stem from their response. For example, the down arrow flashes on the screen and the player has three seconds to press that button on their keyboard to move out of the way of an arrow flying towards their head. This, of course would happen on the map, as opposed to within battles. So for anyone who's played games like The Wolf Among Us or A Game of Thrones: A Telltale Series, it would work similar to their combat mechanics.
I posted a similar question in the Plugin Request forums without success, so I'm hoping a very skilled eventer might be able to walk me through this!
It is better if you don't post multiple requests for the same thing - that's just confusing and makes everyone do extra work. Also, you need to allow a few days for responses. The forum rules is no bumping until 3 days have passed, and reposting the same request in a new thread is just another form of bumping. Give people time.
It's quite easily eventable with a loop and a conditionnal in it's basic form.
Loop
Conditionnal Button Input
Do thing
End conditional
Wait 1 frame
End loop
If you want something more advanced have you tried my plugin ?
Thank you for your answer!
Oddly enough, I tried your method of eventing without much success. For example, say I have the button input be the 'left' button, if the character is already speaking with an event and pushing any other button, the event will fail. Also, I'm unable to set a time limit using this method. It was my first instinct as well though! And thank you for trying!
Additionally, you wouldn't happen to have a demo for your script would you? I'm more of a hands-on learner as far as figuring out how to use it.
That's intended behaviour. If you hold the ok button, the condition is true so it'll trigger multiple times in one go.
One way to fix it is to add a wait on succcesfull button inputs (something like 10/20 frames) then it will trigger only once every 20 frames when the button is held down.
If you want it to only trigger on actual button presses and not when the button is held down then you'll have to use a script call:
Condition: Script:
Input.isTriggered("ok")
I understand what you mean with your second phrase but I don't get where it comes into play. We have not talked about a fail condition yet, in our example the qte simply won't respond if you press any other button. It won't fail. Or is it what you want to do but can't manage to?
That's great, I'm glad you have figured out a working solution.
I don't have anything to add as for the event setup. It's how I do it. Even my plugin is just a more complex version of this.
You don't need the exit event processing command btw.
If you use the ok button, I suggest adding a small wait (5 frames) at the end of the QTE so that the game doesn't register the last ok trigger as a "speak to the event again" command.
Just know that's it's all fun and games until you try to have a sequence of button presses, then the conditionnals can really get messy.
It's also not straightforward to properly implement a fail condition other than a time limit.
Those two reasons and the graphical aspect are why I made the plugin cited earlier.