Xeen Wiki
Advertisement
Supported In:
C D/S/W W-CD
? ? ?

The scripting command If has the opcode (0x08/0x09/0x0A).

Arguments

  • byte - comparison type
  • Additional arguments by type
  • Line Number (byte) - destination line number if comparison is true


Description

Performs a comparison depending on type and additional bytes. Jumps to the given line number if comparison is true, else continues to the next line.

Notes

The "If" structure is very complex, with many, many comparison types. It always takes at least 3 arguments: the comparison type; at least one argument (though may be more, depending on type); and a destination number. This will need a lot of further investigation.

Type Arguments Description
- - filler...
0x2C byte - flag If flag is 0, then it displays a Yes/No prompt. Clicking Yes makes the comparison true. If flag is 1, no prompt is displayed, but execution is paused until a key is pressed and comparison is automatically true.
- - filler...

TODO: a lot!

Advertisement