Question about <listOrder> and <listPriority> tags

Started by Chakyl, August 28, 2016, 11:09:37 PM

Previous topic - Next topic

Chakyl

I'm fairly new modding, and while everything so far has been self explanatory, I came across two XML tags I could not figure out. <listOrder> and <listPriority> are both set to numbers in other files (Such as luciferium), and they both take number values. What do these tags do, and what numbers should be set for them?

1000101

#1
Based on that, not a clue.  What Def class are you talking about?  There are a couple Defs which use those or similar tags.

Generally speaking, however, they do exactly what they say.  They control the list "order" or "priority".
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Chakyl

Quote from: 1000101 on August 28, 2016, 11:19:46 PM
Based on that, not a clue.  What Def class are you talking about?  There are a couple Defs which use those or similar tags.

Generally speaking, however, they do exactly what they say.  They control the list "order" or "priority".
Here they are in context:

       <li Class="CompProperties_Drug">
        <chemical>Luciferium</chemical>
        <addictiveness>1.00</addictiveness>
        <needLevelOffset>1.00</needLevelOffset>
        <listOrder>1010</listOrder>
      </li>


  <NeedDef ParentName="DrugAddictionNeedBase">
    <defName>Chemical_Luciferium</defName>
    <needClass>Need_Chemical</needClass>
    <label>luciferium</label>
    <description>This person's body is enhanced by luciferium mechanites.\n\nWithout regular doses of luciferium, they mechanites will lose cohesion. If this happens, the user becomes continuously, violently insane and eventually dies.\n\nThis addiction never goes away.</description>
    <listPriority>45</listPriority>
    <fallPerDay>0.15</fallPerDay>
  </NeedDef>


Should I just leave them as they are or change them to something else?

1000101

Generally speaking list orders and priorities only affect what order they are shown in and have no gameplay effects.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Chakyl

Quote from: 1000101 on August 29, 2016, 12:52:00 AM
Generally speaking list orders and priorities only affect what order they are shown in and have no gameplay effects.
Alright, thanks.