Disabling skipping speech text by left mouse click

  • #1, by birenberggSunday, 25. December 2016, 13:41 3 years ago
    Can I disable skipping speech text by left mouse click? (I'd like to set another user action for this)

    Newbie

    7 Posts


  • #2, by sebastianSunday, 25. December 2016, 13:48 3 years ago
    In tge game settings there is a setting called "always allow to skip active text". When deactivated it should prevend skipping the text during cutscenes.

    to prevent skipping the text anytime (so also outside of cutscenes) you need a bit of LUA-script here i guess...


    Thread Captain

    2336 Posts

  • #3, by afrlmeSunday, 25. December 2016, 15:04 3 years ago
    To assign another button/key, you would need to use Lua script & even then it's not exactly as simple as saying which key you would like to use.

    First you would need to deactivate the ability to skip texts, but all texts are skippable by left click & the only way to make them not skippable is by ticking the background text option, which in turn will create another hurdle for you as background text runs in the background & allows any actions listed after a display text/narration text (background) will run instantly without waiting for the text to finish, so you would need to add a wait until character "Tom" stops speaking action part immediately after it.

    Now for the actual skipping, you could either wrap each display text inside of begin & end cutscene action parts which would allow the player to skip texts with escape (esc) key or you could use a Lua function I shared on the wiki ages ago which allows you to skip background texts. If you wanted to do that & assign a specific key then you would need to mix my function with a key (released) in the key actions tab under game or inside of a key event handler/listener script (pure Lua).

    Anyway, create a new script in the script section of the editor & copy/paste this script into it. Next create a key (released) action inside of the key actions tab & inside of that create an execute a script action part & add this line to it...

    killText(1)
    1


    https://i.gyazo.com/358388750a0a6628f30da871cf8c738a.png

    https://i.gyazo.com/e32ec14384d3b3c6ec10005458acb18f.png

    & hey look it's bloody Christmas day & here I am still answering questions... oh well.


    Imperator

    6812 Posts

  • #4, by sebastianSunday, 25. December 2016, 21:00 3 years ago
    or you just encapsulate every spoken character text in a cutscene and deactive that "always allow to skip active text" setting...

    Thread Captain

    2336 Posts

  • #5, by afrlmeSunday, 25. December 2016, 21:59 3 years ago
    or you just encapsulate every spoken character text in a cutscene and deactive that "always allow to skip active text" setting...
    I did mention that. wink
    Now for the actual skipping, you could either wrap each display text inside of begin & end cutscene action parts which would allow the player to skip texts with escape (esc) key or you could use a Lua function I shared on the wiki ages ago which allows you to skip background texts.
    Wrapping in cutscene actions will still allow text to be skipped, but only with Escape (ESC) key.

    If they want to use a different key then they need to get a little more creative, which is why I shared the script & screenshots of a method that could be used for setting up a custom skip text key.

    Imperator

    6812 Posts

Write post