Kualan Posted November 17, 2016 Share Posted November 17, 2016 Hi there, hope the CK wizards here can help me puzzle this one out. I'm working on a mod and part of it involves creating some new enemies for the player to fight. The trouble is, I want these enemies to be practically invincible unless the player is using a certain type of weapon. So if I want Ice Zombie to only be killable with, say, ebony weapons - how would I go about doing that in the CK? I've been playing around with weapon stats and item keywords, but I can't figure it out. I feel like all the "ingredients" to the solution are there, I just need help with the method. Any assistance would greatly appreciated! Kualan Link to comment Share on other sites More sharing options...
NexusComa Posted November 17, 2016 Share Posted November 17, 2016 (edited) Event OnHit(ObjectReference Attacker, Form akSource, Projectile abProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked) If((Attacker as Actor).GetEquippedItemType(0)==(7)) ; <- bow If((Attacker as Actor).IsEquipped(ForswornArrow)) this may help get you started ... script goes on the enemy testing for when hit Edited November 17, 2016 by NexusComa Link to comment Share on other sites More sharing options...
lofgren Posted November 17, 2016 Share Posted November 17, 2016 The problem with using any script-based approach is that the script inevitably fires only after the target has already been hit. I would advise using a perk instead. You can use the Mod Incoming Damage entry point with a keyword condition on the Weapon tab to reduce all damage that doesn't have the WeapMaterialEbony keyword to 0. http://www.creationkit.com/index.php?title=Perk_Entry_Point http://www.creationkit.com/index.php?title=HasKeyword Link to comment Share on other sites More sharing options...
Kualan Posted November 18, 2016 Author Share Posted November 18, 2016 Thank you both! I think a perk may be the way to go, seems like a solid method. Link to comment Share on other sites More sharing options...
NexusComa Posted November 18, 2016 Share Posted November 18, 2016 yep Link to comment Share on other sites More sharing options...
Recommended Posts