Hi,
HawkX wrote:is there a way in C# to change that line?
or more accurately to change the number value "X" of wait time in
Here are two ways to accomplish this:
1. In your C# script, set a Dialogue System variable -- for example, let's call it "finalDelay":
Code: Select all
DialogueLua.SetVariable("finalDelay", 3);
Then change the sequence to:
2. Alternatively, you can add an OnConversationLine method to a script on the Dialogue Manager. In the method, modify the sequence:
Code: Select all
public float myCustomDelay;
public void OnConversationLine(Subtitle subtitle) {
subtitle.sequence += "; Delay(" + myCustomDelay + ")@{{end}}";
}
HawkX wrote:EDIT : and i think i got some kind of bug in that "auto button" code you provided... somehow it skips to the next line when auto is toggled on (even if the line is not finished writing and "end" is not reached yet) I tried writing a super long line, set both typewriter/dialoguemanager to 45 chars speed... the subtitle was about 1/3 of the way written, i clicked "auto" and it skipped to the next line right away
I'll look into this and get back to you.