CCondition

What is CCondition?

CCondition is a format that stores a condition's identifiers, flags, and parameters.

Structure

Size Type Name Description
2 UInt16 Data Size The size of the data, including itself
2 Int16 Object Type The object type, also used as an identifier for conditions
2 Int16 Condition Id The main identifier for the condition, all known identifiers
2 UInt16 Object Info The referenced object info related to this condition, always zero if Object Type < 0 except for Object Type -7 where this is used as a Player ID
2 UInt16 Object Info List Unsure of usage, possibly Global Event related?
2 UInt16 Condition Flags Definitions
1 UInt8 Parameter Count The amount of parameters used by this condition
1 UInt8 Defined Type Unknown
2 UInt16 Event Identifier The line number of the parent event

Flag Definitions

Flags

Value Name Description
0x0001 Negated  
0x0002 Negatable  
0x0004 Monitorable  
0x0008 To Delete  
0x0010 New Sound  
0x0020 No Interdependence  
0x0100 Repeat  
0x0200 Done  
0x0400 Default  
0x0800 Done Before Fade  
0x1000 Not Done In Start  
0x2000 Always  
0x4000 Bad  
0x8000 Bad Object  

Condition Definitions

This is a list of conditions unrelated to objects (Object Type < 0)
For a list of conditions per object, NOT YET IMPLEMENTED

