I started a topic on the Mods forum as I was looking for a mod a the time, and instead, started down the line of scripting the effect myself.
Here is the link: http://www.gamesas.com/topic/1399485-empty-inventory-on-beast-transformation/
The short version is that I am trying to build a script that will force the player to leave all inventory behind when transforming into a werewolf.
In other words:
- detect a Beast transformation has happened
- move a unique container at the player's location
- transfer inventory items to that container.
Here is the script so far:
Scriptname LycanInventory extends ActiveMagicEffect Race Property WerewolfRace autoEvent OnRaceSwitchComplete() ; the race shift takes a few seconds to register Utility.Wait(5) if (Game.GetPlayer().GetRace() == WerewolfRace) ; Place dummy storage at player. Use 0x. ObjectReference LycanStorage = Game.GetPlayer().PlaceAtMe(Game.GetForm(0x010012C4)) Game.GetPlayer().PlaceAtMe(Game.GetForm(0x000C49ED)) ; Ribcage ; Game.GetPlayer().PlaceAtMe(Game.GetForm(0x0003AD74)) ; move inventory to container ; Game.GetPlayer().RemoveAllItems(akTransferTo = LycanStorage, abKeepOwnership = true,abRemoveQuestItems = false) Else Game.GetPlayer().PlaceAtMe(Game.GetForm(0x000FE6A9)) ; Werewolf pelt EndIfendEvent
The script compiles without error but I cannot get it to trigger.
Edit: I got the script to trigger by adding it to the Werewolf Transform Effect. The issues now are that:
1- The script is dropping a wolf pelt and not the ribcage+unique container (so the script still thinks the current race is not Werewolf after transformation)
2- PlaceAtMe drops the item below ground.
Any comment?