isAttacking doesn't work for bows?

Post » Mon Nov 19, 2012 7:11 pm

Hi,

I was trying to create a perk that slows down time when the player is blocking and the opponent is firing an arrow towards him.

So I duplicated the quick reflexes perk and I changed/added the following:

In the perk entries region, there is an entry point called 'apply weapon swing spell' The default conditions for the attacker are "is not the player" and "isPowerAttacking". I changed this last one for "isAttacking" and then, in the target weapon tab I added "haskeyword -->weapontypebow".

Well, this didn't work. So I thought let's remove the weapontype restriction and see what happens. It was at that point when I realized that the slow time effect triggered for any melee attacks (because I had the condition "isAttacking") BUT it did nothing when archers were throwing arrows at me.

I know that there is a function specifically design for spellcasters (isCasting). Is there something specific for archers? I couldn't find anything. If there isn't, any suggestions on how to make that perk work? (slow time when archers fire arrows at you)

Thanks!!
User avatar
Catherine N
 
Posts: 3407
Joined: Sat Jan 27, 2007 9:58 pm

Post » Mon Nov 19, 2012 4:53 pm

It is not that the "isattaclking" will not work it is that the detection for the attacking actor will not work on actor that far away from you. Remember this was intended as a melee perk, so the detection is only about 280 units not 1200 or more.
User avatar
Flutterby
 
Posts: 3379
Joined: Mon Sep 25, 2006 11:28 am

Post » Mon Nov 19, 2012 9:20 am

Thanks for the explanation Duke. I didn't know this. So, does this mean that the perk will work if I'm very very close to an archer? (at melee range). I'll try that (although I realize that even if that words, the purpose of the perk is defeated by this limitation).
User avatar
Smokey
 
Posts: 3378
Joined: Mon May 07, 2007 11:35 pm

Post » Mon Nov 19, 2012 7:46 am

I have been working with perks for a few weeks now and I have noticed that some conditions do not work as they do in other parts of the CK. For example I found one perk were I could not detect if the attaker was using a 2h weapon by checking the equipped type left or right hand = 5 or 6. Bethesda did not do it that way either they instead used haskeyword greatsword, battle axe and warhammer in that perk. I wondered why they did it that way until I changed it to get equip type and found it would no longer work.
User avatar
Ashley Campos
 
Posts: 3415
Joined: Fri Sep 22, 2006 9:03 pm

Post » Mon Nov 19, 2012 8:38 am

I think you should make a spell and apply it on the archer. In the script of ME yo should register for appropriate animation event, wheapon swing or something like that. I do this and I am able to detect when the arrow is being fired.
User avatar
Micah Judaeah
 
Posts: 3443
Joined: Tue Oct 24, 2006 6:22 pm

Post » Mon Nov 19, 2012 6:59 pm

I don't understand your explanation completely Gulogulo. Still, I'm trying to do my perks without using scripting so if the only way to do it requires scripts, I'm gonna give up on this idea for now.
User avatar
brenden casey
 
Posts: 3400
Joined: Mon Sep 17, 2007 9:58 pm

Post » Mon Nov 19, 2012 11:52 am

Yes, my approach requires some scripting. If you are interesting I can help you. The most difficult part is not the scripting though but detecting the actor and applying the script on it.
User avatar
Rudy Paint fingers
 
Posts: 3416
Joined: Sun Nov 11, 2007 1:52 am

Post » Mon Nov 19, 2012 6:10 pm

Thanks for the offer gulogulo; I'd certaintly like to learn a bit of scripting. If I'm already amazed by the things you can do with just editing and creating new records, the freedom that scripting allows must be...wow! So, tell me, when do we start? ;)
User avatar
cutiecute
 
Posts: 3432
Joined: Wed Sep 27, 2006 9:51 am


Return to V - Skyrim