Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

BitCount Size

Jamiras edited this page May 17, 2020 · 4 revisions

BitCount is a shortcut for counting the number of bits set in a byte.

BitCount Mem 0x1234 == Value 6

is the same as

AddSource Bit0 Mem 0x1234
AddSource Bit1 Mem 0x1234
AddSource Bit2 Mem 0x1234
AddSource Bit3 Mem 0x1234
AddSource Bit4 Mem 0x1234
AddSource Bit5 Mem 0x1234
AddSource Bit6 Mem 0x1234
          Bit7 Mem 0x1234 == Value 6

and would be true for 0x3F (00111111), 0xDB (11011011), 0xEE (11101110), etc.

It's most common use is counting collectibles for a Measured condition.

It can be combined with other flags like Delta.

BitCount Mem 0x1234 != BitCount Delta 0x1234

Guidelines

General

Achievement Development

WIP


Portugues

Geral

Desenvolvedores


Español

General

Desarrolladores

Clone this wiki locally