skyrim crashes when i open my own container

Post » Sun Apr 21, 2013 6:14 pm

I've made a machine to make Custards and when i pull the lever the eggs in the chest one clear up and add a globalvariable to the chest two(output)

However after i pull the lever, I can still open chest one , which is empty. But when i open chest 2 to get my custards, skyrim absolutely CTD.

So I use showinventory on the chest and find that even if I put in 2 eggs in the chest1 , chest 02 only has 1 custard, pretty weird right?

First time i thought i'd used wrong property so I changed 3 types of custards property from objectreference to potion

But it wont work. So can you help me? Any ideas what's going wrong?

This is the code of lever, Before pulling the lever i can still open the chest02.

I only use small eggs to test it so i only changed the first part.
Scriptname DDDTurnEggs extends ObjectReference GlobalVariable Property TotalSmallEggCount AutoGlobalVariable Property TotalMediumEggCount AutoGlobalVariable Property TotalBigEggCount Autopotion Property big Autopotion Property small Autopotion Property medium AutoObjectReference Property dddOutput AutoObjectReference Property dddInput AutoEvent OnActivate(ObjectReference akActionRef)  dddinput.RemoveAllItems()  if math.floor(totalsmallEggCount.GetValue()) > 0  Debug.Notification("put in small" + math.floor(totalsmallEggCount.GetValue()))  int cout =  math.floor(totalsmallEggCount.GetValue())  dddoutput.AddItem(small,cout )  EndIf  if math.floor(TotalBigEggCount.GetValue()) > 0  dddoutput.AddItem(big,5)  EndIf  If math.floor(TotalMediumEggCount.GetValue()) > 0  dddoutput.AddItem(medium, 5)  EndIfEndEvent

I will appreciate it if you can help me.
User avatar
Invasion's
 
Posts: 3546
Joined: Fri Aug 18, 2006 6:09 pm

Return to V - Skyrim