Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

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

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.

1 comment

0

I'd recommend just using GUIs. It'd be easier and more polished.

1 answer

✓ Accepted answer

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

1 comment

0

Thank you very much!

This discussion is preserved as it was. New answers, comments, and votes are closed.