Sellable House Mod help

Post » Wed Jun 27, 2012 3:26 pm

I want my pc to be able to buy houses, but i have no idea of how to write a script for it, any help.
User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm

Post » Wed Jun 27, 2012 2:28 am

Why not DL a sellable house mod and see what the author did to make it work?
User avatar
mishionary
 
Posts: 3414
Joined: Tue Feb 20, 2007 6:19 am

Post » Wed Jun 27, 2012 9:05 am

I have, specifficaly with dave humphrey's mods, problem is , I don't want a script exactly like that, and don't know what to delete and what not to.
User avatar
Tiffany Carter
 
Posts: 3454
Joined: Wed Jul 19, 2006 4:05 am

Post » Wed Jun 27, 2012 12:47 pm

Scripts to keep the PC out of the house until he buys it are very simple. Check the "Blocked Door" script for an example, It's just an on activate with a messagebox then return. there are several ways to allow entrance after purchase, the easiest would likely be setting a global variable in dialogue when the house is bought and putting the check for that into that blocked door script.

You can handle almost all of it in dialogue...

Here's a sample script:

Begin MyDoorScript;MyDoor is a global variableIf ( OnActivate == 1 )	If ( MyDoor >= 1 )		Activate	Else		Messagebox "This house is for sale buy it from XXX at XXX)		Return	endIfendIfEnd

Edit for typO
User avatar
Nice one
 
Posts: 3473
Joined: Thu Jun 21, 2007 5:30 am

Post » Wed Jun 27, 2012 4:02 pm

There is a mod called Natar's House set in Balmora. The guy in there offers to sell his house for x gold. Very simple, uncomplicated transaction. No quests involved. It's an old mod, perhaps around 2004. That might help you.
User avatar
Je suis
 
Posts: 3350
Joined: Sat Mar 17, 2007 7:44 pm


Return to III - Morrowind