-
Notifications
You must be signed in to change notification settings - Fork 2
Change Traits
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
-
- 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:
-
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>
- Ability Validator
- Add Things To Inventory
- Alter Genes
- Alter Xenotype (Ability)
- Blood Drain
- Blast Attacks
- Burst Attacks
- Change Faction
- Change Ideology
- Change Traits
- Change Weather
- Charge Battery
- Create Items
- Create Linked Hediffs
- Deal Damage
- Destroy Corpse
- Destroy Filth
- Destroy Items
- Fly to Map Tile
- Give Multiple Hediffs
- Instant Death
- Launch Projectile Burst
- Learn Skill
- Long Distance Teleport
- Love the Caster
- Offset Needs Ability
- Orbital Strike
- Push Target
- Reloadable Abilities
- Remove Multiple Hediffs
- Remove Things From Inventory
- Spawn Humanlike (Ability)
- Spawn Pawn Kinds
- Spew
- Stop Mental Break (No Psychic)
- Toggle Hediff
- Trigger Game Condition
- Abilities From Other Genes
- Additional Fertility by Age
- Additional Lovin' Results
- Aging Xenotype
- Biome Genes
- Butchery Changing Genes
- Coma Rest Genes
- Conflicting Genes
- Customizable Bloodclotting
- Damage Modifying Stats Extension
- EBSG Body
- Equip Restrict
- Evolving Genes
- Fertility by Age
- Gender by Age
- Genetic Romance Chance
- Hediff Adder
- Hediff on Consumption
- Hediffs at Age
- Hide Inactive
- Hive Mind Genes
- Inactive at Age
- Ingestible Dependency Genes
- Mutating Genes
- Pregnancy Replacing Genes
- Removed at Age
- Skill Changing Genes
- Spawn Age Limiter
- Thoughts on Down from Gene
- Vanishing Genes
- Various Conditional Stat Affecters
- Aging Hediff
- Alter Xenotype (Hediff)
- Attach Mote
- Create Items
- Create Other Hediffs
- Damage on Removal
- Damage Over Time
- Destroy on Death
- Display Severity
- Flip Gender Periodically
- Gender by Age Hediff
- Gene Randomizer
- Give Abilities at Severities
- Give Hediff to Killer
- Give Hediffs to Non-Allies
- Give Other Hediff Periodically
- Hediff on Kill
- Hediff While Moving
- Hediffs on Removal
- Hediffs While Drafted
- Hediffs While in Severity Ranges
- Hemogen on Kill
- Hemogen Regeneration
- Make Hediff Invisible at Stage
- Modular Hediffs
- Multiple Lives
- Name Color Hediff
- Remove at Severities
- Remove/Damage Parts
- Remove on Faction Change
- Remove When Damaged
- Severity Change per Attack
- Severity Change When Hit
- Severity Per Day by Genes
- Severity per Interval by Terrain
- Shield Hediff
- Skill Change Hediffs
- Spawn Humanlike
- Spawn Pawn Kind on Removal
- Temporary Faction
- Temporary Genes
- Temporary Ideology
- Temporary Relation
- Terrain Cost Override
- Tiered Regeneration
- Various Explosion Hediff Comps
- Severity Setters
- Add or Append Hediff on Ingest
- Alter Genes on Ingest
- Alter Genes on Use
- Alter Xenotype on Ingest
- Alter Xenotype on Use
- Alter Xenotype on Use by Severity
- Damage Modifying Stats Extension
- Equip Restrict
- Flexible Entity Releaser
- Gatherer Spot
- Give Hediff Based on Severity
- Hediff on Damage
- Limited Charges
- Need Charger Buildings
- Projectile Impact Effects
- Random Shot
- Regenerating Things
- Shield Equipment
- Sleep Caskets
- Spawn Baby Thing Comp
- Turret Roof Blocked
- Weapon Trait Extension
- Desired Genes Precept
- Gene in Colony Mood Precept
- Gene in Colony Mood Toggle Precept
- Opinions About Genes
- People in the Colony
- Thought Mood by Hediff Severity
- Thought Multiplying Genes
- Thoughts About Water
- Xenophilobic Thoughts
- The Genes
- Resource Packs
- Craving and Overcharge Hediffs
- Resource Using Abilities
- Converting Resources
- Special DRG Abilities
- Special DRG Hediffs