Skip to content
Snippets Groups Projects
Commit bd589da4 authored by Andrest07's avatar Andrest07
Browse files

Near complete countering. Just need to edit all related encounters to use it.

parent 0c056a13
No related branches found
No related tags found
No related merge requests found
......@@ -4953,6 +4953,9 @@
<<if $combatExtended.counteringActive is undefined>>
<<set $combatExtended.counteringActive to 0>>
<</if>>
<<if $combatExtended.counterSuccess is undefined>>
<<set $combatExtended.counterSuccess to 0>>
<</if>>
<<if $combatExtended.blockingActive is undefined>>
<<set $combatExtended.blockingActive to 0>>
<</if>>
......
......@@ -653,6 +653,7 @@
<<set _dodgeChance to 0>>
<<set _passiveDodgeChance to 0>>
<<set _activeDodgeChance to 0>>
<<set _counterChance to 0>>
<<set _dancedodge to Math.round(currentSkillValue('danceskill') / 40)>>
<<if $bodysize is 3>>
<<set _bodyDodgeChance to -20>>
......@@ -697,7 +698,23 @@
<<set _activeDodgeChance to 0>>
<</if>>
<</if>>
<<if _passiveDodgeChance gt _activeDodgeChance>>
<<if $combatExtended.countering is 1>>
<<set _counterChance to 0>>
<<if $combatExtended.counteringActive gte 1>>
<<set _counterChance to 100 * ((0.35 * (1 * ($skulduggery / 1000))) * $combatExtended.counteringActive)>>
<<if _dodgeChance gte random(100)>>
<<set _counterChance to 2>>
<<elseif _dodgeChance gte random(80)>>
<<set _counterChance to 1>>
<<else>>
<<set _counterChance to 0>>
<</if>>
<<set $combatExtended.counteringActive to 0>>
<</if>>
<</if>>
<<if _counterChance gte 1>>
<<set $combatExtended.counterSuccess to _counterChance>>
<<elseif _passiveDodgeChance gt _activeDodgeChance>>
<<set $combatExtended.dodgeSuccess to _passiveDodgeChance>>
<<else>>
<<set $combatExtended.dodgeSuccess to _activeDodgeChance>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment