Jump to content

[Script] Open Container


Recommended Posts

I'm struggling with a simple script I wrote. I want to open a remote but persistent container.

The script runs via a scroll.

 

begin ScriptEffectStart
USUniversalStashChest.activate
player.addItem USUniversalStashScroll 1
End

 

What am I doing wrong?

Link to comment
Share on other sites

For spells use GetSelf, as Activate command doesn't take caster by itself:

ref me

begin ScriptEffectStart
set me to GetSelf
if me != 0
	USUniversalStashChest.Activate me
	me.AddItem USUniversalStashScroll 1
endif
End

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

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