Jump to content

More script troubles


stars2heaven

Recommended Posts

After several attempts to get this script to do something, ANYTHING, I decided to essentially copy one of the vanilla quests that did something very similar. So here is the script I'm using now. It's basically a modified version of the script from the quest MS01 and look nearly identical. That quest has it's quest updated when the player adds the very same journal I'm using to the players inventory. I wan't to do the exact same thing but also enable my disabled actor, too. My script is attached to an alias called "player" that is linked via the "unique actor" setting to the player, just like the MS01 quest has it. It's pretty much identical in every way I can see, but my script doesn't seem to run. When I grab the book MS01 updates it's quest, but mine remains at 0. Anyone have any idea what I'm doing wrong?

 

Scriptname AAs2hTFCEnableDecimusScript extends ReferenceAlias  

{Enables Decimus after acquiring the journal}  

Book Property MS01MargretJournal  Auto
ReferenceAlias Property Alias_Decimus  Auto 

Event OnInit()
AddInventoryEventFilter(MS01MargretJournal)
EndEvent  

Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer)

If (akBaseItem == MS01MargretJournal)
	Alias_Decimus.GetReference().Enable()
	GetOwningQuest().SetStage(10)
EndIf

EndEvent 

Link to comment
Share on other sites

Ok, well now I am very confused. Since I couldn't figure out why this wasn't working I went into the game and manually set the quest stage to 10 via the console. Now when I check what stage the quest is set at, the game will return what I set it to, which is 10. But my quest has a log entry and everything that should update and tell the player what to do next, but none of that shows up. I am completely at a loss to explain what is going on.

 

I tried making a brand new .esp with only the quest, stages and objectives. When I set the stage with a console command the stage got set and the objectives displayed in the journal but the journal entry itself didn't display.

This doesn't seem to me like something I've done wrong anymore. When the stage is set the journal entry should display regardless of what else I've done...

Link to comment
Share on other sites

I don't have any idea what happened but there definitely is something wrong with the CK. I went through the tutorial a couple of days ago so I loaded the mod I made and tested it. It worked fine. I then decided to go through the tutorial again and remake the mod from scratch. This time there are things not happening right. None of the dialogue works for the NPC. The journal entries aren't there. Scripts won't run.

 

I have no idea what's happened between the time I went through the tutorial and now. I haven't touched the CK. I guess I'll uninstall it and install it again. Anyone ever experienced this or know what could cause it?

 

Edit: UGH! Never mind. I forgot about the stupid SEQ file. Apparently that was the problem with the mod I made by following the tutorial. I'm still having the same issue as in the OP, though, even though I generated an SEQ file.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...