#Speffect that unequips current held weapon

139 messages · Page 1 of 1 (latest)

flat juniper
#

I want to create an speffect, that will force the player to unequip the current help weapon... help!

charred wagon
#

remind me and I'll look into it tomorrow

sonic shuttle
#

I see no possibility since emevd (triggered through spEffect) has no function to get the current held weapon

willow magnet
#

DS2 had that effect no?

#

With that one sluggy boss

#

Covetous demon or whatever

primal elk
#

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

willow magnet
#

Yeah just saying maybe it’s still there somehow someway

sonic shuttle
#

maybe a special state from an spEffect?

flat juniper
#

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

flat juniper
charred wagon
#

oh

#

uhhh

#

i know of a way to force peacefulness

flat juniper
#

wot

#

aah

#

please no emevd

#

spare me

#

but, go on

flat juniper
#

what is hks

tawdry orbit
#

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

flat juniper
#

a

#

that

#

TAE

tawdry orbit
#

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

flat juniper
#

isn't it more simple, force peacefulness, and hide the weapon with 184?

charred wagon
#

up to you

flat juniper
#

what you're offering requires adding a line on every single weapon TAE

charred wagon
#

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

tawdry orbit
#

well you said "unequips the current weapon"

flat juniper
#

yes

tawdry orbit
#

which implies other weapons should maybe be usable

flat juniper
#

that's the intended one

tawdry orbit
#

if you dont want other weapons to be usable sure just activate that peaceful thing

flat juniper
#

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

tawdry orbit
#

well I was thinking they couldnt attack

#

but only with the weapon they had

#

other weapons would work

#

that sounded like what you wanted

flat juniper
#

that's what the speffect does? 9420 or 9620 or 9621?

#

what happens if an enemy procs it on the player through an attack?

tawdry orbit
#

rainer is talking about the roundtable hold effect

#

where you just cant attack

flat juniper
#

ooh

tawdry orbit
#

with the gold circle

#

near your items

flat juniper
#

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

tawdry orbit
#

its not animations

#

but it is a lot of work yes

#

its hks which is a script

flat juniper
#

you mean this:

#

?

charred wagon
#

hks

#

it's a script. like code.

#

nothing in dsas.

flat juniper
#

oh, i see

#

so, nothing i know of

charred wagon
#

possibly

#

it is a bit advanced

#

do you know any event scripting

flat juniper
#

so, emevd?

charred wagon
#

ye

flat juniper
#

nope, not at all

charred wagon
#

okay

#

uhhh

#

is this just for a certain area

flat juniper
#

i infact want to make a different mod, which requires emevd, and i haven't done it because i know nothing of emevd

charred wagon
#

fortunately emevd is a lot more plain english than hks scripting

flat juniper
#

so, the idea, is an specific boss, through an attack, will unequip the player's current held weapon

#

that's the original intent

charred wagon
#

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

flat juniper
#

but, the peacefulness would affect only player 1, or all players in the area, like "trigger on presence of blood" does

charred wagon
#

who do you want it to affect?

flat juniper
#

the player that got hit

charred wagon
#

it should only affect him

#

i think

flat juniper
#

alright, let's go for that

#

i'll mix hide weapon with peaceful

#

what's the peaceful speffect

#

you named 3

charred wagon
#

should be 9620

flat juniper
#

"should"

charred wagon
#

yes

#

emevd seems to alternate between 9621 and 9620

#

i think they practically do the same thing

flat juniper
#

eh, why would there be 2

#

one cycles it?

charred wagon
#

i havent tested it tbh.

flat juniper
#

i will check

charred wagon
#

i have tested 9620

#

deleting it removes the forced peacefulness

flat juniper
#

i checked the speffect 9620, and it does nothing

#

it has no state info

charred wagon
#

maybe not but it still works

#

what about 9621

flat juniper
#

state info 457 "unknown"

#

perhaps

#

it's that one

charred wagon
#

that one is probably more reliable then

flat juniper
#

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

charred wagon
#

nae nae

#

im right for once

flat juniper
#

now i need to cycle state 184

#

let me see what i can do

#

thx for the help!

pallid elbow