Jump to content

Some scripting questions


elezraita

Recommended Posts

The reason I set up the script the way I did was that I wanted it to apply to every actor (well, followers) as well as the player. That way, I can give the armor the PC is using to a follower, and they will not equip it. Better would be that they don't equip armor that is too small and they get debuffs if they equip armor that is too big. But, one step at a time.

So long as the armor is unique armor that will be removed with the script when the mod is uninstalled, you can apply it directly to the armor. If the armor will not be removed with the script, then create a quest with aliases for each armor you want to apply the script to. You'd then modify the script to extend ReferenceAlias instead of ObjectReference. There may need to be other tweaks (usually are) but I wouldn't know at this point until it was tested to see what actually happened.

Link to comment
Share on other sites

I got it working by doing exactly what you said, so thanks. If I want to make the script work for followers, I guess I can add a quest that initializes every time I take a follower, and ends when I dismiss the follower. That way, I can use an alias from that quest for the follower and attach the script to that alias. I think that will work; I'll have to give it a shot.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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