From 92d3154be14dd0166a562620444ab17c49e8057e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 26 Jun 2020 14:46:16 -0300 Subject: Sketch for sword combo skill --- npc/functions/hub.txt | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 85db3ec07..79a4b0990 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -484,10 +484,57 @@ function script HUB_SkillInvoke { // No cast time, but cooldown present // DEF lowers as cast, damage based on combo. case TMW2_HORIZONTALSLASH: + .@PW=100; + .@PW+=(5*@skillLv); + harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); + break; case TMW2_DIAGONALSLASH: + .@PW=100; + if (LAST_SKILL[0] == TMW2_HORIZONTALSLASH) + .@PW+=20; + if (.@PW >= 120) + .@PW+=30; + .@PW+=(5*@skillLv); + harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); + break; case TMW2_VERTICALSLASH: + .@PW=100; + if (LAST_SKILL[0] == TMW2_DIAGONALSLASH) + .@PW+=30; + if (LAST_SKILL[1] == TMW2_HORIZONTALSLASH) + .@PW+=20; + if (.@PW >= 150) + .@PW+=100; + .@PW+=(5*@skillLv); + harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); + break; case TMW2_STAB: + .@PW=100; + if (LAST_SKILL[0] == TMW2_VERTICALSLASH) + .@PW+=40; + if (LAST_SKILL[1] == TMW2_DIAGONALSLASH) + .@PW+=30; + if (LAST_SKILL[2] == TMW2_HORIZONTALSLASH) + .@PW+=20; + if (.@PW >= 190) + .@PW+=200; + .@PW+=(5*@skillLv); + harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Neutral); + break; case TMW2_GRANDBLAST: + .@PW=100; + if (LAST_SKILL[0] == TMW2_STAB) + .@PW+=50; + if (LAST_SKILL[1] == TMW2_VERTICALSLASH) + .@PW+=40; + if (LAST_SKILL[2] == TMW2_DIAGONALSLASH) + .@PW+=30; + if (LAST_SKILL[3] == TMW2_HORIZONTALSLASH) + .@PW+=20; + if (.@PW >= 200) + .@PW+=300; + .@PW+=(5*@skillLv); + harm(@skillTarget, AdjustAttackpower(.@PW), HARM_PHYS, Ele_Holy); break; // Brawling Class -- cgit v1.2.3-60-g2f50