#HKS function only working for when the weapon is 1h?

13 messages · Page 1 of 1 (latest)

pearl radish
#

Neep help understanding why this function does not work. Note that this same function will work if i replace "W_AttackBothLight" with "W_AttackRightLight".

#

Worth mentioning i am pretty new to HKS modding, so i apologize if it's a stupid question 😅

pearl linden
#

presumably this new variable r1 is never used (not to mention never declared but lua will play along like that), and the default value passed into the attackcommonfunction is just W_AttackRightLight anyway, so your line accomplishes exactly nothing

#

basically, your code there says "from now on, "r1" means W_AttackBothLight3
but if nothing is using r1 to find out what it is, then nothing at all changes

#

So you'll find a function later where b2 is used (ie, not assigned to using = ... ) and you'll want to modify that to include a usage of r1

#

(also for sanity's sake declare r1 wherever b2 is declared as well, probably as local b2)

pearl radish
#

Thanks for the help! So i got it to work with the 2H R1 chain, but the original goal was to make just the dodge attack chain to the 3rd R1 instead of the 2nd, but when i add the speffect to the dodge attack it doesn't do anything

#

Is there any special line i have to add for it to include the dodge attack?

pearl linden
#

you're probably thinking about the problem wrong if you're thinking about it as adding lines

#

and the entire function you're in applies for regular attack updates, you'd want to be modifying the function for evasion updates

pearl radish
#

Got it to work! Thank you!

sand obsidian
sand obsidian
#

got it