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
  • haveNoneOfAddedTraits : Default (False) : If True, the target cannot have any of the addedTraits

  • haveAnyOfRemovedTraits : Default (False) : If True, the target must have at least one of the removedTraits

  • haveAllOfRemovedTraits : Default (False) : If True, the target must have at all of the removedTraits. If this is True, there is no need to set haveAnyOfRemovedTraits to True

  • applyOnSelf : Default (False) : Causes the trait changing to happen to both the caster and the target. If any of the "have" conditions above are set to True, the caster's traits will still be ignored

  • onlySelf : Default (False) : Causes the trait changing to happen only to the caster, and not the target. If any of the "have" conditions are set to True, then the caster will be the one checked for traits instead of the target

  • 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