combodata#
Variables#
const int |
|
const int |
|
const int |
|
const int |
|
untyped[] |
|
const int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
CSet deprecated |
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int[] |
|
int[] |
|
bool[] |
|
bool[] |
|
bool[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int[] |
|
int |
|
int[] |
Functions#
Variable descriptions#
Returns the X-coordinate of a combo from a combodata script, from the βthis->β pointer as βthis->Xβ.
Using this from any other combodata variable is illegal and undefined.
Returns the Y-coordinate of a combo from a combodata script, from the βthis->β pointer as βthis->Yβ.
Using this from any other combodata variable is illegal and undefined.
Returns the combo screen index of a combo from a combodata script, from the βthis->β pointer as βthis->Posβ.
Using this from any other combodata variable is illegal and undefined.
Returns the layer the combo is on in a combodata script, from the βthis->β pointer as βthis->Layerβ.
Using this from any other combodata variable is illegal and undefined.
The 2 InitD values for the combo script.
The combo ID this combodata points to.
The βOriginal Tileβ of the combo, used as the start of its animation.
The current animation frame the combo is on in its animation. Set to 0 to reset to start of animation.
The animation clock of the combo. Set to 0 to reset the timer.
The tile currently being displayed by the combo. This is automatically overwritten each frame by the engine.
The combo script that this combo runs.
The combo animation speed.
How to flip (or rotate) the combo.
Valid values: TransformationType (FLIP_
or ROT_
).
The solidity bitmask of the combo (same as Screen->ComboS[])
The effect bitmask of the combo (same as Screen->ComboE[])
Valid values: ComboType (CT_
).
Warning
Deprecated! Use CSet2 instead!
The CSet2 offset for this combo.
Bitwise access to the 4 corners of the cset2 square. TODO: Untested!
The number of frames in the combo animation before it loops.
If > 0
, cycling is enabled for this combo. When the comboβs animation
would normally loop, instead the combo will change to the NextData
combo.
If the AnimFlags AF_CYCLENOCSET
is NOT set, the combo will change to
this cset when it cycles.
The inherent flag of the combo. Use the CF_
constants from
std_constants.zh
.
The number of extra tiles to move horizontally between each frame.
The number of extra tiles to move vertically, when the horizontal movement goes past the end of a tile row.
Bitwise access to the comboβs animation flags. Use the AF_
constants to
access.
The 4 combo attributes. These have a full range (all zscript values, including decimal). Their effect depends on the combo type.
The 8 combo attribytes. These have a byte-sized range, 0 to 255
. Their
effect depends on the combo type.
The 8 combo attrishorts. These have a short-sized range, -32768 to
32767
. Their effect depends on the combo type.
The trigger flags of the combo
Use the TRIGFLAG_
constants from std_constants.zh
The 16 combo flags. Their effect depends on the combo type.
The combo generic flags, specified by the GENFLAG_
constants.
The SFX to play when the combo is triggered. If 0, no SFX will be played.
The amount the combo will change by when triggered.
Ex. 1
acts as β->Nextβ, -1
acts as β->Prevβ.
If 0
, no change occurs.
The light beam trigger set that (may) trigger this combo.
0 means any beams, 1-32 mean only matching beams.
Related:
- TriggerFlags:ref:`TRIGFLAG_LIGHTON<libs_std_enum_member_trigflag_lighton>`
(trigger when hit by matching light)
- TriggerFlags:ref:`TRIGFLAG_LIGHTOFF<libs_std_enum_member_trigflag_lightoff>`
(trigger when NOT hit by matching
light)
The comboβs cooldown between triggers
If > 0, triggering this combo triggers all other combos with matching TrigCopycat.
int TrigSpawnItemPickup π Source
The item pickup flags for the spawned item
Only the flags IP_HOLDUP
, IP_TIMEOUT
, IP_TRIGGERSECRETS
,
IP_ALWAYSGRAB
are used.
If > -1, the ExState that the combo is linked to.
If > -1, the direction of ExDoor that the combo is linked to
int TrigExDoorIndex π Source
If TrigExDoorDir is > -1, the index of that direction of ExDoor that the combo is linked to.
int TrigSpawnEnemy π Source
If > 0, the enemy ID spawned when the combo is triggered.
If > 0, the item ID (or dropset ID) spawned when the combo is triggered.
int TrigCSetChange π Source
The amount the cset will change by when triggered.
int TrigLevelState π Source
The LevelState used for the TRIGFLAG_TRIGLEVELSTATE
and
TRIGFLAG_LEVELSTATE
flags. 0-31, inclusive.
int TrigGlobalState π Source
The GlobalState used for the TRIGFLAG_TRIGGLOBALSTATE
and
TRIGFLAG_GLOBALSTATE
flags. 0-255, inclusive.
int TrigGStateTimer π Source
If > 0
, the global trigger caused by TRIGFLAG_GLOBALSTATE
will set
to the βonβ state with this value as a timer in frames.
If this value is 0, it instead toggles the state as normal.
When triggered, this generic script will be run in the βRunFrozenβ mode.
The Trigger Group used for the TRIGFLAG_TGROUP_CONTRIB
,
TRIGFLAG_TGROUP_LESS
, and TRIGFLAG_TGROUP_GREATER
flags.
0-255, inclusive.
The value used for the TRIGFLAG_TGROUP_LESS
and
TRIGFLAG_TGROUP_GREATER
flags.
0-65535, inclusive.
βLI_β flags used by the
TRIGFLAG_LITEM_REQUIRE
,``TRIGFLAG_LITEM_INV_REQUIRE``,``TRIGFLAG_LITEM_SET``,``TRIGFLAG_LITEM_UNSET``
flags.
The βLevelβ used by βTrigLItemsβ.
-1 represents the βcurrent levelβ, otherwise a valid dmap level indicates that level.
When triggered, the palette is tinted on the red channel by this amount. -255 to 255.
-63 to 63 if compat QR βScripts use 6-bit color (0-63) instead of 8-bit (0-255)β is enabled.
When triggered, the palette is tinted on the green channel by this amount. -255 to 255.
-63 to 63 if compat QR βScripts use 6-bit color (0-63) instead of 8-bit (0-255)β is enabled.
When triggered, the palette is tinted on the blue channel by this amount. -255 to 255.
-63 to 63 if compat QR βScripts use 6-bit color (0-63) instead of 8-bit (0-255)β is enabled.
The level palette to change to when triggered. -1 for none.
The boss palette to change to when triggered. -1 for none.
int TrigQuakeTimer π Source
The quake timer to set when triggered. -1 for none.
The wavy timer to set when triggered. -1 for none.
The duration to Sword Jinx the Hero for. -2 for none, -1 for βuntil curedβ, 0 to cure.
The duration to Item Jinx the Hero for. -2 for none, -1 for βuntil curedβ, 0 to cure.
int TrigShieldJinx π Source
The duration to Shield Jinx the Hero for. -2 for none, -1 for βuntil curedβ, 0 to cure.
The duration to Stun the Hero for. -2 for none, -1 for βuntil curedβ, 0 to cure.
The duration to Bunny the Hero for. -2 for none, -1 for βuntil curedβ, 0 to cure.
The duration that the combo must be pushed against for the βPush->β trigger flag to take effect.
The GFX combo/cset used to display the object, if βOther Combo GFXβ is the GFX mode.
The GFX combo/cset used to display the object, if βOther Combo GFXβ is the GFX mode.
int LiftUnderCombo π Source
The combo/cset that will be left behind when this combo is lifted.
The combo/cset that will be left behind when this combo is lifted.
The weapon damage of the thrown object.
The minimum lift glove level required to lift this object.
If > 0
, drops this item ID.
The combo lift flags.
What GFX to use to display the lifted object.
The GFX sprite used to display the object, if βSprite Data GFXβ is the GFX mode.
The SFX played on lifting.
int LiftBreakSprite π Source
The Sprite Data sprite displayed when the object breaks.
The SFX played on breaking.
The height above the Heroβs head to lift the object.
The number of frames it takes to lift the object to its full height.
int LiftWeaponItem π Source
If >0, the weapon will behave specially based on the provided item ID.
Corresponds to βA.SkipXβ in the Combo Editor.
Reserved for future use by the Combo Editor.
Function descriptions#
Returns the X-coordinate of a combo from a combodata script, from the βthis->β pointer as βthis->PosX()β.
Using this from any other combodata variable is illegal and undefined.
Warning
Deprecated! Use X instead!
Returns the Y-coordinate of a combo from a combodata script, from the βthis->β pointer as βthis->PosY()β.
Using this from any other combodata variable is illegal and undefined.
Warning
Deprecated! Use Y instead!
Returns the combo screen index of a combo from a combodata script, from the βthis->β pointer as βthis->Pos()β.
Using this from any other combodata variable is illegal and undefined.
Warning
Deprecated! Use Pos instead!
Returns the layer the combo is on in a combodata script, from the βthis->β pointer as βthis->Layer()β
Using this from any other combodata variable is illegal and undefined.
Warning
Deprecated! Use Layer instead!