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.

floor_occupation_percent_by_faction

Global of Kamidori Alchemy Meister: the cell G:0x4fde0, of type int[5], counter, values [0] = unowned %, [1..4] = % of non-void tiles held by faction 1..4.

CALCOCC@0x39e resets it to [100,0,0,0,0], counts tile_owner_faction_mask bits over all tiles with nonzero visibility class into 0x2a2d5e[5], then sets [k] = 100*count/total and subtracts from [0]; rounding remainder is redistributed. FIELD@0xc7ac/0xc807 stores [1] (player) into stage_occupation_percent.

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

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
CALCOCC317
SETSTAGEFLAG600
DRAWCHP203
STAGECLOSE300
STAGEROUND300
$3$SETSTAGEFLAG200
$3$STAGECLOSE200
$3$STAGEROUND200
FIELD200
SCJUMP100