Advance Qst when NPC is in Loc. at specific time

Post » Tue Sep 22, 2015 7:47 am

Having some problems organising this script, got the gamehour sorted but to add a specific location - I'm lost.

Scenario: Player has had a conversation with NPC and got a negative result. Player is informed "Wait until NPC has had a few drinks and ask again. NPC's drinking habits are from 10am to 8pm when he is at the inn, he also sleeps there, the only time he is out is on a patrol is between 8pm (20.00) until 4am (4.00), (when the player meets him and converses he is on a package that runs once and then is disregarded).

So I need a Papyrus fragment that after the player has been told to wait halts the quest until the NPC is at least at the inn, drinking or sleeping. If I just use gamehour to check then it is easily possible that the player meets the NPC within his allotted "happy hour" out in a forest where the NPC is waiting to converse and after the conversation and player is told to wait until he is drunk (gamehour) then the quest will automatically continue.

I hope I got all that across. Thanks for your time.

EDIT: Think I am over-complicating thins here. Surely all I need is for the NPC to be in the inn, still need advice on scripting this please.

User avatar
Dean
 
Posts: 3438
Joined: Fri Jul 27, 2007 4:58 pm

Post » Tue Sep 22, 2015 6:05 pm

Does the player need to speak to the NPC during drinking hours to advance the quest? If so you don't need to worry about the scripting, just condition that dialogue so that the game hour is within your times, and that the npc (subject) is in the inn location.
User avatar
Christie Mitchell
 
Posts: 3389
Joined: Mon Nov 27, 2006 10:44 pm

Post » Tue Sep 22, 2015 4:38 am

Yes BBD, I got the idea clearer now, I was over-complicating things before. The gamehour itself is also irrelevant because he will be there at those times as his AI packages dictate that, I was worried, before, that when the player meets him elsewhere in the world and its during his drinking hours then the quest would given that its scripted to gamehour advance anyway, when all is needed is for him to be at the inn and the player enters at stage xx of the quest. He'll never be at the inn before the quest begins. Now all I need is help with the script as I've never scripted any event with locations. The wiki isn't helpful on this but I'm guessing something around a location change or same cell thing like the conditions but I am completely guessing.

User avatar
stephanie eastwood
 
Posts: 3526
Joined: Thu Jun 08, 2006 1:25 pm


Return to V - Skyrim