Stun affect?

Posted by Camulos on Fri 09 Dec 2005 05:06 AM — 8 posts, 25,574 views.

Canada #0
I've recently created a 'blindside' skill which works like backstab but stuns instead of deals damage.

I've run into one small snag though, and upon further testing I've found that the actual stun skill has the same issue.

When you stun someone, if you leave combat, even after stun wears off they can't move/interact for some time - they're given the 'You're too stunned to do that.' message.

It's not a -big- deal, but if it's fixable I'd appreciate some help in doing so.

I should note we're using SmaugFUSS 1.6, with some modifications - though none of those should affect this skill and I found the same issue with stun on stock Smaug.
USA #1
Even after the affect wears off? I'm pretty sure that doesn't happen to me. I'm also using FUSS. When the affect wears off, it's fine. I'll check into it when I get home.

[EDIT] It's fine for me on stock FUSS.

<31711hp 210m 367mv> 
Zeno smashes into you, leaving you stunned!

<31711hp 210m 367mv> 
l
You are too stunned to do that.

<31674hp 210m 367mv> 
l
You are too stunned to do that.

<31674hp 210m 367mv> 
l
You are too stunned to do that.

<31674hp 210m 367mv> 
l
You are too stunned to do that.

<31674hp 210m 367mv> 
l
You are too stunned to do that.

<31649hp 210m 367mv> 
l
You are too stunned to do that.

<31649hp 210m 367mv> 
l
You are too stunned to do that.

<31649hp 210m 367mv> 
l
You are too stunned to do that.

<31621hp 210m 368mv> 
aff
You are too stunned to do that.

<31621hp 210m 368mv> 
l
You are too stunned to do that.

<31621hp 210m 368mv> 
You regain consciousness.
Zeno brushes you.

<31620hp 210m 368mv> 
l
Zeno's Office
Amended on Fri 09 Dec 2005 04:46 PM by Zeno
Canada #2
Yeah, it works fine IN combat... It's when combat ends during the stun affect that it messes up.
USA #3
After the fight:
Testing the Overlord is lying here stunned.


Like you said, it's still stunned after the affect wears off. But the affect is not the only thing that stun adds. It also changes the players position. And the players position doesn't update until a tick outside of battle, where in combat it instantly sets the position to fighting.
Canada #4
Hmm, so it should be easy enough to add a line that changes the player's position back when the effect wears off, right?
USA #5
I'm not sure that could cause problems, but yes. There should be a function that stops fights, you could add it in there.

[EDIT] I have a feeling it will cause big problems. The stun position is also used when a person gets below 1 health.
Amended on Mon 12 Dec 2005 01:45 PM by Zeno
Canada #6
Could add a new effect with the same results maybe, call it 'paralyzed' or something? That way there'd be no conflict. I just have absolutely no clue how to go about this.
USA #7
Yes, that'll work. I've never added a new position before though. You'd start with adding it to mud.h first.