#[ER] Detecting when something is in the offhand? (UNRESOLVED)

7 messages · Page 1 of 1 (latest)

granite star
#

Does anyone know if there's a way to detect when you're holding a weapon in the left hand.
I want to make a conditional category for it in smithbox but can't figure out how to target it on specific weapons.
Any help is appreciated!

night radish
#

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

granite star
#

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

worn vapor
#

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