Starting Quest When Entering Cell

Post » Sun Aug 21, 2011 4:56 pm

I'm working on having my quest pop up and start when the player enters a specific interior cell for the first time however it seems like the Quest Conditions I'm using aren't correct. I've searched a few days now on here and throughout the other TES wiki/tutorial sites and haven't found a clear solution. I also tried looking through the built-in quests but there aren't many that utilize GetInCell which is what I'm trying to use and might have incorrect. Here's what I've got so far:

GetPlayerInSEWorld == 0 AND
GetIsPlayableRace == 1 AND
GetInCell MLCNilnStable == 1

Those are copied from the Quest Conditions on my Quest Data tab so don't look at it as a syntax issue. I'm wondering if I need to attach a script or something to start the quest or set the stage when these conditions are met?
User avatar
Adam Porter
 
Posts: 3532
Joined: Sat Jun 02, 2007 10:47 am

Post » Sun Aug 21, 2011 11:51 am

the easiest way i think is to add a script to your quest.
I've never been fond of checking conditions without using a script.

set your quest to be Startgame enabled and assuming the first stage of your quest is 10


scn MyQuestQuestScript

Begin GameMode

if GetinCell.XXXXXXXXXX && GetStage.MyQuest < 10

setstage MyQuest 10

endif

End
User avatar
Destinyscharm
 
Posts: 3404
Joined: Sun Jul 23, 2006 6:06 pm

Post » Sun Aug 21, 2011 9:51 pm

Either that, or put a script on the door leading to the interior cell, that has a startquest scripted.
User avatar
Lil Miss
 
Posts: 3373
Joined: Thu Nov 23, 2006 12:57 pm

Post » Sun Aug 21, 2011 7:33 am

Either that, or put a script on the door leading to the interior cell, that has a startquest scripted.


I started this method but ran into the issue that the door wasn't doing it's normal processing after activating and the script was firing OnActivate so the player saw the quest before entering the home.

However, I used this in a different way and solved it. I found a static candlestick I have placed on a table and placed the script on that instead using the OnLoad. This way the player enters the cell, loads up that object, and the quest pops open. Although, I can't imagine this is the best way to do this, there's got to be a more elegant solution...
User avatar
Roanne Bardsley
 
Posts: 3414
Joined: Wed Nov 08, 2006 9:57 am


Return to IV - Oblivion