combodata#
Variables#
const int |
|
const int |
|
const int |
|
const int |
|
const int |
|
untyped[] |
|
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[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
const combotrigger[] |
|
int |
|
bool |
|
bool[] |
TrigFlags deprecated |
int[] |
TriggerFlags deprecated |
bool[] |
TrigButton deprecated |
int |
TrigLevel deprecated |
int |
TrigItem deprecated |
int |
TrigTimer deprecated |
int |
TrigSFX deprecated |
int |
TrigChange deprecated |
int |
TrigCSetChange deprecated |
int |
TrigProximity deprecated |
int |
TrigLightBeam deprecated |
int |
TrigCounter deprecated |
int |
TrigCtrAmount deprecated |
int |
TrigCooldown deprecated |
int |
TrigCopycat deprecated |
int |
TrigSpawnItemPickup deprecated |
int |
TrigExState deprecated |
int |
TrigExDoorDir deprecated |
int |
TrigExDoorIndex deprecated |
int |
TrigSpawnEnemy deprecated |
int |
TrigSpawnItem deprecated |
int |
TrigLevelState deprecated |
int |
TrigGlobalState deprecated |
int |
TrigGStateTimer deprecated |
int |
TrigGenScript deprecated |
int |
TrigGroup deprecated |
int |
TrigGroupVal deprecated |
int |
TrigLItems deprecated |
int |
TrigDMapLvl deprecated |
int |
TrigTintR deprecated |
int |
TrigTintG deprecated |
int |
TrigTintB deprecated |
int |
TrigLvlPal deprecated |
int |
TrigBossPal deprecated |
int |
TrigQuakeTimer deprecated |
int |
TrigWavyTimer deprecated |
int |
TrigSwordJinx deprecated |
int |
TrigItemJinx deprecated |
int |
TrigShieldJinx deprecated |
int |
TrigStun deprecated |
int |
TrigBunny deprecated |
int |
TrigPushTime deprecated |
Functions#
int |
PosX() deprecated |
int |
PosY() deprecated |
int |
Pos() deprecated |
int |
Layer() deprecated |
GetTrigger(char32[] buf) |
Enumerations#
enum ComboSolidityBitflags: ๐ Source
Combo Quadrants used for Combo Solidity and CSet2vMasks.
ComboSolidityBitflags CMB_QUADRANT_UL = 1
ComboSolidityBitflags CMB_QUADRANT_UR = 4
ComboSolidityBitflags CMB_QUADRANT_DL = 2
ComboSolidityBitflags CMB_QUADRANT_DR = 8
ComboSolidityBitflags CMB_QUADRANT_UPLEFT = 1
ComboSolidityBitflags CMB_QUADRANT_UPRIGHT = 4
ComboSolidityBitflags CMB_QUADRANT_DOWNLEFT = 2
ComboSolidityBitflags CMB_QUADRANT_DOWNRIGHT = 8
ComboSolidityBitflags CMB_QUADRANT_LEFTUP = 1
ComboSolidityBitflags CMB_QUADRANT_RIGHTUP = 4
ComboSolidityBitflags CMB_QUADRANT_LEFTDOWN = 2
ComboSolidityBitflags CMB_QUADRANT_RIGHTDOWN = 8
enum AnimationBitflags: ๐ Source
AnimationBitflags AF_FRESH = 1
AnimationBitflags AF_CYCLE = 2
AnimationBitflags AF_CYCLENOCSET = 4
AnimationBitflags AF_TRANSPARENT = 8
AnimationBitflags AF_CYCLEUNDERCOMBO = 16
enum ComboGeneralFlag: ๐ Source
ComboGeneralFlag GENFLAG_HOOKSHOTTABLE = 0
ComboGeneralFlag GENFLAG_SWITCHHOOKABLE = 1
ComboGeneralFlag GENFLAG_MAX = 2
Variable descriptions#
The comboโs ID.
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 โ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.
value
TransformationType (FLIP_ or ROT_)
How to flip (or rotate) the combo.
value
ComboSolidityBitflags (CMB_QUADRANT_)
The solidity bitmask of the combo (same as Screen->ComboS[]).
The effect bitmask of the combo (same as Screen->ComboE[]).
value
ComboType (CT_)
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_CYCLEUNDERCOMBO
is set, it overrides this.
If the AnimFlags AF_CYCLENOCSET
and AF_CYCLEUNDERCOMBO
are NOT set, the combo will change to
this cset when it cycles.
value
ComboFlag (CF_)
The inherent flag of the combo.
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.
value
AnimationBitflags (AF_)
The comboโs animation flags.
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 comboโs 16 variable flags. Their effect depends on the combo type.
index
ComboGeneralFlag (GENFLAG_)
The comboโs general flags.
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.
index
ComboLiftFlag (LF_)
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 LiftLightRadius ๐ Source
The radius of light that will be emitted by the lifted weapon.
int LiftLightShape ๐ Source
The LightShape (LIGHT_) the lifted weapon will use, if light is emitted.
int LiftWeaponItem ๐ Source
If >0, the weapon will behave specially based on the provided item ID.
Corresponds to โA.SkipXโ in the Combo Editor.
const combotrigger[] Triggers ๐ Source
The comboโs triggers.
The number of triggers the combo has. Writing to this instantly resizes Triggers[].
bool OnlyGenTriggers ๐ Source
If true, donโt allow the combo to trigger via itโs normal trigger methods (ex: bush via slashing)
index
ComboTriggerFlag (TRIGFLAG_)
The trigger flags of the combo.
Deprecated: Use Triggers[] / combotrigger::Flags[] instead!
int[] TriggerFlags ๐ Source
Deprecated: Use Triggers[] / combotrigger::Flags[] instead!
Deprecated: Use Triggers[] / combotrigger::Button[] instead!
Deprecated: Use Triggers[] / combotrigger::WeaponLevel instead!
Deprecated: Use Triggers[] / combotrigger::ReqItem instead!
Deprecated: Use Triggers[] / combotrigger::Timer instead!
The SFX to play when the combo is triggered. If 0, no SFX will be played.
Deprecated: Use Triggers[] / combotrigger::SFX instead!
The amount the combo will change by when triggered.
Ex. 1
acts as โ->Nextโ, -1
acts as โ->Prevโ.
If 0
, no change occurs.
Deprecated: Use Triggers[] / combotrigger::ComboChange instead!
int TrigCSetChange ๐ Source
The amount the cset will change by when triggered.
Deprecated: Use Triggers[] / combotrigger::CSetChange instead!
Deprecated: Use Triggers[] / combotrigger::Proximity instead!
The light beam trigger set that (may) trigger this combo.
0 means any beams, 1-32 mean only matching beams.
Related:
TriggerFlags[TRIGFLAG_LIGHTON]
(trigger when hit by matching light)TriggerFlags[TRIGFLAG_LIGHTOFF]
(trigger when NOT hit by matching light)
Deprecated: Use Triggers[] / combotrigger::LightBeam instead!
Deprecated: Use Triggers[] / combotrigger::Counter instead!
Deprecated: Use Triggers[] / combotrigger::CounterAmount instead!
The comboโs cooldown between triggers
Deprecated: Use Triggers[] / combotrigger::Cooldown instead!
If > 0, triggering this combo triggers all other combos with matching TrigCopycat.
Deprecated: Use Triggers[] / combotrigger::Copycat instead!
int TrigSpawnItemPickup ๐ Source
value
ItemPickupBitflags (IP_)
The item pickup bitflags for the spawned item.
Only these bitflags are used: IP_HOLDUP, IP_TIMEOUT, IP_TRIGGERSECRETS, and IP_ALWAYSGRAB.
Deprecated: Use Triggers[] / combotrigger::SpawnItemPickup instead!
If > -1, the ExState that the combo is linked to.
Deprecated: Use Triggers[] / combotrigger::ExState instead!
If > -1, the direction of ExDoor that the combo is linked to
Deprecated: Use Triggers[] / combotrigger::ExDoorDir instead!
int TrigExDoorIndex ๐ Source
If TrigExDoorDir is > -1, the index of that direction of ExDoor that the combo is linked to.
Deprecated: Use Triggers[] / combotrigger::ExDoorIndex instead!
int TrigSpawnEnemy ๐ Source
If > 0, the enemy ID spawned when the combo is triggered.
Deprecated: Use Triggers[] / combotrigger::SpawnEnemy instead!
If > 0, the item ID (or dropset ID) spawned when the combo is triggered.
Deprecated: Use Triggers[] / combotrigger::SpawnItem instead!
int TrigLevelState ๐ Source
The LevelState used for the TRIGFLAG_TRIGLEVELSTATE
and
TRIGFLAG_LEVELSTATE
flags. 0-31, inclusive.
Deprecated: Use Triggers[] / combotrigger::LevelState instead!
int TrigGlobalState ๐ Source
The GlobalState used for the TRIGFLAG_TRIGGLOBALSTATE
and
TRIGFLAG_GLOBALSTATE
flags. 0-255, inclusive.
Deprecated: Use Triggers[] / combotrigger::GlobalState instead!
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.
Deprecated: Use Triggers[] / combotrigger::GStateTimer instead!
When triggered, this generic script will be run in the โRunFrozenโ mode.
Deprecated: Use Triggers[] / combotrigger::GenScript instead!
The Trigger Group used for the TRIGFLAG_TGROUP_CONTRIB
,
TRIGFLAG_TGROUP_LESS
, and TRIGFLAG_TGROUP_GREATER
flags.
0-255, inclusive.
Deprecated: Use Triggers[] / combotrigger::TrigGroup instead!
The value used for the TRIGFLAG_TGROUP_LESS
and
TRIGFLAG_TGROUP_GREATER
flags.
0-65535, inclusive.
Deprecated: Use Triggers[] / combotrigger::TrigGroupVal instead!
โLI_โ flags used by the
TRIGFLAG_LITEM_REQUIRE
,TRIGFLAG_LITEM_INV_REQUIRE
,TRIGFLAG_LITEM_SET
,TRIGFLAG_LITEM_UNSET
flags.
Deprecated: Use Triggers[] / combotrigger::LItems instead!
The โLevelโ used by โTrigLItemsโ.
- -1 represents the โcurrent levelโ, otherwise a valid dmap level indicates
that level.
Deprecated: Use Triggers[] / combotrigger::DMapLvl instead!
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.
Deprecated: Use Triggers[] / combotrigger::TintR instead!
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.
Deprecated: Use Triggers[] / combotrigger::TintG instead!
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.
Deprecated: Use Triggers[] / combotrigger::TintB instead!
The level palette to change to when triggered. -1 for none.
Deprecated: Use Triggers[] / combotrigger::LvlPal instead!
The boss palette to change to when triggered. -1 for none.
Deprecated: Use Triggers[] / combotrigger::BossPal instead!
int TrigQuakeTimer ๐ Source
The quake timer to set when triggered. -1 for none.
Deprecated: Use Triggers[] / combotrigger::QuakeTimer instead!
The wavy timer to set when triggered. -1 for none.
Deprecated: Use Triggers[] / combotrigger::WavyTimer instead!
The duration to Sword Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Deprecated: Use Triggers[] / combotrigger::SwordJinx instead!
The duration to Item Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Deprecated: Use Triggers[] / combotrigger::ItemJinx instead!
int TrigShieldJinx ๐ Source
The duration to Shield Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Deprecated: Use Triggers[] / combotrigger::ShieldJinx instead!
The duration to Stun the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Deprecated: Use Triggers[] / combotrigger::Stun instead!
The duration to Bunny the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Deprecated: Use Triggers[] / combotrigger::Bunny instead!
The duration that the combo must be pushed against for the โPush->โ trigger flag to take effect.
Deprecated: Use Triggers[] / combotrigger::PushTime instead!
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.
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.
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.
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.
Deprecated: Use Layer instead!
combotrigger GetTrigger(char32[] buf) ๐ Source
Gets the first trigger of this combo whose name exactly matches โbufโ.