Bonus Tutorial - Navigating the TDESC (Patreon)
Content
If you're following my tutorials lately, you may have noticed that in my last one I started throwing out names, like TunableVariant or Tunable.... and if you tried to look at the TDESC while following them, you may have read those names in there too...
You maybe figured this out, or maybe not... and if not, you may not believe it, but the TDESC and the XMLs we work on are basically the same thing.
So... what are we looking at?
A loot action:
I closed everything inside the <I> ... </I>
Now the very first part, is just a standard xml header. Let's now look at the TDESC:
I closed everything in her too... and it tells us that an action is an INSTANCE
And if we open the description, it also tells us that is an Instance with:
Instance type - action
i="action"
module - interactions.utils.loot
m="interactions.utils.loot"
class - LootActions
c="LootActions"
Inside this INSTANCE <I> ... </I> is contained a <L>
It's the same in the TDESC:
This <L> is a TunableList with:
name - loot actions
<L n="loot_actions">
Inside this TunableList is contained a:
None - TunableVariant
<V t="???"
why is it none?! Because if we expand it in the TDESC we find the list of all the possible tunable ( t="????") we can use in this TunableVariant
t="???" is nothing else than the one we choose, in our xml the relationship_bits_loot
and scrolling down in the TDESC we can find it:
And see that it's a TunableTuple <U>
With name relationship_bits_loot
<U n="relationship_bits_loot">
At this point you see that they're exactly the same...
This is that the <U> without a name following it
<T n="bit">.....</T>