Skip to content

Change Traits

Alite edited this page May 28, 2026 · 3 revisions

This ability comp changes the target's and/or the caster's traits:

        <comps>
            <li Class="EBSGFramework.CompProperties_AbilityChangeTraits">
            </li>
        </comps>

These are the options available in the comp:

  • addedTraits : A special list of traits to add
  • removedTraits : A special list of traits to remove
    • Both of these are special lists that use the trait's defname for the node name, and the degree for the value (or no value if there is only one degree). For examples:
      • <PsychicSensitivity>-1</PsychicSensitivity> is psychically dull
      • <Undergrounder /> is the undergrounder trait
  • successChance : A special item that dictates the chance of success. If you don't add this to the comp, then it will always work

Mini example because I couldn't come up with a simple example to give at time of writing, this comp would add psychically dull if it's not already on the pawn, and remove undergrounder if it is on the pawn. This won't check the existing traits before it starts trying to do the add/removal, so if used on the same pawn multiple times it will only have an actual effect once:

        <comps>
            <li Class="EBSGFramework.CompProperties_AbilityChangeTraits">
                <addedTraits>
                    <PsychicSensitivity>-1</PsychicSensitivity>
                </addedTraits>
                <removedTraits>
                    <Undergrounder />
                </removedTraits>
            </li>
        </comps>

Other


Special Nodes

Clone this wiki locally