VendorBlacksmith question

Post » Wed Jun 20, 2012 9:12 pm

In my mod, I want my blacksmith NPC to offer the player a custom armor set but for the sake of realism, how would I set it up so that the player would have to wait 3 days until it is ready? Could I accomplish this with a quest?

- Hypno
User avatar
Andrea P
 
Posts: 3400
Joined: Mon Feb 12, 2007 7:45 am

Post » Thu Jun 21, 2012 1:13 am

Anybody know how to do this?

I cannot remember off of the top of my head whether there is an example of this already in the game, as I would have checked that before posting my question. I'm pretty sure it is possible as I remember there being something like this in one of the fallout games.

Any help is greatly appreciated

- Hypno
User avatar
Miranda Taylor
 
Posts: 3406
Joined: Sat Feb 24, 2007 3:39 pm

Post » Thu Jun 21, 2012 6:22 am

Sure. There are undoubtedly multiple ways of accomplishing it, but yes, most that I can think of involve using a quest and a script attached to that quest.

So in your quest there would be some dialogue where the player requests the armor. In the blacksmith's response to that quest, you would add a Papyrus fragment with GetOwningQuest().RegisterForSingleUpdateGametime(72). Then in your quest script, have a boolean conditional property (bArmorIsReady or something like that) that defaults to false, and an OnUpdateGameTime() event block which sets that property to true. Then back in the quest dialogue, you add another topic where the blacksmith says that the armor is ready and gives it to the player in exchange for the price, if they have enough gold for it or the correct quest item or whatever. That response can be conditioned to only display when your bArmorIsReady property is true, using the GetVMQuestVariable condition.
User avatar
Lawrence Armijo
 
Posts: 3446
Joined: Thu Sep 27, 2007 7:12 pm

Post » Wed Jun 20, 2012 10:02 pm

Thank you dreamking, I'll give it a go when I get home tonight after work

- Hypno
User avatar
Richard
 
Posts: 3371
Joined: Sat Oct 13, 2007 2:50 pm

Post » Wed Jun 20, 2012 11:09 pm

Cheers for the help Dreamking. Using your post as a guide I was able to take it further and allow for multiple options and making it repeatable.

New lesson learned today: the wonders of variables!

- Hypno
User avatar
Farrah Lee
 
Posts: 3488
Joined: Fri Aug 17, 2007 10:32 pm


Return to V - Skyrim