@HitParry

From SphereWiki
Revision as of 16:54, 2 July 2022 by Gorgo (talk | contribs) (Created page with "==Description== The trigger is fired when a character succesfully parries a hit, that is the trigger @(Skill)UseQuick for parrying is succesfull. By default a parried hit will...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Description

The trigger is fired when a character succesfully parries a hit, that is 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 succesfully parried 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.ITEMPARRYDAMAGE IO The chance that the parrying item will be damaged (default 100%).

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.