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.