Forum rules - please read before posting.

Skipping speech with the Submit button

Hi

Is it possible to skip the speech dialogue using the Submit button?

Currently Submit is mapped to Enter, so the player can walk up to a sign, hit Enter and the dialogue reads out the text. AC is set to show text forever until skipped. The player can click Skip on screen, but I want them to be able to also hit the Enter key again to Skip, thus ending the dialogue (it's one line) and hiding the UI. However doing that currently just triggers a Submit, and the dialogue resets and shows again.

Is that possible?

Olly

Comments

  • You can map SkipSpeech to the same input button that Submit is mapped to, but I'm not clear on the reset behaviour you're describing. Does your ActionList run in the background?

  • Here's what happens

    https://i.imgur.com/jEaHEbM.mp4

    The actionlist is on the right of the screen. It's set to pause gameplay and is skippable. The same thing happens whether it's skippable or not, and whether I use SkipSpeech or not in the Input Manager.

    What you see is me hitting the enter to start the dialogue and then enter to Skip the dialogue, but it just reshows it again. Each time I hit enter to skip, rather than hide the dialogue, it re-shows it.

    Olly

  • What inputs do have to have mapped to the "enter" key, and what's your AC version?

  • Hi Chris

    Good point above, I did have a script catching Enter and running the actionlist, causing it to restart. I've turned that off, but the skipping still doesn't.

    https://i.imgur.com/4XaVbOg.mp4

    This video shows me running the actionlist manually via the Run button (right pane). I have a component that triggers on EventManager.OnSpeechSkip and shows a yellow debug line in the console when you skip.

    I've turned off all the Enter triggers in my own code on the scene. I hit the END key which you can see is mapped to SkipSpeech (on the left pane), you can see my movong the mouse around when I hit END just to show you I'm doing it. Nothing appears in the console and the speech dialogue doesn't close.

    When I hit the left mouse button, you can see the Console shows yellow entries. They only show when I hit the left mouse to skip, not when I hit the SkipSpeech key.

    I've tried various key mappings and also EndCutscene and other inputs, but none seem to close the dialogue.

    Any ideas?

    AC 1.82.1
    Unity 2022.3.4f1

    Olly

  • The inputs in the video are of the type "Joystick Axis" - they'll need to be set to "Key Or Mouse Button" to map to keyboard keys.

  • Gargh! Thanks Chris. I completely missed that.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.