EvilEngine/COND: Difference between revisions
No edit summary |
m (5 revisions imported) |
(No difference)
|
Revision as of 01:11, 31 March 2021
COND | |
---|---|
Conditional | |
Type | Base |
Games used | The Incredibles |
Source code | zConditional.h |
A conditional is an asset which evaluates a condition upon receiving the Evaluate event. It will fire a different event depending on the result (true or false). The "input value" (value of variable) is checked against the Evaluation Amount using the operation specified in Operation.
Format
Conditionals are base assets, so they start with their 0x8 byte header, then are followed by:
Offset | Type | Variable | Description |
---|---|---|---|
0x08 | int | constNum | Evaluation Amount |
0x0C | AssetID | exprl | Variable |
0x10 | int | op | Operation |
0x14 | AssetID | value_asset | Sub Variable. Not present in Scooby |
Events | |||
0x18 | Event[numberOfEvents] | Events |
Variables
Value | Description |
---|---|
29600EB0 | Sound mode |
84D4A26D | Music Volume |
1E0EEB55 | SFX Volume |
42453758 | Memory Card Available |
3B93C93F | Vibration is on |
704D04A9 | Letter of scene |
0B11B427 | Room |
9653DA31 | Current Level Collectable |
18249056 | Pat's Socks |
D1FEEEE2 | Total Pat's Socks |
D6FCCFE7 | Shiny Objects |
C7E0F71C | Golden Spatulas |
9482683D | Current Date |
950F49B7 | Current Hour |
BD2884E7 | Current Minute |
4329EFFD | Counter Value |
A6956B3F | Is Enabled (0=No, 1=Yes) |
1E42996C | Is Visible (0=No, 1=Yes) |
Operations
- EQUAL_TO = 0,
- GREATER_THAN = 1
- LESS_THAN = 2
- GREATER_THAN_OR_EQUAL_TO = 3
- LESS_THAN_OR_EQUAL_TO = 4
- NOT_EQUAL_TO = 5