Output text by parts

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Maltakreuz
Posts: 40
Joined: Sat Jul 25, 2015 2:36 pm

Output text by parts

Post by Maltakreuz »

In renpy there is a extend keyword, that allows to output text by parts after hitting a key. Normally it is used to achieve some dramatic effect, like:
"I am not a real elf, i must say you i am an.... [extend] ...AN ORC!"
So at first only the first part of text will be shown, then player shoud press <space> and "...AN ORC!" will be appended to the same subtitle. Note, this is not two different subtitles, but just one shown part by part.

Is anything like that in DialogueSys out of the box? I would like it, to make dialogues more vivid. Or maybe some SequencerCommands could be used here? At least they pause the response menu until end.
NPixey
Posts: 13
Joined: Mon Jan 17, 2022 1:21 pm

Re: Output text by parts

Post by NPixey »

Hi hi
I was just passing by the sample scripts this morning (looking for solutions to my own problems)

DOWNLOAD “INTERJECTABLE DIALOGUE UI EXAMPLE”
InterjectableResponsesExample_2017-12-19.unitypackage – Downloaded 675 times – 43 KB
This script and example scene demonstrate how to set up interjectable conversations in which the NPC keeps talking and the player can opt to choose responses that appear and disappear during the NPC’s speech.

https://www.pixelcrushers.com/dialogue- ... tributions

Maybe this example helps?
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Output text by parts

Post by Tony Li »

Hi,

Authors frequently use the Dialogue System's RPG Maker-style codes for effects like this.

To pause for 2 seconds before continuing the text:
  • Dialogue Text: "I am not a real elf, i must say you i am an.... \.\. ...AN ORC!"
The \. code pauses for 1 second, unless you've changed the duration of \. and \, in your subtitle text GameObject's typewriter effect.

If you want to wait for a continue button click, and if your subtitle panel isn't set to accumulate text, you can use \> and \< to instantly re-show the previous text. Example:
  • Dialogue Text: "I am not a real elf, i must say you i am an...."
  • Dialogue Text: "\>I am not a real elf, i must say you i am an.... \< ...AN ORC!"
Post Reply