Global Counter isn't counting

Post » Fri Feb 01, 2013 12:26 am

Seems today isn't a good day for modding for me, 3rd post.
Quest - Go to a mine and mine enough ore to smelt a quicksilver ingot which is 2 ore, should be over pretty quick. I made copies of 3 ore veins, dunno why I did that now but its done, Made a copy of quicksilver ore called is "ELSquicksilverOre". Made a Global Counter Float. Attached this script to the "ELSquicksilverOre"...

GlobalVariable property GlobalCount auto
Quest property myQuest auto
MiscObject property Obj auto
Int property preReqStage auto
Int property StageToSet auto
int myCount
Auto State Ready
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
if myQuest.GetStage() == preReqStage
if akNewContainer == Game.GetPlayer()
utility.wait(0.10)
myCount = Game.GetPlayer().GetItemCount(Obj)
GlobalCount.SetValue(myCount)
if myCount >= 2
myQuest.SetStage(StageToSet)
endif
GoToState("Picked")
endif
endif
EndEvent
EndState
State Picked
EndState

And filled the properties like so https://skydrive.live.com/?cid=b60c11d037429d8e#cid=B60C11D037429D8E&id=B60C11D037429D8E%21411

It doesn't work so I checked the script that is already on the ore veins which is this https://skydrive.live.com/?cid=b60c11d037429d8e#cid=B60C11D037429D8E&id=B60C11D037429D8E%21410

And thought changing the ore to the ore I had made would fix it. It doesn't GlobalValue is 0.
Where am I going wrong?
User avatar
Danial Zachery
 
Posts: 3451
Joined: Fri Aug 24, 2007 5:41 am

Return to V - Skyrim