GimmeBackMyMoney Posted August 30, 2013 Share Posted August 30, 2013 (edited) For my own mod, I created a "Sniper" perk which works similarly to the perk from the old games. I want to increase the player's base critical chance by five times their luck, but for firearms and launchers only, not grenades or melee weapons (I'll let Slayer handle melee and unarmed). I created a script which will run only once and apply the bonus, created a base effect using the script and finally an actor effect used by the perk. However, the critical bonus is applied universally and I can't change perk conditions of I use an ability so I'll have to edit the script. How can I go abouts this? EDIT: I know the base critical chance is defined by luck but it's also modified by perks. I don't want to multiply the base critical chance, I want to add to it a value which factors luck. Edited August 30, 2013 by GimmeBackMyMoney Link to comment Share on other sites More sharing options...
jazzisparis Posted August 31, 2013 Share Posted August 31, 2013 (edited) You don't have to use a script here. You can create a perk with 10 Entry Points (one for each Luck level): Use the entry point Calculate My Critical Hit Chance, with the function Add Value, and Function Data of 5/10/15/20/etc. For each entry point, add a Perk Owner condition:GetWeaponAnimType > 2ANDGetWeaponAnimType < 10ANDGetActorValue Luck == 1 (/2/3/4/5/6...) Edited August 31, 2013 by jazzisparis Link to comment Share on other sites More sharing options...
GimmeBackMyMoney Posted August 31, 2013 Author Share Posted August 31, 2013 That's awesome! Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts