CAction

What is CAction?

CAction is a format that stores an action'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 actions
2 Int16 Action Id The main identifier for the action, all known identifiers
2 UInt16 Object Info The referenced object info related to this action, 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 Action Flags Definitions
1 UInt8 Parameter Count The amount of parameters used by this action
1 UInt8 Defined Type Unknown

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  

Action Definitions

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

Object Type Action Id Name String Parameters
-1 0 SKIP Insert your action here  
-1 1 SKIPMONITOR Insert your action here  
-1 2 EXECPROG Execute external program (Param0) 1
-1 3 SETVARG Set (Param0) to (Param1) 2
-1 4 SUBVARG Subtract (Param0) from (Param1) 2
-1 5 ADDVARG Add (Param0) to (Param1) 2
-1 6 GRPACTIVATE Activate Group "(Param0)" 1
-1 7 GRPDEACTIVATE Deactivate Group "(Param0)" 1
-1 8 MENUACTIVATE Enable menu option (Param0) 1
-1 9 MENUDEACTIVATE Disable menu option (Param0) 1
-1 10 MENUCHECK Check menu option (Param0) 1
-1 11 MENUNCHECK Uncheck menu option (Param0) 1
-1 12 MENUSHOW Show menu bar  
-1 13 MENUHIDE Hide menu bar  
-1 14 STARTLOOP Start loop (Param0) (Param1) times 2
-1 15 STOPLOOP Stop loop (Param0) 1
-1 16 SETLOOPINDEX Set loop (Param0) index to (Param1) 2
-1 17 RANDOMIZE Randomize (Param0) 1
-1 18 SENDMENUCMD Send Menu Command (Param0) 1
-1 19 SETGLOBALSTRING Set (Param0) to (Param1) 2
-1 20 SENDCLIPBOARD Send (Param0) to clipboard 1
-1 21 CLEARCLIPBOARD Clear clipboard  
-1 22 EXECPROG2 Execute external program (Param0) (Param1) ((Param2 & 1 ? wait)(Param2 == 3 ? ,)(Param2 & 2 ? hide)) 3
-1 23 OPENDEBUGGER Open debugger  
-1 24 PAUSEDEBUGGER Pause debugger  
-1 25 EXTRACTBINFILE Extract binary file (Param0) 1
-1 26 RELEASEBINFILE Release binary file (Param0) 1
-1 27 SETVARGINT   2
-1 28 SETVARG   2
-1 29 SETVARGDBL   2
-1 30 SETVARG   2
-1 31 ADDVARGINT   2
-1 32 ADDVARG   2
-1 33 ADDVARGDBL   2
-1 34 ADDVARG   2
-1 35 SUBVARGINT   2
-1 36 SUBVARG   2
-1 37 SUBVARGDBL   2
-1 38 SUBVARG   2
-1 39 STARTPROFILING Start profiling  
-1 40 STOPPROFILING Stop profiling  
-1 41 CLEARDEBUGOUTPUT Clear output window  
-1 42 DEBUGOUTPUT Send (Param0) to output window 1
-1 43 EXECUTECHILDEVENTS    
-1 44 BREAK Break  
-2 0 PLAYSAMPLE Play sample (Param0) 1
-2 1 STOPSAMPLE Stop any sample  
-2 2 PLAYMUSIC Play music (Param0) 1
-2 3 STOPMUSIC Stop any music  
-2 4 PLAYLOOPSAMPLE Play sample (Param0) (Param1) times 2
-2 5 PLAYLOOPMUSIC Play music (Param0) (Param1) times 2
-2 6 STOPSPESAMPLE Stop sample (Param0) 1
-2 7 PAUSESAMPLE Pause sample (Param0) 1
-2 8 RESUMESAMPLE Resume sample (Param0) 1
-2 9 PAUSEMUSIC Pause music  
-2 10 RESUMEMUSIC Resume music  
-2 11 PLAYCHANNEL Play sample (Param0) on channel #(Param1) 2
-2 12 PLAYLOOPCHANNEL Play sample (Param0) on channel #(Param1), (Param2) times 3
-2 13 PAUSECHANNEL Pause channel #(Param0) 1
-2 14 RESUMECHANNEL Resume channel #(Param0) 1
-2 15 STOPCHANNEL Stop channel #(Param0) 1
-2 16 SETCHANNELPOS Set position of channel #(Param0) to (Param1) 2
-2 17 SETCHANNELVOL Set volume of channel #(Param0) to (Param1) 2
-2 18 SETCHANNELPAN Set pan of channel #(Param0) to (Param1) 2
-2 19 SETSAMPLEPOS Set position of sample (Param0) to (Param1) 2
-2 20 SETSAMPLEMAINVOL Set main volume to (Param0) 1
-2 21 SETSAMPLEVOL Set volume of sample (Param0) to (Param1) 2
-2 22 SETSAMPLEMALNPAN Set main pan to (Param0) 1
-2 23 SETSAMPLEPAN Set pan of sample (Param0) to (Param1) 2
-2 24 PAUSEALLCHANNELS Pause all sounds  
-2 25 RESUMEALLCHANNELS Resume all sounds  
-2 26 PLAYMUSICFILE Play music file (Param0) 1
-2 27 PLAYLOOPMUSICFILE Play and loop music file (Param0), (Param1) times 2
-2 28 PLAYFILECHANNEL Play sample file (Param0) on channel #(Param1) 2
-2 29 PLAYLOOPFILECHANNEL Play sample file (Param0) on channel #(Param1), (Param2) times 3
-2 30 LOCKCHANNEL Lock channel (Param0) 1
-2 31 UNLOCKCHANNEL Unlock channel (Param0) 1
-2 32 SETCHANNELFREQ Set frequency of channel #(Param0) to (Param1) 2
-2 33 SETSAMPLEFREQ Set frequency of sample (Param0) to (Param1) 2
-2 34 PRELOADSAMPLEFILE Preload sample file (Param0) 1
-2 35 DISCARDSAMPLEFILE Discard sample file (Param0) 1
-2 36 PLAYSAMPLE2 Play sample (Param0), (Param2) times, on channel #(Param1), volume (Param3), pan (Param4), frequency (Param5) 6
-3 0 NEXTLEVEL Next frame  
-3 1 PREVLEVEL Previous frame  
-3 2 GOLEVEL Jump to frame (Param0) 1
-3 3 PAUSE Pause the application  
-3 4 ENDGAME End the application  
-3 5 RESTARTGAME Restart the application  
-3 6 RESTARTLEVEL Restart current frame  
-3 7 CDISPLAY Center display at (Param0) 1
-3 8 CDISPLAYX Center display at X=(Param0) 1
-3 9 CDISPLAYY Center display at Y=(Param0) 1
-3 10 LOADGAME Load frame position (Param0) 1
-3 11 SAVEGAME Save frame position (Param0) 1
-3 12 CLS Clear screen in color (Param0) 1
-3 13 CLEARZONE Clear zone (Param0) in color (Param1) 2
-3 14 FULLSCREENMODE Full Screen Mode  
-3 15 WINDOWEDMODE Windowed Mode  
-3 16 SETFRAMERATE Set frame rate to (Param0) 1
-3 17 PAUSEKEY Pause application and resume when key "(Param0)" is pressed 1
-3 18 PAUSEANYKEY Pause application and resume when any key is pressed  
-3 19 SETVSYNCON Set V-Sync On  
-3 20 SETVSYNCOFF Set V-Sync Off  
-3 21 SETVIRTUALWIDTH Set Virtual Width to (Param0) 1
-3 22 SETVIRTUALHEIGHT Set Virtual Height to (Param0) 1
-3 23 SETFRAMEBDKCOLOR Set Background Color to (Param0) 1
-3 24 DELCREATEDBKDAT Delete Created Backdrops At (Param1),(Param2) in layer (Param0) (fine detection: (Param3)) 4
-3 25 DELALLCREATEDBKD Delete All Created Backdrops in layer (Param0) 1
-3 26 SETFRAMEWIDTH Set Frame Width to (Param0) 1
-3 27 SETFRAMEHEIGHT Set Frame Height to (Param0) 1
-3 28 SAVEFRAME Save frame position to (Param0), version (Param1) 2
-3 29 LOADFRAME Load frame position (Param0), version (Param1) 2
-3 30 LOADAPPLICATION Load application position (Param0), version (Param1) 2
-3 31 PLAYDEMO Play demo file (Param0) 1
-3 32 SETFRAMEEFFECT Set effect to (Param0) 1
-3 33 SETFRAMEEFFECTPARAM Set effect parameter (Param0) to (Param1) 2
-3 34 SETFRAMEEFFECTPARAMTEXTURE Set effect image parameter (Param0) to (Param1) 2
-3 35 SETFRAMEALPHACOEF Set alpha-blending coefficient to (Param0) 1
-3 36 SETFRAMERGBCOEF Set RGB coefficient to (Param0) 1
-3 37 SETSTRETCHRESAMPLING Set anti-aliasing when resizing to (Param0) 1
-4 0 SETTIMER Set timer to (Param0) 1
-4 1 EVENTAFTER Fire event (Param1) after (Param0) 2
-4 2 NEVENTSAFTER Fire event (Param3) (Param1) times every (Param2) after (Param0) 4
-5 0 CREATE Create (Param0) 1
-5 1 CREATEBYNAME Create (Param0) at (Param1) 2
-5 2 CREATEEXP Create (Param0) at X=(Param1), Y=(Param2), Layer=(Param3) 4
-5 3 CREATEBYNAMEEXP Create (Param0) at X=(Param1), Y=(Param2), Layer=(Param3) 4
-6 0 HIDECURSOR Hide Windows mouse pointer  
-6 1 SHOWCURSOR Show Windows mouse pointer  
-6 2 RESETINPUTBF Reset input between frames: (Param0) 1
-7 0 SETSCORE Set Score to (Param0) 1
-7 1 SETLIVES Set Number of Lives to (Param0) 1
-7 2 NOINPUT Ignore Control  
-7 3 RESTINPUT Restore Control  
-7 4 ADDSCORE Add (Param0) to Score 1
-7 5 ADDLIVES Add (Param0) to Number of Lives 1
-7 6 SUBSCORE Subtract (Param0) from Score 1
-7 7 SUBLIVES Subtract (Param0) from Number of Lives 1
-7 8 SETINPUT Set input device to (Param0) 1
-7 9 SETINPUTKEY Set key (Param0) to "(Param1)" 2
-7 10 SETPLAYERNAME Set player name to (Param0) 1