Skip to content
KCKingdoms Connected Scripting APIScripting guides and API
Data shapeServer APIGenerated

PlayerHitModifiers

Defined in: server/api.d.ts:1294

Scales a playerHit handler puts on the server’s price of a melee blow, each 1 until a handler changes it. The server works the blow out again with them, step by step as the game does: a heavier attack has to get through the same armour and the same block, so doubling attack does not simply double the damage. Never negative.

attack: number

Defined in: server/api.d.ts:1298

Scales the attacker’s attack in every pass, after their weapon, strength, skill and the swing itself.


block: number

Defined in: server/api.d.ts:1308

Scales what the victim’s block put up. Nothing for a blow that was not blocked.


defense: number

Defined in: server/api.d.ts:1303

Scales the victim’s armour where the blow landed.


health: number

Defined in: server/api.d.ts:1313

Scales the health the blow takes, once everything else is worked out. The game’s own cap of 200 a blow is applied before it, so this can go past it.