The Elder Scrolls V: Skyrim

The Elder Scrolls V: Skyrim

Auto Unequip Helmet
Berq 18 Apr, 2013 @ 4:24am
Auto Swap Script?
First, thanks SO MUCH for AUH (& AUA!). You solved one of my biggest annoyances with Skyrim.

I've tried going through the source code you posted on Skyrim Nexus to figure out how to write a script to perform a similar function. Basically, I want a clothing item to auto equip when I remove my armor, and then unequip when I put my armor back on. I have some limited experience with scripting languages, but not Papyrus, I can't find some key info in the creationkit.com reference, and the learning curve is working me over. If you could explain a few lines of your code it'd be a huge help! (line numbers in curly braces):

{8}
armor Helmet
What does this do? Is "armor" a reserved word?

{34,35}
Event OnObjectUnequipped(Form akBaseObject, ObjectReference akReference) EndEvent
What does this accomplish?

Lines 15 - 39 (Auto State Idle) and lines 41 - 120 (State Run) are the two main divisions of the script. What does each section accomplish in general?

Thanks for your time!
< >
Showing 1-1 of 1 comments
Alex Rox  [developer] 2 Jul, 2013 @ 1:58am 
http://www.creationkit.com/ is a good place to start. First one is a variable that can hold formID of type armor. Events are well, events, when related thing happens event code is run. States are different versions of events and functions, you can define and switch manually between states to have same events/functions do different things.
< >
Showing 1-1 of 1 comments
Per page: 1530 50