Skip to main content

Twinblade Lance

Defeating two enemies in quick succession empowers the weapon.

While empowered, all attacks become critical hits for 6 seconds.

Implementation​

Twinblade Lance is a three-state combo Skill. Each cast ends with IncreaseEvolutionNo, advancing State 1 → 2 → 3, and the combo resets on the third State's cast end or while mounted. States 1 and 3 add knockback and vertical force, and State 3 re-aims to the pointer input on activation.

To track kills, a KillComboCounterEffectsInjector injects a CounterEffect into the enemy Health Stat that watches for lethal damage dealt by this weapon.

KillComboCounterEffectsInjector — Linker Effect (BS)
Linker Effect (BS): KillComboCounterEffectsInjector
Processor Id:Linker
Apply Type:Temporary
Modifier Type:Managed By Code
Target Stat:CounterKillEffects
Injector:KillComboCounterEffectsInjector

On each kill, IncreaseKillCombo adds 1 to the KillCombo Stat as a temporary modifier with a 1.5 second lifetime. The combo therefore only builds up if the next kill lands quickly.

KillComboCounter — Stat (CounterEffect Signed)
Stat (CounterEffect Signed): KillComboCounter
Stat Key:TwinbladeLance / CounterEffect_Signed / KillComboCounter
Targeting Environment Id:Default
Trigger On:Applied
Default: KillComboCounter
Int Stat Effect (BS): IncreaseKillCombo
Target Stat:TwinbladeLance / IntClamped / KillCombo
Value:1
Processor:Add_Int
Apply Type:Temporary

A IsGT2 check (KillCombo reaching 2) drives CritBuffTrigger. When it is met, CritBuff adds 1 to CritRate for 6 seconds, so every hit is a guaranteed critical while the weapon is empowered.

CritBuffTrigger — Stat (StateBasedEffect)
Stat (StateBasedEffect): CritBuffTrigger
Stat Key:TwinbladeLance / StateBasedEffect / KillComboCounterEffectsInjector
Single Stat Checker › Condition:GTE2(Int)
Effect Apply Type:Persistent
Default: CritBuffTrigger
Float Stat Effect (BS): CritBuff
Target Stat:TwinbladeLance / FloatClamped / CritRate
Value:1
Processor:Add_Float
Apply Type:Temporary

TwinbladeLance_CritRate is the Skill's own crit Attribute Stat, clamped to 0–1 and summed by the CritProcessor.