I'm trying to add a field to the Dialogue Entry. I somehow need a way to add a field that consists of a list (or an array), so that I can have a list/array of various dialogue options that can be edited and added to in the editor. This is so that one of the dialogue options saved on the list/array can be picked at random. Is there a way to do this? I've experimented with CustomFieldTypes but I would rather just have a whole new field to be shown along with fields such as Dialogue Text and Scripts etc. instead of a field type to use in the Script field.
For now, I've been trying to add strings to a list via. a custom script used in the Script field instead, and then attempted to change the Dialogue Text from there, but I haven't had much luck.
Is there a proper way of changing the string in the Dialogue Text field?
I've tried in many ways, but here are two examples:
PixelCrushers.DialogueSystem.DialogueManager.currentConversationState.subtitle.dialogueEntry.DialogueText = list[nr];
PixelCrushers.DialogueSystem.DialogueManager.currentConversationState.subtitle.formattedText.text = list[nr];
Here's a picture of the random dialogue text picker method:
Hope you can help me!