Skip to content

Adult titles

The games this site covers are adult titles. Their data, pictures and text include sexual content.

Continue only if you are an adult where you live.

battle_critical_chance_percent

Global of Himegari Dungeon Meister: the cell G:0x152883, of type int[2], data-table, values 0..100 percentage points.

Final per-side critical chance for the current exchange. CALCBTPARAM starts with the side's effective critical-chance stat plus its effective luck minus the opposing side's effective luck, applies selected-skill and applicable target-tile terrain critical/luck deltas through the same channels, and clamps the result to 0..100. Equipment has already entered through entity_effective_stats: CT affects only its owner's outgoing critical chance, whereas luck both raises outgoing chance and lowers the opponent's. After a successful hit, CALCDMG rolls random-modulo-100 against this value; success sets battle_hit_result to 2 and doubles the signed HP delta.

OME’s registry gives it with high confidence, from investigation. The base mod himegari-base exports the name, so Lua and an event’s fields can use it.

Its columns are named: 0 side_0, 1 side_1. Lua and an event’s cell write a row’s column battle_critical_chance_percent[i].column.

It depends on 0x4e11b, 0xa99b6, 0xe6afe, 0x15261c, 0x152877, 0x152879.

Scripts that use it

The game’s scripts whose instructions read, write or index (take as an array’s base) the cell, with how many of their operands do each, from OME’s script index.

ScriptReadsWritesIndexes
CALCBTPARAM0019
CALCDMG003
BTL200