When I tested the dialogue in the attached photo, it automatically jumped from line 1 to line 2.
I want to move to the next line when I want. Is it possible to set this in the script?
I want to move on to the next line when I want
I want to move on to the next line when I want
- Attachments
-
- 캡처.PNG (28.17 KiB) Viewed 260 times
Re: I want to move on to the next line when I want
Hi,
What do you mean by "when I want?"
If you want to move on to the next line by clicking a button, set the Dialogue Manager's Display Settings > Subtitle Settings > Continue Button dropdown to Always.
If you want to move on from a script, please see Cutscene Sequences. If the line is not showing a continue button, it will move to the next line when its Sequence is done. You can set the Sequence to something like: WaitForMessage(NextLine)
Then in C# you can use:
What do you mean by "when I want?"
If you want to move on to the next line by clicking a button, set the Dialogue Manager's Display Settings > Subtitle Settings > Continue Button dropdown to Always.
If you want to move on from a script, please see Cutscene Sequences. If the line is not showing a continue button, it will move to the next line when its Sequence is done. You can set the Sequence to something like: WaitForMessage(NextLine)
Then in C# you can use:
Code: Select all
PixelCrushers.DialogueSystem.Sequencer.Message("NextLine");
Re: I want to move on to the next line when I want
In the script, I want the developer to move on to the next line when they want.
For example, there may be times when a certain key is pressed.
And I wonder if one of the two lines can be selected according to the conditions set by the developer in the script instead of the user selecting one.
For example, there may be times when a certain key is pressed.
And I wonder if one of the two lines can be selected according to the conditions set by the developer in the script instead of the user selecting one.
- Attachments
-
- 캡처.PNG (10.56 KiB) Viewed 248 times
Re: I want to move on to the next line when I want
Hi,
Use WaitForMessage() and the C# method Sequencer.Message() as I described above. Or, if you have turned on Continue Button mode, call DialogueManager.standardDialogueUI.OnContinue() in C# or the Continue() sequencer command.
Yes. It will be best of you assign an NPC to those lines. (They will appear gray instead of blue in the editor.) Register your C# function with Lua. Then use those C# functions in the lines' Conditions fields. More info: Conditions Tutorial