Open main menu

Difference between revisions of "SCUMM/V5 opcodes"

128 bytes added ,  23:22, 2 April 2009
→‎Variables: Is var 0 used for both VAR_RESULT and VAR_KEYPRESS?
(→‎Variables: Is var 0 used for both VAR_RESULT and VAR_KEYPRESS?)
Line 1,652: Line 1,652:
A number of variables are reserved for use by the SPUTM/SCUMM engine. Here is a list of known variables and their corresponding numbers, taken from the ScummVM source code.
A number of variables are reserved for use by the SPUTM/SCUMM engine. Here is a list of known variables and their corresponding numbers, taken from the ScummVM source code.


  VAR_KEYPRESS = 0;
VAR_RESULT = 0; // descumm claims var 0 is the result var (for expressions)
  VAR_KEYPRESS = 0; // script_v5_.cpp claims var 0 is for keypresses...
  VAR_EGO = 1;
  VAR_EGO = 1;
  VAR_CAMERA_POS_X = 2;
  VAR_CAMERA_POS_X = 2;
Line 1,719: Line 1,720:
  VAR_GAME_LOADED = 71;
  VAR_GAME_LOADED = 71;
  VAR_NEW_ROOM = 72;
  VAR_NEW_ROOM = 72;


=Table of Parameters=
=Table of Parameters=
126

edits