Modding:Conversations: Difference between revisions

Jump to navigation Jump to search
Line 53: Line 53:


==== Building the message ====
==== Building the message ====
After this event fires, the current menu will render its text.  The conversation itself has a <code>Conversation.Introduction</code> which will prepend the node's message if it is set, and after it is displayed, the value will be reset to <code>""</code> - showing the "intro" only once.  We take the <code>ConversationNode.Text</code> and select from its random selections (<code>~</code> separated) and apply Variable Replacement to it, then prepend the intro, and affix a TradeNote if enabled on the node.  This is the conversation's content and the choices are displayed.
After this event fires, the current menu will render its text.  The conversation itself has a <code>Conversation.Introduction</code> which will prepend the node's message if it is set, and after it is displayed, the value will be reset to <code>""</code> &mdash; showing the "intro" only once.  We take the <code>ConversationNode.Text</code> and select from its random selections (<code>~</code> separated) and apply Variable Replacement to it, then prepend the intro, and affix a TradeNote if enabled on the node.  This is the conversation's content and the choices are displayed.


=== Picking a Choice ===
=== Picking a Choice ===