EvilEngine/COND: Difference between revisions
Content added Content deleted
m (5 revisions imported) |
No edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude> |
|||
{{AssetInfobox |
|||
{{#vardefine:typeid|COND}}<nowiki/> |
|||
|subtitle=Conditional |
|||
{{#vardefine:name|Conditional}}<nowiki/> |
|||
|type=[[Base]] |
|||
{{#vardefine:type|[[Base]]}}<nowiki/> |
|||
|objectid=0x1F |
|||
{{#vardefine:basetype|0x1F}}<nowiki/> |
|||
|games=Night of 100 Frights<br>Battle for Bikini Bottom<br>The SpongeBob SquarePants Movie<br>The Incredibles<br>Rise of the Underminer |
|||
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU}}<nowiki/> |
|||
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zConditional.h zConditional.h]}}<nowiki/> |
|||
{{#vardefine:image|}}<nowiki/> |
|||
</onlyinclude> |
|||
{{AutoAssetInfobox}} |
|||
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. |
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. |
||
Line 97: | Line 101: | ||
{{Assets}} |
{{Assets}} |
||
{{AutoGameNavs}} |
|||
[[Category:Asset]] |
[[Category:Asset]] |
Revision as of 22:35, 25 May 2021
COND | |
---|---|
Conditional | |
Type | Base |
Base Type | 0x1F |
Games used | Night of 100 Frights Battle for Bikini Bottom |
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