Riven RMAP resources

From A look inside The Link @ wiki
Revision as of 04:14, 6 February 2008 by Di gama (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

There's just one RMAP resource per Mohawk file. Its function is to assign a unique code to each card. The resource is just a block of records, each having the following structure:

unsigned long card_code

The corresponding card is the one with resource ID equal to the record index, so the record count in the RMAP is equal to the greatest ID of CARD resources. The card code is used when going to another stack with command 27: it specifies the destination card in the new stack.

If you are familiar with the engine "b3hn" debug shell, the CyanCardID value is exactly the card code specified in the RMAP resource.