Prismuth Posted January 25, 2016 Share Posted January 25, 2016 (edited) So, I wanted my armor to have bonus effects via scripts and perks like the silver sword and dawnguard armor do. So I made a hidden perk, and when I activated it by console, it works fine. I tried copying the details of both the silver sword and dawnguard scripts on different occasions, but neither worked. Also made sure it was in the armor's script list same as my examples. And it had taken some troubleshooting, but they were compiled successfully too. Edited January 25, 2016 by Prismuth Link to comment Share on other sites More sharing options...
StupidAnswer Posted January 25, 2016 Share Posted January 25, 2016 You should be using magic effects to apply effects to weapons and armor, then just add a target condition for any vampire race and select the effect you would like to have. Link to comment Share on other sites More sharing options...
Prismuth Posted January 25, 2016 Author Share Posted January 25, 2016 (edited) If those are the same as enchantments, I do not wish to use those, as I want the armor to remain enchantable, as the silver sword is.Thanks for trying though. Edited January 25, 2016 by Prismuth Link to comment Share on other sites More sharing options...
lofgren Posted January 25, 2016 Share Posted January 25, 2016 Always include your script. Otherwise nobody can help you. Link to comment Share on other sites More sharing options...
Prismuth Posted January 25, 2016 Author Share Posted January 25, 2016 (edited) Alrighty, I'd hoped saying what they were would be enough, but here you goooo~ Scriptname MyScriptName extends ObjectReference Perk Property MyPerkName auto Event OnEquipped(Actor akActor)akActor.AddPerk(MyPerkName)EndEvent Event OnUnEquipped(Actor akActor)akActor.RemovePerk(MyPerkNane)EndEvent That was the first one I tried. Just like the silver sword script. Next, I tried the dawnguard armor's script. Scriptname MyScriptName extends ObjectReference Perk Property MyPerkName auto Event OnEquipped(Actor akActor)debug.trace(self + "OnEquipped() akActor:" + akActor)akActor.AddPerk(MyPerkName)EndEvent Neither worked. :/ Edited January 25, 2016 by Prismuth Link to comment Share on other sites More sharing options...
lofgren Posted January 25, 2016 Share Posted January 25, 2016 The silver sword script is definitely wrong, although I think it is edited by the USKP to fix its bugs. I don't see why the dawnguard script wouldn't work. First question: you are filling the properties in the CK, right? Link to comment Share on other sites More sharing options...
Prismuth Posted January 25, 2016 Author Share Posted January 25, 2016 (edited) Yeah, I am. I've done it both manually and with autofill. :/ Any chance I'd need dawnguard connected to my esp? In case it has some sort of script thing going on? I'm also using Mod Organizer, if that changes anything, and have made sure to place the script (both parts) both there, and the default location, since I didn't know which it'd be using. Edited January 25, 2016 by Prismuth Link to comment Share on other sites More sharing options...
lofgren Posted January 26, 2016 Share Posted January 26, 2016 You need Dawnguard activated but you shouldn't need it as a master on your mod. How are you testing to see if the perk is added? Link to comment Share on other sites More sharing options...
Prismuth Posted January 26, 2016 Author Share Posted January 26, 2016 (edited) I own dawnguard, is that not enough? I mean, my script isn't connected to the dawnguard perk, or contain anything involving vampires or werewolves. I set one of it's things to nullify all damage for testing purposes, since that is super easy to see if it is working. If I activate it by console, I take no damage. Otherwise, I take normal damage. Edited January 26, 2016 by Prismuth Link to comment Share on other sites More sharing options...
lofgren Posted January 26, 2016 Share Posted January 26, 2016 You need to have Dawnguard activated as well, since the script is stored in the Dawnguard bsa. Link to comment Share on other sites More sharing options...
Recommended Posts