Modding:Conversations: Difference between revisions

Line 52: Line 52:


This event is passed the sorted choices and gets one last chance to pass back additional choices / resort / or whatever it wants to do.  We suggest setting the response to a <code>new List<ConversationChoice>(Choices)</code> before mutating it as changes made to the original "Choices" here will persist throught the current conversation, but the choices used are not the Node.Choices, it is the response from this event's <code>Event.GetObjectParameter("Choices") as List<ConversationChoice></code>.
This event is passed the sorted choices and gets one last chance to pass back additional choices / resort / or whatever it wants to do.  We suggest setting the response to a <code>new List<ConversationChoice>(Choices)</code> before mutating it as changes made to the original "Choices" here will persist throught the current conversation, but the choices used are not the Node.Choices, it is the response from this event's <code>Event.GetObjectParameter("Choices") as List<ConversationChoice></code>.
==== Peek at result nodes ConversationChoice.Goto(Speaker, peekOnly: true) ====
We use this information to mark if the choice is visited or not, but each choice will have "goto" called with peekOnly to ask to resolve the node it will visit.


==== Building the message ====
==== Building the message ====