erratichippo Posted March 16, 2017 Share Posted March 16, 2017 Trying to make a mod that reduces the damage of certain types of ammo to certain types of NPC's. For example I want to make death claws take 0 damage from .38 rounds. This should work very similar to the Codsworth perk found in vanilla. None of the vanilla conditional statements seem to work for what I want. Does anyone know of a good way to get the type of ammo that the owner of the perk was hit by? Or the type of ammo that the attacker was firing? Is there a way to make a papyrus script that will function as a conditional statement to fire the perk? Link to comment Share on other sites More sharing options...
Zzyxzz Posted March 16, 2017 Share Posted March 16, 2017 It could be possible with a script. Its not possible to prevent damage before it. But with a script you could check what hit the target and let it regen that amount of damage.When the script gets applied to an enemy check how much health he has and save that value.Subscribe to the onHit event and check the projectile. If its .38 compare saved health and current health and add the missing amount to current health. This is the only way i can think of Link to comment Share on other sites More sharing options...
erratichippo Posted March 19, 2017 Author Share Posted March 19, 2017 I think I will try a dynamically applied magical effect done through a cloak spell on the player. This magical effect will check the ammo type of the weapon used on the actor. It will then apply another magical effect based on the ammo it found. I will then use this magic effect to trigger the entry point mod incoming damage perk to set the type of damage I want on the ammo. I will post my scripts and results if it works. Though if anyone has a more straight forward way of doing this I would like to hear it. Link to comment Share on other sites More sharing options...
Recommended Posts