The Elder Scrolls V: Skyrim

The Elder Scrolls V: Skyrim

Auto Unequip Helmet
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!
< >
Zobrazuje se 11 z 1 komentářů
Alex Rox  [vývojář] 2. čvc. 2013 v 1.58 
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.
< >
Zobrazuje se 11 z 1 komentářů
Na stránku: 1530 50