Capturing a "bash" event from player?

Post » Sun Mar 24, 2013 7:38 pm

I've tried doing a search but go figure searching "bash" just yields a tonne of threads about Wrye Bash.

I want to capture a bash event in a spell script - ideally using RegisterForAnimationEvent(); I've tried testing the usual suspects (The bash-related animation names from the master list), but none of them seem to be firing off (And yes the script is working, I can capture some non bash related events just fine)

Does anyone have any further insights to how I might capture whenever a player bashes or have any working event names related to bashes?; ideally the script needs to work with any combination of shield, bow or weapon
User avatar
Louise Andrew
 
Posts: 3333
Joined: Mon Nov 27, 2006 8:01 am

Post » Mon Mar 25, 2013 7:19 am

Could the OnHit event work? Maybe attach a short range cloak to the player and see if abBashAttack from OnHit is true on nearby NPCs.
User avatar
JAY
 
Posts: 3433
Joined: Fri Sep 14, 2007 6:17 am

Post » Mon Mar 25, 2013 4:21 am

I would try "bashStart", "bashRelease" or "bashStop". I guess they all work but "bashStart" should fire first. Just search in Gameplay -> Animations -> Actors\Character\Behaviors\0_Master.hkx for other events although not all of them do something.
User avatar
Laura Tempel
 
Posts: 3484
Joined: Wed Oct 04, 2006 4:53 pm

Post » Sun Mar 24, 2013 7:04 pm

The only "universal" way to catch a bash event is with the On hit event. You could use a PERK, as there are perks for bashing, they detect the bash and apply a spell to the one getting hit.

However this would only work for the player or for select actors as you cannot give perks to actors dynamically.

PERKS would be the answer to MANY issues with Skyrim combat IF Bethesda would fix the ADD PERK function.
User avatar
Matt Bee
 
Posts: 3441
Joined: Tue Jul 10, 2007 5:32 am

Post » Sun Mar 24, 2013 11:47 pm

PERKS would be the answer to MANY issues with Skyrim combat IF Bethesda would fix the ADD PERK function.

This x100. Please :(
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am

Post » Sun Mar 24, 2013 9:16 pm

Thanks for the suggestions - "bashStop" seems to work reliably for all forms of bash, "bashRelease" only triggers on power bashes. bashStop is adequate for what I was trying to achieve though so, awesome :3

But yeah, the scripting language has a lot of inadequacies
User avatar
Beat freak
 
Posts: 3403
Joined: Thu Dec 14, 2006 6:04 am


Return to V - Skyrim