Jump to content

Scripting: Remote Container


KainReaver83

Recommended Posts

Hello,

 

I'm not too familiar with scripting, but I'm learning rather quickly so I need some help.

 

I've downloaded and read the Morrowind Scripting for Dummies v9 and although it is extremely helpful, I'm still not able to script this idea correctly. I've tried this over and over and despite the logic in the script, its just not working.

 

In the Morrowind Scripting for Dummies v9, there is a script for making a remote container. It works kinda like this:

 

Equip a ring with the script attached to it.

When equipped, it opens a container for you to store items in.

When done, close the container and continue the game.

 

I don't have any of the expansion packs, just the regular Morrowind game.

 

The script I have for this is the following:

 

begin RemoteContainer

 

If ( OnPCEquip == 1 )

set OnPCEquip to 0

"remote_chest_01"->Activate,player

Endif

 

End RemoteContainer

 

I'm not sure about the ["remote_chest_01"->Activate, player] line as it might be a function that was added by Tribunal or BloodMoon.

 

The logic in the script seems sound, but nothing happens in the game except for the Equip and Unequip of the ring. The ring does have this script attached to it, and I have even placed the chest in the game and checked on "References Persist" on the chest. I'm at a dead end and need some help. I'm even at the point of figuring that what I want is impossible unless I install all the expansion packs. But until that happens, I would appreciate it if anyone could see if there's some work-around for what I want or if I've made a beginner's mistake.

 

Thanks for the help.

Link to comment
Share on other sites

If I remember correctly, the container (in your case it's remote_chest_01) needs to be activated manually during current game session before it can be activated with console command. Therefore, every mod that provides portable containers uses system of either teleporting player to container and then back after it is activated (like storage sack in Uvirith's Legacy), or teleporting container to player and then back (Better Portable Containers), however, there you'll still need to load the cell with a container before you can teleport it.
Link to comment
Share on other sites

VeriTi,

 

Thanks for the response. I just tried activating the chest before equipping the ring as you mentioned, but I didn't get the result I was looking for. Actually, I didn't get any result. Just an equipped ring. I would try to download the mods you mentioned but currently, my PC doesn't have internet, but I am on an Android phone so I'll see if I can find a mod that I can download (provided my phone allows me to). If in the event that I cannot, would you happen to know the script for bringing the container to the PC location?

 

Thanks for all your help.

Edited by KainReaver83
Link to comment
Share on other sites

  • Recently Browsing   0 members

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