Specialized module to help with making attacks and combat systems.
AttackRegister | [1, 2] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Basic |
---|---|---|---|
Initiates an attack with default parameters. This should be the first function called for a new attack, then you use other Attack functions to customize it, and finally you use Hitbox to apply it.
| |||
AttackRegisterNoNotation | [1] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Intermediate |
Same as AttackRegister, but won't actually add the attack to the list of cancels, which you'll have to do manually.
| |||
AttackAddNotation | [1] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Intermediate |
Registers the attack under an additional notation input. This will still count as the same attack.
| |||
AttackInternalRegister | [1, 2] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Expert |
Internal trick to improve performance. Don't use it.
| |||
AttackInternalRegisterNoNotation | [1] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Expert |
Internal trick to improve performance. Don't use it.
| |||
AttackInit | [0] | [AllPhases, Init, Action, Reaction, Manual, Subentity] | Expert |
Internal call for various data set. | |||
AttackDuration | [1] | [Init, Action, Manual, Subentity] | Basic |
Changes the total duration of the attack. Can replace Attack's second parameter but must be called before it.
| |||
AttackRearm | [0] | [Init, Action, Manual, Subentity] | Expert |
Sets the variables to be able to hit with another attack, and should be used between new attacks (done by CASP automatically). Resets the hit detection. | |||
AttackMultihit | [0] | [Init, Action, Manual, Subentity] | Intermediate |
Allows an attack to hit a second time, hit detection won't be reset and proration will be nullified (through CASP). |
_AttackData | {} | [ResetEachFrame] | |
---|---|---|---|
_AttackDuration | 600 | [] | |
_AttackHitEntities | [] | [] | |
_AttackHitEntitiesMultihit | [] | [] | |
_RecievedAttackData | {} | [] | |
Stores the last attack recieved. | |||
_InflictedAttackData | {} | [] | |
Stores the last attack inflicted. | |||
_RegisteredAttacksForEntityByType | {} | [] | |
AttackDefault-_Flags | [] | [] | ||
---|---|---|---|---|
AttackDefault-_Unflag | [] | [] | ||
AttackFlag | [1] | [Init, Action, Manual, Subentity] | Basic |
---|---|---|---|
Sets a flag on the attack. All flags are transfered to the hit opponent with the AF prefix (meaning Low become AFLow), and are used by modules during attack checking. See the list of flags for more information.
| |||
AttackUnflag | [1] | [Init, Action, Manual, Subentity] | Intermediate |
Removes a flag from an attack.
| |||
AttackRecievedFlag | [1] | [Init, Action, Manual, Subentity] | Advanced |
Set an attack flag on the last recieved attack.
| |||
AttackRecievedUnflag | [1] | [Init, Action, Manual, Subentity] | Advanced |
Removes an attack flag on the last recieved attack.
| |||
AttackInflictedFlag | [1] | [Init, Action, Manual, Subentity] | Advanced |
Set an attack flag on the last inflicted attack.
| |||
AttackInflictedUnflag | [1] | [Init, Action, Manual, Subentity] | Advanced |
Removes an attack flag on the last inflicted attack.
| |||
AttackParam | [2] | [Init, Action, Manual, Subentity] | Advanced |
Sets a generic attack parameter directly. This is an advanced function and should be used either when you need some really specific adjustment, or when you want to add functionality without a module.
| |||
AttackRecievedGetParam | [2, 3] | [Init, Action, Manual, Subentity] | Intermediate |
Extracts a parameter from the recieved attack
| |||
AttackRecievedSetParam | [2] | [Init, Action, Manual, Subentity] | Advanced |
Sets a parameter in the recieved attack data
| |||
AttackInflictedGetParam | [2, 3] | [Init, Action, Manual, Subentity] | Intermediate |
Extracts a parameter from the inflicted attack
| |||
AttackInflictedSetParam | [2] | [Init, Action, Manual, Subentity] | Advanced |
Sets a parameter in the inflicted attack data
|
AttackDefault-MinHitstun | 1 | [] | ||
---|---|---|---|---|
AttackDefault-Hitstun | -1 | [] | ||
AttackDefault-Blockstun | -1 | [] | ||
AttackDefault-Hitstop | 4 | [] | ||
AttackDefault-Blockstop | 2 | [] | ||
AttackFrameAdvantage | [1, 2] | [Init, Action, Manual, Subentity] | Basic |
---|---|---|---|
Sets an attack's frame advantage automatically on hit and block. This is based on the total duration of the attack and the last use of the multihit flag. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackFrameAdvantageHit | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's frame advantage automatically on hit. This is based on the total duration of the attack and the last hit possibility. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackFrameAdvantageBlock | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's frame advantage automatically on block. This is based on the total duration of the attack and the last hit possibility. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackFA | [1, 2] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's frame advantage automatically on hit and block. This is based on the total duration of the attack and the last use of the multihit flag. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackFAHit | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's frame advantage automatically on hit. This is based on the total duration of the attack and the last hit possibility. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackFABlock | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's frame advantage automatically on block. This is based on the total duration of the attack and the last hit possibility. Same functionality as AttackSetHitstunBlockstun, but in an easier way.
| |||
AttackHitstunBlockstun | [2] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's hitstun and blockstun. Same functionality as AttackFrameAdvantage, but in a more direct way.
| |||
AttackHitstun | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's hitstun. Same functionality as AttackFrameAdvantage, but in a more direct way.
| |||
AttackBlockstun | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's blockstun. Same functionality as AttackFrameAdvantage, but in a more direct way.
| |||
AttackMinHitstun | [1] | [Init, Action, Manual, Subentity] | Basic |
Sets an attack's minimum hitstun hitstun, regardless of proration.
| |||
AttackHitstop | [1] | [Init, Action, Manual, Subentity] | |
Sets an attack's hitstop, which is a small pause when the hit connects.
| |||
AttackBlockstop | [1] | [Init, Action, Manual, Subentity] | |
Sets an attack's blockstop, which is a small pause when the attack is blocked.
| |||
AttackHitstopBlockstop | [2] | [Init, Action, Manual, Subentity] | |
Sets an attack's hitstop and blockstop, which is a small pause when the attack hits or is blocked.
|
_HitstunDuration | 0 | [] | |
---|---|---|---|
_BlockstunDuration | 0 | [] | |
AttackDefault-Damage | 100 | [] | ||
---|---|---|---|---|
AttackDefault-ChipDamage | 0 | [] | ||
AttackDefault-MinDamage | 1 | [] | ||
AttackDamage | [1] | [Init, Action, Manual, Subentity] | |
---|---|---|---|
Unspecified. | |||
AttackChipDamage | [1] | [Init, Action, Manual, Subentity] | Intermediate |
Sets an attack's chip damage, the damage that gets inflicted when an opponent blocks.
| |||
AttackMinDamage | [1] | [Init, Action, Manual, Subentity] | Intermediate |
Sets an attack's minimum damage.
|
AttackMustBlock | [1] | [Init, Action, Manual, Subentity] | Basic |
---|---|---|---|
Allows an attack to bypass blocking if the opponents doesn't have a corresponding CanBlock- flag. Only one MustBlock and CanBlock need to match for the attack to be blocked.
| |||
AttackUnblockable | [1] | [Init, Action, Manual, Subentity] | Intermediate |
Allows an attack to bypass blocking if the target has the specified flag. Useful for anti-airs (PF_Airborne) and throws (PF_Grounded), which have been made into helper functions.
| |||
AttackUnblockableGround | [0] | [Init, Action, Manual, Subentity] | Intermediate |
This attack can't be blocked by grounded opponents. Equivalent to AttackUnblockable(PF_Grounded) | |||
AttackUnblockableAirborne | [0] | [Init, Action, Manual, Subentity] | Intermediate |
This attack can't be blocked by airborne opponents. Equivalent to AttackUnblockable(PF_Airborne) |
AF_MustBlock-X | Attack can't be blocked unless it has a CanBlock-[X] and Blocking-[X] flag. | |
---|---|---|
AF_Unblockable-X | Attack can't be blocked if opponent has [X] flag | |
AF_PhaseBlock | Attack counts as missing instead of blocked. | |
CanBlock | Allows blocking using the Blocking flag. | |
CanBlock-X | Allows blocking attacks using the MustBlock-[X] flag. | |
CanBlock-All | Same as CanBlock-[X] for all values of [X]. | |
Blocking | Signifies the character is attempting to block, and will do so if abled by the CanBlock flag. | |
Blocking-X | Signifies the character is attempting to block [X] attacks, and will do so if abled by a corresponding CanBlock-[X] flag. | |
Blocking-All | Counts as Blocking-[X] for all values of [X]. |
AttackDefault-_Overrides | [] | [] | ||
---|---|---|---|---|
AttackOverride | [0, 1] | [Init, Action, Manual, Subentity] | |
---|---|---|---|
Sets the next parameters to be part of an override. When said override is activated, the parameters will replace the regular ones. See the full documentation for more details.
| |||
AttackOverrideMultiple | [1, 2, 3, 4, 5, 6] | [Init, Action, Manual, Subentity] | |
Adds another override condition to the list, allowing for overrides depending on two distinct activations. See the full documentation for details.
| |||
AttackRecievedOverride | [1] | [Init, Action, Manual, Subentity] | |
Activates an override on the last recieved attack.
| |||
AttackInflictedOverride | [1] | [Init, Action, Manual, Subentity] | |
Activates an override on the last inflicted attack.
|
_AttackOverrides | [] | [ResetEachFrame] | |
---|---|---|---|
AttackDefault-ProrationDamage | 1000 | [] | ||
---|---|---|---|---|
AttackDefault-ProrationHitstun | 1000 | [] | ||
AttackProrationHitstun | [1, 2] | [Init, Action, Manual, Subentity] | Intermediate |
---|---|---|---|
Sets an attack's proration for hitstun. The lower it is, the more hitstun will decay with each hit. Values are in permil.
| |||
AttackProrationDamage | [1, 2] | [Init, Action, Manual, Subentity] | Intermediate |
Sets an attack's proration for damage. The lower it is, the more damage will decay with each hit. Values are in permil.
|
AF_IgnoreProrationDamage | ||
---|---|---|
AF_IgnoreProrationHitstun | ||
AF_IgnoreProration |
AttackDefault-MomentumX | 1000 | [] | ||
---|---|---|---|---|
AttackDefault-MomentumY | 0 | [] | ||
AttackDefault-MomentumZ | 0 | [] | ||
AttackDefault-InheritMomentumX | 0 | [] | ||
AttackDefault-InheritMomentumY | 0 | [] | ||
AttackDefault-InheritMomentumZ | 0 | [] | ||
AttackDefault-FloatGravity | 0 | [] | ||
AttackMomentum | [1, 2, 3, 4] | [Init, Action, Manual, Subentity] | Basic |
---|---|---|---|
Sets an attacks's added momentum to the opponent on hit and block.
| |||
AttackMomentumHit | [1, 2, 3, 4] | [Init, Action, Manual, Subentity] | Intermediate |
Sets an attacks's added momentum to the opponent on hit.
| |||
AttackMomentumBlock | [1, 2, 3, 4] | [Init, Action, Manual, Subentity] | Intermediate |
Sets an attacks's added momentum to the opponent on block.
| |||
AttackInheritMomentum | [0, 1, 2, 4] | [Init, Action, Manual, Subentity] | Intermediate |
Makes an attack inherit the momentum of the attacker, in permil. Happens on hit and block.
| |||
AttackInheritMomentumHit | [0, 1, 2, 4] | [Init, Action, Manual, Subentity] | Intermediate |
Makes an attack inherit the momentum of the attacker, in permil. Happens on hit.
| |||
AttackInheritMomentumBlock | [0, 1, 2, 4] | [Init, Action, Manual, Subentity] | Intermediate |
Makes an attack inherit the momentum of the attacker, in permil. Happens on block.
| |||
AttackFloat | [1] | [Init, Action, Manual, Subentity] | Intermediate |
Sets the opponent's gravity on hit to the specified value until the next attack.
|
_HitstunGravityFloat | 0 | [] | |
---|---|---|---|
AttackDefault-KnockdownTimeMin | 13 | [] | ||
---|---|---|---|---|
AttackDefault-KnockdownTimeMax | 43 | [] | ||
AttackDefault-TransitionTo | Hitstun | [] | ||
AttackKnockdown | [0, 1, 2] | [Init, Action, Manual, Subentity] | Intermediate |
---|---|---|---|
Sets an attack's minimum and maximum time on knockdown. Automatically applies the knockdown attack flag. If no arguments are given, use default values. If only one is given, the second is computed automatically from the difference between defaults.
| |||
AttackTransitionTo | [1] | [Init, Action, Manual, Subentity] | |
The attack will make the defender transition to another state on hit.
|
_KnockdownTimeMin | 13 | [] | |
---|---|---|---|
_KnockdownTimeMax | 43 | [] | |
_GroundbounceTime | 0 | [] | |
_GroundbounceMomentum | 0 | [] | |
AttackCancelPriorityDefault | 10000 | [] | ||
---|---|---|---|---|
AttackCancel | [1, 2, 3, 4] | [Init, Action, Manual, Subentity] | Basic |
---|---|---|---|
Adds an attack cancel. These will be active automatically in the sitations given by the 3rd argument.
| |||
AttackAddRegisteredCancels | [1, 2, 3] | [Init, Action, Manual, Subentity] | Intermediate |
Adds all attack cancels of a given type.
| |||
AttackCancelPrefix | [0, 1] | [Action, Freeze, Manual, Subentity] | Intermediate |
Set the prefix used when looking for attack cancels
| |||
AttackResetDoneCancels | [0] | [Init, Action, Manual, Subentity] | Advanced |
Resets the list of used attacks in cancels, meaning you can use them again. Mostly used when returning to neutral. |
ATTACKCANCEL_ON_HIT | 1 | [] | |
---|---|---|---|
ATTACKCANCEL_ON_BLOCK | 2 | [] | |
ATTACKCANCEL_ON_HIT_BLOCK | 3 | [] | |
ATTACKCANCEL_ON_TOUCH | 3 | [] | |
ATTACKCANCEL_ON_WHIFF | 4 | [] | |
ATTACKCANCEL_ON_HIT_WHIFF | 5 | [] | |
ATTACKCANCEL_ON_BLOCK_WHIFF | 6 | [] | |
ATTACKCANCEL_ON_HIT_BLOCK_WHIFF | 7 | [] | |
ATTACKCANCEL_ON_TOUCH_WHIFF | 7 | [] | |
ATTACKCANCEL_ON_NEUTRAL | 8 | [] | |
ATTACKCANCEL_ON_HIT_NEUTRAL | 9 | [] | |
ATTACKCANCEL_ON_BLOCK_NEUTRAL | 10 | [] | |
ATTACKCANCEL_ON_HIT_BLOCK_NEUTRAL | 11 | [] | |
ATTACKCANCEL_ON_TOUCH_NEUTRAL | 11 | [] | |
ATTACKCANCEL_ON_WHIFF_NEUTRAL | 12 | [] | |
ATTACKCANCEL_ON_HIT_WHIFF_NEUTRAL | 13 | [] | |
ATTACKCANCEL_ON_BLOCK_WHIFF_NEUTRAL | 14 | [] | |
ATTACKCANCEL_ON_HIT_BLOCK_WHIFF_NEUTRAL | 15 | [] | |
ATTACKCANCEL_ON_TOUCH_WHIFF_NEUTRAL | 15 | [] | |
_AttackCancelPrefix | [ResetEachFrame] | ||
_AttackDoneCancels | [] | [] | |
_AttackInitialOutFrame | -1 | [] | |
_AttackHitconfirm_State | Null | [] | |
_AttackPossibleCancelsWhiff | {} | [ResetEachFrame] | |
_AttackPossibleCancelsBlock | {} | [ResetEachFrame] | |
_AttackPossibleCancelsHit | {} | [ResetEachFrame] | |
_AttackPossibleCancelsNeutral | {} | [ResetEachFrame] | |
AttackHasHit | ||
---|---|---|
AttackWasBlocked | ||
AttackHasWhiffed | ||
AttackHasTouched | ||
AttackStartup | ||
AttackWasActive |