#[ER] Detecting when something is in the offhand? (UNRESOLVED)
7 messages · Page 1 of 1 (latest)
Sp Effect ID 100620 = Hks R-Hand (is always enabled)
Sp Effect ID 100621 = Hks L-Hand (activates automatically when you equip a weapon in L-Hand.
From Hks c0000->
function SetStyleSpecialEffect()
-- 100620 "[HKS] Right Hand Style"
-- 100621 "[HKS] Left Hand Style"
if c_Style == HAND_LEFT_BOTH then
if env(GetSpEffectID, 100621) == FALSE then
act(AddSpEffect, 100621)
end
elseif env(GetSpEffectID, 100620) == FALSE then
act(AddSpEffect, 100620)
end
end
function SetStyleSpecialEffect()
-- 100620 "[HKS] Right Hand Style"
-- 100621 "[HKS] Left Hand Style"
if c_Style == HAND_LEFT_BOTH then
if env(GetSpEffectID, 100621) == FALSE then
act(AddSpEffect, 100621)
end
elseif env(GetSpEffectID, 100620) == FALSE then
act(AddSpEffect, 100620)
end
end
I'm having trouble getting it to work
My goal is making a talisman thats only apply its effect while there is something in the left hand
This one will only work if they don't have unarmed or a fist weapon in their left hand
if GetEquipType(HAND_LEFT, WEAPON_CATEGORY_FIST) == FALSE then
act(AddSpEffect, 123456789)
end```
What you can also do is apply a residual spEffect on unarmed in the weapon params, and then the talisman will only work if you do not have that spEffect, but that does mean you need something in both hands
The only other method I can think of would require an additional DLL to unlock more power to HKS