Jump to content

Script Trouble - Mammoth Inventory


CountEyokir

Recommended Posts

Hi there. I borrowed a segment of a script from The Horse Inventory mod to try and give a mammoth mount an inventory. https://www.nexusmods.com/skyrim/mods/15842/

 

The script looks currently like this

Scriptname Mammothinventory extends activeMagicEffect
Actor ThisMammoth
Event OnActivate(ObjectReference akActionRef)
if (akActionRef as Actor)
if ((akActionRef as Actor).IsSneaking())
ThisMammoth.OpenInventory(True)
Return
endif
endif
ThisMammoth.Activate(akActionRef, True)
EndEvent


However all I can do is ride the mammoth, no inventory opens. As far as I understand the script there ought not be a problem. What am I doing wrong?
Edited by Koji Okida
Link to comment
Share on other sites

I don't know a lot about scripting but it seems like you have to be sneaking to access the inventory. Are you in sneak mode when activating the mammothian?

Yes I am. I made sure of it. And its absolutely infuriating that I just keep vaulting onto its back

Link to comment
Share on other sites

That script will not work as is because the variable ThisMammoth is empty of data.

 

Looking at the script from the Horse Inventory mod, you also need the following:

Event OnEffectStart(Actor target, Actor Caster)
		ThisMammoth = Caster
		ThisMammoth.BlockActivation()
EndEvent

But I have no idea where you are attaching your script and if you have the same setup for it as the Horse Inventory mod. As a result, I cannot guarantee that that will work...

Link to comment
Share on other sites

That script will not work as is because the variable ThisMammoth is empty of data.

 

Looking at the script from the Horse Inventory mod, you also need the following:

Event OnEffectStart(Actor target, Actor Caster)
		ThisMammoth = Caster
		ThisMammoth.BlockActivation()
EndEvent

But I have no idea where you are attaching your script and if you have the same setup for it as the Horse Inventory mod. As a result, I cannot guarantee that that will work...

Thank you so much, I added that addition to my script and it worked flawlessly. Now I'm one step closer to my merchant pack mammoth mount. Thanks again!

Link to comment
Share on other sites

  • Recently Browsing   0 members

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