Jump to content

A supposedly simple (only a few lines) script isn't working.


Prismuth

Recommended Posts

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 by Prismuth
Link to comment
Share on other sites

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 by Prismuth
Link to comment
Share on other sites

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 by Prismuth
Link to comment
Share on other sites

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 by Prismuth
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...