Modding:Conversations: Difference between revisions

853 bytes added ,  11:10, 17 September 2023
Add a table with the XML attributes for the <choice> tag that affect choice ordering, including Priority and the new Before and After attributes (thanks Armithaig for adding these!).
(Add AwardXP from patch 204.87)
(Add a table with the XML attributes for the <choice> tag that affect choice ordering, including Priority and the new Before and After attributes (thanks Armithaig for adding these!).)
Line 224: Line 224:


==Tables==
==Tables==
Below are non-exhaustive tables of existing parts, events and delegates.
Below are non-exhaustive tables of existing parts, events, delegates, and additional XML attributes.
 
===Parts===
===Parts===
Described with their function, parameters and an example where applicable.
Described with their function, parameters and an example where applicable.
Line 797: Line 798:
|}
|}


=== Choice ordering ===
The following attributes can be added to the <code><choice></code> XML tag to manipulate the order in which conversational choices are presented. By default, choices are ordered by how they appear in <code>Conversations.xml</code>.
{| class="wikitable"
|-
! Name
! Description
|-
| Priority
| An integer priority that that specifies where a choice should appear; choices with a higher priority appear closer to the top. By default all choices are given a priority of zero unless explicitly specified, although some parts influence the priority of a choice.
|-
| Before
| Place a choice before another choice with the specified ID, e.g., <code>Before="WaterRitualChoice"</code>.
|-
| After
| Place a choice after another choice with the specified ID, e.g. <code>After="WaterRitualChoice"</code>.
|}


{{Modding Navbox}}
{{Modding Navbox}}
[[Category:Modding]]
[[Category:Modding]]