Jump to content

How to make buyable homes V2


LegoManIAm94

Recommended Posts

V2 will fix the problem where furniture will not disable itself after purchased when you load your saved game. And add a way to make it so you cannot enter the house until you purchased it.

 

Well first you will need to build the home and furnished it. Then create a quest for buying the home, Include atleast 2 journal entries such as 0 for name and 10 for finished. Then this is optional but you can make a key for the the front door and make a buyer such as the house leader or if that city does not have a house such as Vivec or Mournhold make stand or store where a person will sell you a house. Make them sell you the key but not by bartering. First go to all of the furniture in that house and change the ID and check the Reference Persists box. Then make a script that will disable the items in the house for example

 

Begin Scriptname

 

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

"ItemID"->disable

 

end

 

Then use the local trader and you can buy furniture from him. Then use the trader and add a topic called furniture and then when you buy the house make sure that topic is avalable. Then add a gobal variable for each set of furniture you can buy such as Dinning Room Set to Storage Set. Then when you buy the furniture in the results type this

 

Set Gobalvar to 1

player->removeitem "gold_001" amount

"ItemID"->enable

"ItemID"->enable

"ItemID"->enable

 

Then last but not lease make sure that the topic for buying the home can be hyperlink in the greeting or make a script like so

 

Begin Scriptname

 

Addtopic "Topic"

Stopscript Scriptname

 

end

 

Now make a cell called (Cityname), House For Sale. Now edit the door that will enter the house to a new ID then copy it and paste another door and put it in the same spot with a new ID. Then type the scripts. There are two and one for each door.

 

begin scriptname1

 

if (getjournalindex housequest < Finished)

enable

else

disable

endif

 

if (onactivate==1)

messagebox "You need a key"

endif

 

end

 

 

 

begin scriptname2

 

if (getjournalindex housequest == Finished)

enable

else

disable

endif

 

end

 

 

Now the door that teleports you into the home will be script 2. Script 1 will be going onto the other door. Then door that uses the first script must teleport to the House For Sale cell.

 

and test it out and if it works you have your own house like in Oblivion but in Morrowind. Here is a example for a house in Mournhold.

Link to comment
Share on other sites

If the script that disable the furniture when you buy the house doesn't work then copy everything in the script expet for the begin and end part by highlighting it and press ctrl+c then paste it into the results of the dialogue topic when you just bought the house. Remove the startscript command from it and delete the script. Here is the house demo V2.1
Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

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