Danny159 Posted April 19, 2014 Share Posted April 19, 2014 I'm trying to get an effect on a piece of armour that gives some extra crit chance and damage resistance for 30 seconds when ever I kill an NPC.But I can't seem to be able to do it.... :( Any advice? Link to comment Share on other sites More sharing options...
Danny159 Posted April 22, 2014 Author Share Posted April 22, 2014 No one? Link to comment Share on other sites More sharing options...
Jojash Posted April 22, 2014 Share Posted April 22, 2014 (edited) You'll need a script that will trigger the effect if you kill something and then attach it to your piece of armour. Something like: Scn Your Script Name Here short iKillCount short bSwitch begin GameMode if bSwitch == 0 set iKillCount to GetPCMiscStat "Total Things Killed" set bSwitch to 1 elseif iKillCount < GetPCMiscStat "Total Things Killed" Player.AddSpell ;Your Actor Effect Here set bSwitch to 1 endif endGood luck! :smile: Edited April 22, 2014 by Jojash Link to comment Share on other sites More sharing options...
Danny159 Posted April 22, 2014 Author Share Posted April 22, 2014 (edited) Damn, I'm a noob with this... :( I can't get it... Edited April 23, 2014 by Danny159 Link to comment Share on other sites More sharing options...
Jojash Posted April 23, 2014 Share Posted April 23, 2014 (edited) What's going wrong? Did you attach that script to your armour? If you did, did you change the necessary parts of the script? (The name, I've left for you to change to something relevant so that you can find it more easily and the actor effect I've not included, since that will be something you've made (to add the effect) that you need to provide the ID for.) Edited April 23, 2014 by Jojash Link to comment Share on other sites More sharing options...
Danny159 Posted April 23, 2014 Author Share Posted April 23, 2014 (edited) It doesn't want to save the script... Scn Killscript short iKillCount short bSwitch begin GameMode if bSwitch == 0 set iKillCount to GetPCMiscStat "Total Things Killed" set bSwitch to 1 elseif iKillCount < GetPCMiscStat "Total Things Killed" Player.AddSpell IncreaseDamageResistance set bSwitch to 1 endif end Edited April 23, 2014 by Danny159 Link to comment Share on other sites More sharing options...
Jojash Posted April 23, 2014 Share Posted April 23, 2014 (edited) That script saves for me, and the only differing factor would be the actor effects used. Are you trying to use a Base Effect? If you are, you'll need to incorporate it into an actor effect, and then use the name of that. Making an actor effect is pretty simple, just go to Game Effects → Actor Effects, and make a new entry (right-click under Editor ID and select "new"). From there, you need to add a base effect. I notice that you're trying to add "IncreaseDamageResistance", New Vegas works differently from Fallout 3 in that, DR, is essentially no longer in use. Instead of adding "IncreaseDamageResistance", add ""IncreaseDamageThreshold" instead. After you've added your effect you can set how long the effect lasts before disappearing, which will allow you to set it for thirty seconds. After you're done, go back to your script and change "IncreaseDamageResistance" to the name of the actor effect and you should be good to go. :smile: Edited April 23, 2014 by Jojash Link to comment Share on other sites More sharing options...
Recommended Posts