Chip Damage not working

Problem Description

For my game I have specific attacks that I want to do chip damage, so I used the AttackChipDamage function for it. When blocked it does no damage. I thought there might be some ‘allow chip damage’ toggle I somehow missed but if I did before then I still can’t find it.

Below is the initial declaration of values for the attack in question. I tested in another attack and the same problem happened so I think the fault is in the use AttackChipDamage itself. But I don’t know what other function to use for it if not the one in the docs and suggested by the editor.

AttackRegister(Super)
AttackDuration(34)
AttackDamage(700)
AttackChipDamage(500)

Technical Info

Castagne Version: v0.57 (Latest)
Host Engine: Godot
Genre: 2D Fighter

I solved this with help from the discord by putting the following code into an override of AttackReactEvents-Defender-Damage in the skeleton.

EOnBlocking:
AttackRecievedGetParam(ChipDamage, ChipDamage)
Sub(HP, ChipDamage)
endif

Had to declare a ChipDamage variable in the variable block as well obviously.