Jump to content

Scripting Issue: script that will unequip and then reequip the same armor on the player


ZeroCore

Recommended Posts

Here's what I'm trying to do:

 

I'm trying to make a sort of enchanted armor. This armor automatically equips itself at night, and then unequips itself when the sun rises (it's supposed to be a sort of vampire-enhancing armor that only works at night).

 

The problem is this; I can't figure out how to properly set this script up.

 

The issue is this; I know I can use the "EquipItem" and "UnequipItem" functions in conjunction with the global variable "GameHour" and the "GetValue" function but I don't know how to get the identification values of the armor itself.

 

On top of that, I want the armor, when unequipped by the script, to reequip the last set of clothing or armor that the character was wearing. In short, the effect of the script would be something like this: night falls, vampire armor gets equipped, night ends, vampire armor unequips itself, previous day's clothing/armor is re-equipped on the player.

 

If anyone could tell me how to do this, or at least give me some information on this, I'd appreciate it. I had a thought that maybe I should use a formlist to store the information about the player's previously equipped clothing or armor, but again I don't know how to get the information about the player's previous clothing/armor and without that I have nothing to pass to the formlist.

 

PS: I am using SKSE so that's an option, but unfortunately I'm not up-to-date with SKSE's functions (I'm rather new to using SKSE).

Link to comment
Share on other sites

  • Recently Browsing   0 members

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