Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I change what a dialog says from a script?

Asked by
P100D 590 Moderation Voter
9 years ago

I have an NPC that offers a quest via dialogs. I want him to say different phrases depending on whether or not the player has completed the quest. How do I do this? I know about DialogChoiceSelected, but idk how to change the text of a dialog.

0
I'd recommend just using GUIs. It'd be easier and more polished. Perci1 4988 — 9y

1 answer

Log in to vote
1
Answered by
Mokiros 135
9 years ago

DialogChoice have GoodbyeDialog, ResponseDialog and UserDialolg properties. And Dialog have GoodbyeDialog and InitialPrompt properties. By simply changing those values (they are string values), you can change text of your dialog.

Dialog.InitialPrompt = "Hi!"
Dialog.DialogChoice.ResponseDialog = "Hai!"
--Some simple examples
0
Thank you very much! P100D 590 — 9y
Ad

Answer this question