Difference between revisions of "@HitParry"
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Description== | ==Description== | ||
− | The trigger is fired | + | X branch only. The trigger is fired before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on). |
There are two for changing the damage reduced: | There are two for changing the damage reduced: | ||
Line 24: | Line 24: | ||
| '''Name''' || '''Description''' | | '''Name''' || '''Description''' | ||
|- | |- | ||
− | | [[I]] || The [[Characters|character]] that | + | | [[I]] || The [[Characters|character]] that is attempting to parry the strike. |
|- | |- | ||
| [[SRC]] || The [[Characters|character]] that did the strike. | | [[SRC]] || The [[Characters|character]] that did the strike. | ||
Line 43: | Line 43: | ||
| ARNG2 || IO || Damage type. | | ARNG2 || IO || Damage type. | ||
|- | |- | ||
− | | LOCAL. | + | | LOCAL.PARRYCHANCE || IO || The chance to parry the blow. The chance will be passed to the SkillUseQuick/UseQuick triggers. |
+ | |- | ||
+ | | LOCAL.PARRYSKILLID || IO || The skill used for parrying, this can be changed by setting the appropriate skill ID. | ||
+ | |- | ||
+ | | LOCAL.ITEMPARRYDAMAGECHANCE || IO || The chance that the parrying item will be damaged (default 100%). | ||
+ | |- | ||
+ | | LOCAL.DAMAGE || IO || The amount of damage (raw) before the parry reduction. | ||
|} | |} | ||
Latest revision as of 04:30, 7 July 2022
Description
X branch only. The trigger is fired before the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will reduce the damage by 100% and thus negating the hit and the following triggers (@Hit and so on).
There are two for changing the damage reduced:
- Overwriting the Argn1 value in the @HitParry trigger.
- By using the EFFECT property in the skill definition of the Parrying Skill, in this case the damage will be reduced by the EFFECT value:
- If only one values is defined (Example:EFFECT=75) the damage will always be reduced by 75% no matter skills.
- If one or more values are defined (Example: EFFECT=25,75) the damage will be reduced by 25% when the Parrying skill is near 0.0 and by 75% when the Parrying skill is near 100.0, that is damage reduction will be scaled according to the character parrying skill.
- If no values are defined, the default value of 100 will be used.
Fires on:
References
The following object references are explicitly available for this trigger:
Name | Description |
I | The character that is attempting to parry the strike. |
SRC | The character that did the strike. |
ARGO | The weapon or shield used for parry, if any. |
Arguments
The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:
Argument | In/Out | Description |
ARNG1 | IO | Percent of damage that will be reduced (default 100%). |
ARNG2 | IO | Damage type. |
LOCAL.PARRYCHANCE | IO | The chance to parry the blow. The chance will be passed to the SkillUseQuick/UseQuick triggers. |
LOCAL.PARRYSKILLID | IO | The skill used for parrying, this can be changed by setting the appropriate skill ID. |
LOCAL.ITEMPARRYDAMAGECHANCE | IO | The chance that the parrying item will be damaged (default 100%). |
LOCAL.DAMAGE | IO | The amount of damage (raw) before the parry reduction. |
Return Values
The following return values are explicitly defined for this trigger:
Return Value | Description |
1 | Completely blocks the damage as if the parry damage reduction was set to 100. |