Jump to content

heschlim

Members
  • Posts

    1
  • Joined

  • Last visited

Nexus Mods Profile

About heschlim

heschlim's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This is my first script so bare with me. The goal is to have it automatically disable/delete the weapons and armor if they are dropped from the inventory into the game world or moved into a different container. So far, I've managed to get it to work when dropped into the world, but it will not delete the item once it has moved into a container. Can anyone tell me what I'm doing wrong? Scriptname __fade extends ActiveMagicEffect {My first script!} Event OnItemRemoved(Form akForm, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) debug.messagebox("item removed: form=" + akForm.GetName() + ", item=" + akform) if akForm == my_armor || akForm == my_armor2 || akForm == weapon1 || akForm == weapon2 || akForm == weapon3 || akForm == weapon4 if akDestContainer debug.messagebox("put in container") akItemReference.Disable() Debug.Trace("The item dissipates as I let go of it.") else debug.messagebox("dropped on ground") akItemReference.Disable() Debug.Trace("The item dissipates as I let go of it.") endIf endIf endEvent Armor Property my_armor Auto WEAPON Property weapon1 Auto WEAPON Property weapon2 Auto Armor Property my_armor2 Auto WEAPON Property weapon3 Auto WEAPON Property weapon4 Auto Armor Property armor_light Auto
×
×
  • Create New...