Object Type Condition Id Name String Parameters
-1 -1 ALWAYS Always  
-1 -2 NEVER Never  
-1 -3 COMPARE (Param0) (Param1 Comparison) (Param1) 2
-1 -4 NOMORE Restrict actions for (Param0) 1
-1 -5 REPEAT Repeat (Param0) times 1
-1 -6 ONCE Run this event once  
-1 -7 NOTALWAYS Only one action when event loops  
-1 -8 COMPAREG (Param0) (Param1 Comparison) (Param1) 2
-1 -9 REMARK Comment "(Param0)"... 1
-1 -10 GROUP Group "(Param0)" 1
-1 -11 ENDGROUP New condition  
-1 -12 GROUPACTIVATED Group "(Param0)" is activated 1
-1 -12 GROUPACTIVATED Group "(Param0)" is activated (by name) 1
-1 -13 RECORDKEY Record key press (Param0) 1
-1 -14 MENUSELECTED Menu option "(Param0)" selected 1
-1 -15 DROPFILES Files have been dropped  
-1 -16 ONLOOP On loop (Param0) 1
-1 -17 MENUCHECKED Menu option (Param0) is checked 1
-1 -18 MENUENABLED Menu option (Param0) is enabled 1
-1 -19 MENUVISIBLE Menu bar is visible  
-1 -20 COMPAREGSTRING (Param0) (Param1 Comparison) (Param1) 2
-1 -21 ONCLOSE Close window has been selected  
-1 -22 CLIPBOARD Text is available in clipboard  
-1 -23 GROUPSTART On group activation  
-1 -24 OR OR  
-1 -25 ORLOGICAL OR (logical)  
-1 -26 CHANCE (Param0) chances out of (Param1) at random 2
-1 -27 ELSEIF ELSE IF  
-1 -28 COMPAREGINT_EQ   2
-1 -29 COMPAREGINT_NE   2
-1 -30 COMPAREGINT_LE   2
-1 -31 COMPAREGINT_LT   2
-1 -32 COMPAREGINT_GE   2
-1 -33 COMPAREGINT_GT   2
-1 -34 COMPAREGDBL_EQ   2
-1 -35 COMPAREGDBL_NE   2
-1 -36 COMPAREGDBL_LE   2
-1 -37 COMPAREGDBL_LT   2
-1 -38 COMPAREGDBL_GE   2
-1 -39 COMPAREGDBL_GT   2
-1 -40 RUNNINGAS Is running as (Param0) 1
-1 -41 ISPROFILING Is profiling in progress  
-1 -42 STARTCHILDEVENT New condition  
-2 -1 NOSPMUSPLAYING (Param0) is not playing 1
-2 -2 NOSAMPLAYING (Param0) is not playing 1
-2 -3 NOMUSPLAYING No sample is playing  
-2 -4 MUSICENDS No music is playing  
-2 -5 SPSAMPAUSED Music (Param0) has just finished 1
-2 -6 MUSPAUSED Is sample (Param0) paused? 1
-2 -7 NOSPCHANNELPLAYING Is music paused?  
-2 -8 SPCHANNELPAUSED Is channel (Param0) not playing? 1
-2 -9 NOSPSAMPLAYING Is channel (Param0) paused? 1
-3 -1 START Start of Frame  
-3 -2 END End of Frame  
-3 -3 LEVEL Current Frame (Param0) 1
-3 -4 QUITAPPLICATION End of Application  
-3 -5 ISOBSTACLE (Param0),(Param1) is an obstacle 2
-3 -6 ISLADDER (Param0),(Param1) is a ladder 2
-3 -7 ISVSYNCON V-Sync is enabled  
-3 -8 ENDOFPAUSE End of pause  
-3 -9 FRAMELOADED Frame position has just been loaded  
-3 -10 FRAMESAVED Frame position has just been saved  
-4 -1 TIMERSUP Timer is greater than (Param0) 1
-4 -2 TIMERINF Timer is less than (Param0) 1
-4 -3 TIMER Timer equals (Param0) 1
-4 -4 EVERY Every (Param0) 1
-4 -5 TIMEOUT User has left the computer for (Param0) 1
-4 -6 ONEVENT On timer event (Param0) 1
-4 -7 TIMEREQUALS Timer equals (Param0) 1
-4 -8 EVERY2 Every (Param0) 1
-5 -1 NOMOREALLZONE_OLD No more active objects in (Param0) 1
-5 -2 NUMOFALLZONE_OLD Number of active objects in (Param0) 1
-5 -3 NUMOFALLOBJECT_OLD Total number of active objects (Param0) 1
-5 -4 CHOOSEZONE_OLD Pick a random active object from (Param0) 1
-5 -5 CHOOSEALL_OLD Pick an active object at random  
-5 -6 CHOOSEALLINZONE_OLD Pick all active objects in (Param0) 1
-5 -7 PICKFROMID_OLD Pick active object with fixed value = (Param0) 1
-5 -8 CHOOSEVALUESA_OLD Pick objects which alterable value A (Param0 Comparison) (Param0) 1
-5 -9 CHOOSEVALUESB_OLD Pick objects which alterable value B (Param0 Comparison) (Param0) 1
-5 -10 CHOOSEVALUESC_OLD Pick objects which alterable value C (Param0 Comparison) (Param0) 1
-5 -11 CHOOSEFLAGSET_OLD Pick active objects with flag (Param0) on 1
-5 -12 CHOOSEFLAGRESET_OLD Pick active objects with flag (Param0) off 1
-5 -13 NOMOREALLZONE No more objects in (Param0) 1
-5 -14 NUMOFALLZONE Number of objects in (Param0) 1
-5 -15 NUMOFALLOBJECT Total number of objects (Param0 Comparison) (Param0) 1
-5 -16 CHOOSEZONE Pick a random object from (Param0) 1
-5 -17 CHOOSEALL Pick an object at random  
-5 -18 CHOOSEALLINZONE Pick all objects in (Param0) 1
-5 -19 PICKFROMID Pick objects with fixed value (Param0 Comparison) (Param0) 1
-5 -20 CHOOSEVALUE Pick objects which (Param0) (Param1 Comparison) (Param1) 1
-5 -21 CHOOSEFLAGSET Pick objects with Flag (Param0) on 1
-5 -22 CHOOSEFLAGRESET Pick objects with Flag (Param0) off 1
-5 -23 CHOOSEALLINLINE Pick all objects in line ((Param0),(Param1)) to ((Param2),(Param3)) 4
-6 -1 KBPRESSKEY Upon pressing "(Param0)" 1
-6 -2 KBKEYDEPRESSED Repeat while "(Param0)" is pressed 1
-6 -3 MINZONE Mouse pointer lays within (Param0) 1
-6 -4 MONOBJECT Mouse pointer is over (Param0) 1
-6 -5 MCLICK User (Param0.IsDouble ? double-)clicks with (Param0) button 1
-6 -6 MCLICKINZONE User (Param0.IsDouble ? double-)clicks with (Param0) button within (Param1) 2
-6 -7 MCLICKONOBJECT User (Param0.IsDouble ? double-)clicks with (Param0) button on (Param1) 2
-6 -8 MKEYDEPRESSED Repeat while (Param0) mouse-key is pressed 1
-6 -9 ANYKEY Upon pressing any key  
-6 -10 MOUSEON Mouse cursor is displayed  
-6 -11 ONMOUSEWHEELUP On mouse wheel up  
-6 -12 ONMOUSEWHEELDOWN On mouse wheel down  
-7 -1 PLAYERPLAYING Is Player (ObjectInfo + 1) playing?  
-7 -2 SCORE Score of Player (ObjectInfo + 1) (Param0 Comparison) (Param0) 1
-7 -3 LIVE Number of lives of Player (ObjectInfo + 1) (Param0 Comparison) (Param0) 1
-7 -4 JOYPRESSED Player (ObjectInfo + 1) (Param0) 1
-7 -5 NOMORELIVE Number of lives of Player (ObjectInfo + 1) reaches 0  
-7 -6 JOYPUSHED Repeat while Player (ObjectInfo + 1) (Param0) 1