Changes between Version 2 and Version 3 of Opcodes


Ignore:
Timestamp:
Aug 22, 2023, 6:28:44 PM (10 months ago)
Author:
pulkomandy
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Opcodes

    v2 v3  
    1313
    1414* Hooks: this is really a condition that matches with the last action that was triggered (button or hyperlink), sometimes with a parameter (for example if an action is used from a specific object). Hooks are conditions, if the last activated button does not match with the condition, the remaining code in the script line/chunk is not executed and execution continues with the next one (until an END instruction is reached, or there are no more lines to execute).
     15
     16= TODO
     17
     18* Review 01, 81 and 82, it does not work correctly. It is unclear if the values are bytes or bits and if they can have initial values (besides what's set by CONDINIT).
     19* Review 0E, this is used to trigger an event just once at init, but are there any other uses?
    1520
    1621= Opcodes
     
    5459Used to combine multiple conditions (0D, 09, 0A, ...)
    5560
    56 == 7F: And?
     61== 7F: Not or And
    5762
    58 Probably And, also used to combine several conditions.
     63Probably "Not", also used to combine several conditions.
    5964
    6065== 80 xx: ?
     
    102107Show one of the global screens (from the unique room in MSGGEN).
    103108
    104 == 93 xx: WithScreen
     109== 93 xx: HomeScreen
    105110
    106 Combined with a "Go to room", allows to set the target screen in the new room
     111Combined with a "Go to room", allows to set the home screen in the new room, which will be displayed if no hook in that room sets another screen.
    107112
    108113== 95 xx yy: Initialize flag
     
    110115Initialize a "flag" (really an 8 bit counter) with a given value
    111116
    112 === 96: ??
     117== 96: ??
    113118
    114119Used for the OK button in ''Le Mystère des Lunettes''
    115120
    116 === 97: ??
     121== 97: ??
    117122
    118123Used in the death sequence of ''Le Mystère des Lunettes'' but I don't see any visible effect