Caret Type IDs
A Caret Type ID (Also known as Act ID or character code) is a number that defines an Caret's type.
A table of default Caret sprite offsets are stored in a
caret.tbl file in the data folder. When Carets of a set type are spawned they will initially use sprite offsets from their Caret Table entry, although these offsets can be changed for Carets with scripting at any time.
Caret Type reference
|Caret Type ID
|Snake Afterimage (Unused)
|Zzz Sleeping Particles
|Snake Afterimage (Duplicate)
|Interact Question mark
|Red hurt particles
|White circle particles (Used by Demon Crown and when the player bumps onto a ceiling)
|Small projectile dissipation
|'PUSH JUMP KEY!' (Unused)
ModCS allows you to override a Caret type's act code. If a function in the
ModCS.Caret.Act array is defined with the index
X is the Caret Type ID of the Caret Type you want to override) in your Lua script the game will run that function instead of the built-in Caret act code. A ModCS.Caret will be passed as the first argument of the function when it's called.
This example will set the Rect of Caret Type 1 to 0,0,8,8.
1 2 3