I half suceeded to implement the following perk:
If you block an incoming power attack, your weapon speed increases by x% during y seconds.
The perk works well, my problem is that the modified weapon speed does not reset to its original value after y seconds have passed.
Let me now describe what I did in case somebody can help:
1. I created a new magic effect; archetype is "value modifier" castingType is "fire and forget", delivery is "self" associated item 1 is "weapon speed mult" Checked flags are "recover" "no hit effect" and "hide in UI". Everything else is left as it was. There are no conditions.
Question: I'm not sure about the field "perk to apply"; leaving it at "none" or putting the name of my perk there seems to make no difference. What should I do?
2. I created a new spell; type is abiity*. In the effects window I placed my newly created magic effect, picked up a magnitude of 1.5 and a duration of 2 seconds, and I then set up some conditions (so that the spell is only applied if I'm carrying a 2handed weapon)
3. I created the perk. In the perk entries window I selected an 'entry point' and then "apply weapon swing spell" (since the spell must be applied to me when an opponent power attacks me). Then I chose my newly created spell.
Weird issue 1: originally I wanted the type of my spell to be "spell" (as opposed to "ability"). However, if I do that the spell does not appear at all in the "entry point" selection spell window. I can only select it when the spell is of subtype "ability". I don't know if this matters in anyway.
After that I set up some conditions in the conditions window (isblocking and GetIsID=player for the owner of the perk, isPowerAttacking and GetIsID!=player for the attacker).
4. Finally I placed the perk in the relevant perk tree.
After doing all that, the resut was as I explained: the perk works but the weapon speed remains at 1.5 after the 2 seconds have passed.
Any ideas about what I did wrong?
Thank you!