#Speffect that unequips current held weapon
139 messages · Page 1 of 1 (latest)
remind me and I'll look into it tomorrow
I see no possibility since emevd (triggered through spEffect) has no function to get the current held weapon
Yea but that would be DS2, doubt anything similar is in ER
But it might be worth looking at it, maybe you can do something with that, the grab attack removes all your gear completely
Yeah just saying maybe it’s still there somehow someway
maybe a special state from an spEffect?
ugh
184 (state info), hide's the weapon, but this is not what i want
maybe, it could be mixed with something that prevents weapon-usage
that's an idea
@charred wagon
it's been aday
use hks
what is hks
detect the current weapon, apply an effect based on that weapon, disable the weapon if its detected
many ways to do it
c0000.hks is a player script that controls many things about the players actions
the best thing I could think of is making the player not able to attack with the weapon
so youd have to swap
you would need an identifier for every possible weapon but thats not impossible
isn't it more simple, force peacefulness, and hide the weapon with 184?
what you're offering requires adding a line on every single weapon TAE
i keep forgetting but i think it's speffect 9420 but lemme check
9620 or 9621
i think either works
then you do set speffect blah blah
if you need me to write it out completely i can
well you said "unequips the current weapon"
yes
which implies other weapons should maybe be usable
that's the intended one
if you dont want other weapons to be usable sure just activate that peaceful thing
wait, so what if an npc forces this speffect you're talking about through an attack to the player, what would happen to the player
well I was thinking they couldnt attack
but only with the weapon they had
other weapons would work
that sounded like what you wanted
that's what the speffect does? 9420 or 9620 or 9621?
what happens if an enemy procs it on the player through an attack?
ooh
maybe, i could create a bullet to remove the effect
as in "it dropped your weapon"
and you recover it
the modifying every single weapon animation sounds ideal, but it's too many weapons
so, emevd?
ye
nope, not at all
i infact want to make a different mod, which requires emevd, and i haven't done it because i know nothing of emevd
fortunately emevd is a lot more plain english than hks scripting
so, the idea, is an specific boss, through an attack, will unequip the player's current held weapon
that's the original intent
hmmm
i dont know anything about unequipping itself but you can force peacefulness through that speffect, and that speffect can be implemented in many different ways
in vanilla it's only done in emevd but you could, for example, make a bullet cast the speffect onto the player
hopefully that helps a little
im sorry
but, the peacefulness would affect only player 1, or all players in the area, like "trigger on presence of blood" does
who do you want it to affect?
the player that got hit
alright, let's go for that
i'll mix hide weapon with peaceful
what's the peaceful speffect
you named 3
should be 9620
"should"
yes
emevd seems to alternate between 9621 and 9620
i think they practically do the same thing
i havent tested it tbh.
i will check
let me test in-game
well, it seems 9621 does nothing
i gave it to an armor
oh wait,
i gave it to the wrong armor
hold on
yes
the speffect 9621 works
triggers peacefulness
Yes it does

