At my wits last end. I really don't understand...

Post » Sun Jan 06, 2013 9:52 am

So at first I tried using aliases to attach a script to a vanilla object. For whatever reason my script wouldn't run. I posted here about it and someone suggested to put it on the base object instead. When I did the script ran fine, but for some reason that caused the vanilla quest associated with it to stop working.

I assumed this might be because the vanilla quest has an alias that attaches a script to that object. For whatever reason they wouldn't both work at the same time. So this time I created a form list and put the book inside it and then I put my script on an alias. It works great and I'm happy because now I don't have to touch any vanilla assets. But the vanilla quest is still broken. So this time I decide to do this: I put the update for the vanilla quest inside my script.

Scriptname AAs2hTFCEnableDecimusScript extends ObjectReference{Enables Decimus when Player grabs Margret's journal}  ReferenceAlias Property Alias_Decimus  Auto  Quest Property AAs2hTFCQuest01  AutoQuest Property MS01  AutoEvent OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)If (akNewContainer == Game.GetPlayer())Alias_Decimus.GetReference().Enable()AAs2hTFCQuest01.SetStage(10)EndIfEndEventEvent OnRead()If AAs2hTFCQuest01.GetStage() == 16	  AAs2hTFCQuest01.SetStage(17)	 If MS01.GetStageDone(20) == 1 ;this is here because my script breaks the vanilla quest for some reason	MS01.SetStage(38)	EndIfEndIfEndEvent
But the vanilla quest still won't update even though mine updates just fine. (MS01 is the vanilla quest) What? Ok fine. So I rewrote it like this to see what happens.


Scriptname AAs2hTFCEnableDecimusScript extends ObjectReference{Enables Decimus when Player grabs Margret's journal}  ReferenceAlias Property Alias_Decimus  Auto  Quest Property AAs2hTFCQuest01  AutoQuest Property MS01  AutoEvent OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)If (akNewContainer == Game.GetPlayer())Alias_Decimus.GetReference().Enable()AAs2hTFCQuest01.SetStage(10)EndIfEndEventEvent OnRead()If AAs2hTFCQuest01.GetStage() == 16AAs2hTFCQuest01.SetStage(17)MS01.SetStage(38)EndIfEndEvent 

Now the MS01 should just update to stage 38, right? Wrong. Nothing happens at all. {insert every know swear word known to man} Why do my quest and this one just refuse to run at the same time? I figured if their script was going to stop working because of mine I could just insert it into mine to make up for it, but that doesn't work! What is going on?
User avatar
Jessica Nash
 
Posts: 3424
Joined: Tue Dec 19, 2006 10:18 pm

Return to V - Skyrim