[WOTC] Ability Editor

If you liked this item, please rate it up on Steam Workshop page.

Author: Boundir

Last revision: 12 Oct, 2022 at 21:58 UTC (4)

File size: 347.14 KB

On Steam Workshop

Description:
Description

This mod allows you to modify any ability (vanilla and modded ones).
You will be able to change cooldowns, charges, action cost and other.

Variables

AbilityNameString
Required – Name of the ability being modified

CooldownInteger
Optional – Number of turns between two uses

APCostInteger
Optional – Number of action it will take

EndsTurnBool
Optional – Should this ability end your turn?

FreeActionBool
Optional – Should this ability cost an action?

FocusAmountInteger
Optional – Number of focus it will take

ConsumeAllFocusBool
Optional – Should this ability require all you focus?

GhostOnlyCostBool
Optional – Should this ability cost focus for Ghost only?

DoNotConsumeAllActionsWithArray (string)
Optional – If the ability owner has any of these abilities, the ability will not consume all points if EndsTurn was set to true. (e.g. Salvo)

AmmoCostInteger
Optional – Number of ammo needed (e.g. HailOfBullets:3, ThrowGrenade:1 etc..)

ChargesInteger
Optional – Number of usage granted

KeepChargeOnMissBool
Optional – Recover your charge if the ability misses (e.g. Domination)

ConsumeItemBool
Optional – Will consume the item granting this ability.

SharedAbilityChargesArray (string)
Optional – Abilities which should all have their charges deducted as well (e.g. Skulljack & Skullmine).

AddAbilityArray (string)
Optional – When a unit is granted this ability, it will be granted all of these abilities as well.

OverrideAbilitiesArray (string)
Optional – Getting one of those abilities will override the original ability.

PrerequisiteAbilitiesArray (string)
Optional – Ability required to unlock current ability.

BonusChargeWithArray

  • BonusAbilityNameString – Name of the ability granting extra charges.
  • NumBonusChargesInteger – Number of bonus charge to add.

Optional – Abilities which should grant extra charges.

SharedCooldownsArray

  • AbilityNameString – Name of the ability getting a cooldown.
  • NumTurnsInteger – Number of turns before use.

Optional – Abilities which will get a cooldown.

ItemSlotString
Optional – For abilities that require an item but are not sourced from one, specifies a default slot to use.
Accepted values:

  • Unknown
  • PrimaryWeapon
  • SecondaryWeapon
  • HeavyWeapon

RetainConcealmentString
Optional – Determine if the unit can remain concealed after the ability is activated
Accepted values:

  • NonOffensive – Always retain Concealment if the Hostility != Offensive (default behavior)
  • Always – Always retain Concealment, period
  • Never – Never retain Concealment, period
  • KillShot – Retain concealment when killing a single (primary) target
  • Miss – Retain concealment when the ability misses
  • MissOrKillShot – Retain concealment when the ability misses or when killing a single (primary) target
  • AlwaysEvenWithObjective – Always retain Concealment, even if the target is an objective
Usage

Can be used by other mods to modify existing abilitiy templates by adding XComAbilityEditor.ini to the mod config.
Can be used by anyone willing to tweak his game even more.

Examples:

[AbilityEditor.OPTC_Abilities] ;This will replace Combat Protocol charges to 3 turns cooldown ;+Abilities = (AbilityName=CombatProtocol, Cooldown=3, EndsTurn=true) ; This will allow Ranger to have an action after Slash ;+Abilities = (AbilityName=SwordSlice, APCost=1, EndsTurn=true, DoNotConsumeAllActionsWith[0]=Blademaster) ; Gives 9 charges of Scanning Protocol, is a free action and can be used every two turns ;+Abilities = (AbilityName=ScanningProtocol, Cooldown=2, Charges=9, FreeAction=true) ; Restoration grants 3 extra charges of Heals ;+Abilities = (AbilityName=GremlinHeal, Charges=2, BonusChargeWith[0]=(BonusAbilityName=RestorativeMist, NumBonusCharges=3) )

Compatibility

It should be compatible with everything.
Changes are taken into account if using [WOTC] Cost-Based Ability Colors

Note

I did not focus on damages because they are mainly editable from ini files.

Troubleshooting

https://www.reddit.com/r/xcom2mods/wiki/mod_troubleshooting
Mods not working properly / at all
Mod not working? Mods still have their effects after you disable them?

Download
Required DLC:

These DLC should be installed in order to use this item.


XCOM 2: War of the Chosen
Revisions:

Old revisions of this mod are available below. Click the link to download.