I want NPCs who have the staff in their inventory to equip the torch version of the staff regardless of what time it is, as long as they are awake. The reason is because
the torch animation animates beautifully for staves (making them look like true walking staves). However, if the staff version of the item is in the NPC's inventory, it wont equip.
However, once battle starts, if there is a magical staff in the NPC's inventory they will equip it. Once battle is over, they will reequip the torch version of the staff and the "magical staff"
version will be unequipped.
Last aspect of the script should be...if there's no magical staff in the inventory they will just fight without it going to their normal battle packages.
I know a bit of coding from my old programming days but I know little to nothing about programming code in the CS/OBSE...
I know the pseudocode would be something like...
Placing the script on the staff IF the Container holding this item = An Npc ANDIF the (time >= 0:00) OR (time <= 24:00) AND (Npc.Holding This Item Is Sleeping = False) AND (Npc.Holding this item is not in battle = True)ANDItem is UnequippedThenEquip the item
Can anyone help me make this pseudocode into real code? xD