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[] |
Attribytes deprecated |
int[] |
Attrishorts deprecated |
bool[] |
|
bool[] |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
bool[] |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
|
int |
LiftLightRadius deprecated |
int |
LiftLightShape deprecated |
int |
|
int |
|
int |
|
int |
|
const combotrigger[] |
|
int |
|
bool |
|
int |
|
int |
|
int |
|
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 |
const weapondata |
|
const weapondata |
Functions#
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
โRefresh Animation on Room Entryโ
AnimationBitflags AF_CYCLE = 2
โRefresh Animation when cycled toโ
AnimationBitflags AF_CYCLENOCSET = 4
โCycle Ignores CSetโ
AnimationBitflags AF_TRANSPARENT = 8
โToggle Transparencyโ
AnimationBitflags AF_CYCLEUNDERCOMBO = 16
Added in version 3.0.
โCycle To Screen Undercomboโ
AnimationBitflags AF_EDITOR_ONLY = 32
Added in version 3.0.
โOnly Visible In Editorโ
AnimationBitflags AF_OVERHEAD = 64
Added in version 3.0.
โOverheadโ
enum ComboGeneralFlag: ๐ Source
ComboGeneralFlag GENFLAG_HOOKSHOTTABLE = 0
ComboGeneralFlag GENFLAG_SWITCHHOOKABLE = 1
ComboGeneralFlag GENFLAG_WALK_ON_TOP = 2
Added in version 3.0.
ComboGeneralFlag GENFLAG_WALK_ON_TOP_DRAW_OFFSET = 3
Added in version 3.0.
ComboGeneralFlag GENFLAG_MAX = 4
Variable descriptions#
The comboโs ID.
deprecated_getter PosX
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.
deprecated_getter PosY
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.
deprecated_getter Pos
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_getter Layer
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.
Changed in version 3.0: Used to be size 4
The 24 combo attributes. These have a full range (all zscript values, including decimal). Their effect depends on the combo type.
Deprecated: Use Attributes[] indexes 8-15 instead!
The 8 combo attribytes. These have a byte-sized range, 0 to 255. Their
effect depends on the combo type.
Deprecated: Use Attributes[] indexes 16-23 instead!
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.
bool[] LargeComboDirs ๐ Source
index Direction (DIR_)
length 4
Added in version 3.0.
Certain features, such as LF_LARGE_LIFTABLE, use this directions to connect to other combos forming a โLarge Comboโ. If a direction is set on this combo, and the combo on the same layer in that direction has the opposite direction set, the combos will be connected for features that use large combos.
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
Added in version 3.0.
Deprecated: use LiftWeaponData / weapondata::BurnLightRadius[] instead!
The radius of light that will be emitted by the lifted weapon.
int LiftLightShape ๐ Source
Added in version 3.0.
Deprecated: use LiftWeaponData / weapondata::LightShape instead!
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
Added in version 3.0.
The comboโs triggers.
Added in version 3.0.
The number of triggers the combo has. Writing to this instantly resizes Triggers[].
bool OnlyGenTriggers ๐ Source
Added in version 3.0.
If true, donโt allow the combo to trigger via itโs normal trigger methods (ex: bush via slashing)
Added in version 3.0.
The Z-height of the combo for GENFLAG_WALK_ON_TOP. A value of โ0โ represents infinite height.
Added in version 3.0.
The amount below the ZHeight that can still reach it to walk atop it via GENFLAG_WALK_ON_TOP. Designed for โwalking up stairsโ type effects. Canโt be negative.
int DiveUnderLevel ๐ Source
Added in version 3.0.
If >0 and the player is diving with flippers of at least this level, the player will ignore the solidity of this combo.
index ComboTriggerFlag (TRIGFLAG_)
Deprecated: Use Triggers[] / combotrigger::Flags[] instead!
The trigger flags of the combo.
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!
Deprecated: Use Triggers[] / combotrigger::SFX instead!
The SFX to play when the combo is triggered. If 0, no SFX will be played.
Deprecated: Use Triggers[] / combotrigger::ComboChange instead!
The amount the combo will change by when triggered.
Ex. 1 acts as โ->Nextโ, -1 acts as โ->Prevโ.
If 0, no change occurs.
int TrigCSetChange ๐ Source
Deprecated: Use Triggers[] / combotrigger::CSetChange instead!
The amount the cset will change by when triggered.
Deprecated: Use Triggers[] / combotrigger::Proximity instead!
Deprecated: Use Triggers[] / combotrigger::LightBeam 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::Counter instead!
Deprecated: Use Triggers[] / combotrigger::CounterAmount instead!
Deprecated: Use Triggers[] / combotrigger::Cooldown instead!
The comboโs cooldown between triggers
Deprecated: Use Triggers[] / combotrigger::Copycat instead!
If > 0, triggering this combo triggers all other combos with matching TrigCopycat.
int TrigSpawnItemPickup ๐ Source
value ItemPickupBitflags (IP_)
Deprecated: Use Triggers[] / combotrigger::SpawnItemPickup instead!
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::ExState instead!
If > -1, the ExState that the combo is linked to.
Deprecated: Use Triggers[] / combotrigger::ExDoorDir instead!
If > -1, the direction of ExDoor that the combo is linked to
int TrigExDoorIndex ๐ Source
Deprecated: Use Triggers[] / combotrigger::ExDoorIndex instead!
If TrigExDoorDir is > -1, the index of that direction of ExDoor that the combo is linked to.
int TrigSpawnEnemy ๐ Source
Deprecated: Use Triggers[] / combotrigger::SpawnEnemy instead!
If > 0, the enemy ID spawned when the combo is triggered.
Deprecated: Use Triggers[] / combotrigger::SpawnItem instead!
If > 0, the item ID (or dropset ID) spawned when the combo is triggered.
int TrigLevelState ๐ Source
Deprecated: Use Triggers[] / combotrigger::LevelState instead!
The LevelState used for the TRIGFLAG_TRIGLEVELSTATE and
TRIGFLAG_LEVELSTATE
flags. 0-31, inclusive.
int TrigGlobalState ๐ Source
Deprecated: Use Triggers[] / combotrigger::GlobalState instead!
The GlobalState used for the TRIGFLAG_TRIGGLOBALSTATE and
TRIGFLAG_GLOBALSTATE
flags. 0-255, inclusive.
int TrigGStateTimer ๐ Source
Deprecated: Use Triggers[] / combotrigger::GStateTimer instead!
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::GenScript instead!
When triggered, this generic script will be run in the โRunFrozenโ mode.
Deprecated: Use Triggers[] / combotrigger::TrigGroup 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::TrigGroupVal instead!
The value used for the TRIGFLAG_TGROUP_LESS and
TRIGFLAG_TGROUP_GREATER flags.
0-65535, inclusive.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::LItems instead!
โLI_โ flags used by the
TRIGFLAG_LITEM_REQUIRE,TRIGFLAG_LITEM_INV_REQUIRE,TRIGFLAG_LITEM_SET,TRIGFLAG_LITEM_UNSET
flags.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::DMapLvl instead!
The โLevelโ used by โTrigLItemsโ.
- -1 represents the โcurrent levelโ, otherwise a valid dmap level indicates
that level.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::TintR 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.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::TintG 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.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::TintB 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.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::LvlPal instead!
The level palette to change to when triggered. -1 for none.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::BossPal instead!
The boss palette to change to when triggered. -1 for none.
int TrigQuakeTimer ๐ Source
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::QuakeTimer instead!
The quake timer to set when triggered. -1 for none.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::WavyTimer instead!
The wavy timer to set when triggered. -1 for none.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::SwordJinx instead!
The duration to Sword Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::ItemJinx instead!
The duration to Item Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
int TrigShieldJinx ๐ Source
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::ShieldJinx instead!
The duration to Shield Jinx the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::Stun instead!
The duration to Stun the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::Bunny instead!
The duration to Bunny the Hero for. -2 for none, -1 for โuntil curedโ, 0 to cure.
Added in version 3.0.
Deprecated: Use Triggers[] / combotrigger::PushTime instead!
The duration that the combo must be pushed against for the โPush->โ trigger flag to take effect.
const weapondata LiftWeaponData ๐ Source
Added in version 3.0.
The weapondata for this comboโs lift weapon.
const weapondata MiscWeaponData ๐ Source
Added in version 3.0.
The weapondata for this comboโs misc weapon.
Function descriptions#
combotrigger GetTrigger(char32[] buf) ๐ Source
Added in version 3.0.
Gets the first trigger of this combo whose name exactly matches โbufโ.
Load with Game->LoadComboData(), mapdata::ComboData[], Screen->ComboData[]