Difference between revisions of "Riven RMAP resources"

From A look inside The Link @ wiki
Jump to: navigation, search
(import)
 
m (added a few links to other pages)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
 +
<noinclude>{{Riven}}</noinclude>
 
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:
 
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:
  
Line 5: Line 6:
 
|}
 
|}
  
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.
+
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 [[Riven_scripts#Command_27:_go_to_stack|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.
+
If you are familiar with the [[Riven_debug_shell|Riven debug shell]], the ''CyanCardID'' value is exactly the card code specified in the RMAP resource.

Latest revision as of 10:51, 6 April 2008

Riven
Mohawk Overview
BLST CARD FLST HSPT
MLST NAME PLST RMAP
SFXE SLST tBMP tMOV
tWAV VARS VERS ZIPS
Scripts Variables
External commands

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 Riven debug shell, the CyanCardID value is exactly the card code specified in the RMAP resource.