Furnishings purchase flag for Vanilla homes?

Post » Tue Oct 15, 2013 9:33 am

My Mod allows the Player to start with one of the Vanilla homes already purchased, and they can choose to have it Furnished or Unfurnished; as far as I can tell, I have everything set up right to mimic purchasing the house... Except I can't actually purchase any furnishings if I choose Unfurnished.

I can't re-buy the house, or ask about it at all, which suggests the Game at least recognises that I've already bought the house, but it's not triggering the next set of dialogue, to let me decorate it; does anyone have any idea what triggers this part of the process, because personally I'm lost :/

User avatar
Flash
 
Posts: 3541
Joined: Fri Oct 13, 2006 3:24 pm

Post » Tue Oct 15, 2013 3:35 am

The furnishing of the vanilla houses in this game is a quest, perhaps that is why you are not able to trigger the events to furnish the house outside of that quest. Find a way to incorporate the existing furnishing quest, or to eliminate it from the Vanilla Houses or trigger the events outside of the quest conditions that are used for the vanilla furnishing quest/scripts

User avatar
Thema
 
Posts: 3461
Joined: Thu Sep 21, 2006 2:36 am

Post » Tue Oct 15, 2013 7:41 am

Hmm, I *think* I'm already doing that...

From what I can tell :

  1. "HousePurchase" is the Quest which controls purchasing houses,
  2. When a House is purchased, Quest Stage 10 checks your location and then runs a script for that location.
  3. So if You're in Whiterun, it sets "kmyquest.whiterunhousevar=1"
  4. Decorating Whiterun then checks this variable is >= 1, your talking to a Steward, and you're in DragonsReach.

Meanwhile, my Mod...

  1. Checks if the Player wants to buy a house.
  2. Gives them the Keys, Sets the Faction, et cetera
  3. Runs "(HousePurchase as HousePurchaseScript).WhiterunHouseVar = 1"

As far as I understand, that *should* link into the Quest, and force update the variable exactly the same as the QuestStage does... I've already mimicked the Function for purchasing, and the only other piece of code on buying a house updates you to Thane, so far as I can tell...

Edit :

Double-checked in Game, the Variable is being set, I'm in the right cell, and talking to the right person; I also tried AddTopic, and added the top-level Dialogue Topic, but still no luck... :/

User avatar
Cccurly
 
Posts: 3381
Joined: Mon Apr 09, 2007 8:18 pm

Post » Tue Oct 15, 2013 12:48 pm

Are you modifying the existing houses or new ones?

If the former, clone an existing player house and put it somewhere you can work with it. See if you can get the scripts working on the new house with the existing game. If the latter, then try cloning the existing house and modifying the clone to see how far you get. Then apply that to the house you want to make the changes to.

User avatar
Laurenn Doylee
 
Posts: 3427
Joined: Sun Dec 03, 2006 11:48 am


Return to V - Skyrim