|
|
|
|
|
Re: Need help in buyable house creation [message #64583 is a reply to message #64555] |
Mon, 29 August 2011 19:43 |
|
JohnDoe
Messages: 3007 Registered: October 2007
|
Retired
|
|
|
You need a few things for a buyable house. The most important part to take note of is UIDs.
Using the stuff out of the Bowerstone Slums as an example, here's the marital home skeleton:
NewThing Building;
UID 18446741874686302004;
DefinitionType "BUILDING_BS_SLUM_HOUSE_BUYABLE";
EndThing;
NewThing Object;
DefinitionType "OBJECT_BUYABLE_HOUSE_MAIN_SIGNPOST";
OwnerUID 18446741874686302004;
EndThing;
NewThing Marker;
DefinitionType "MARKER_BUYABLE_HOUSE_MAIN_SIGNPOST";
OwnerUID 18446741874686302004;
EndThing;
NewThing Marker;
DefinitionType "MARKER_BUYABLE_HOUSE_DRESSING_SIGNPOST";
OwnerUID 18446741874686302004;
EndThing;
Again, note the UIDs. The OwnerUID numbers are going to be the UID of the house. The door will belong to the house. The markers will belong to the house. The signpost will belong to the house. So, when you use the sign to purchase the house, the house will actually belong to you as well as all the things in it. Provided the bed is one that can actually be used (and not the mayoress or hooker bed) then it will work.
And because I'm sure this question will be next, this is how you set up upgrades to the house:
NewThing Object;
UID 18446741874686333960;
DefinitionType "OBJECT_BHF_TABLELAMP_LIT_LEVEL_01";
ScriptData "Dress 0";
OwnerUID 18446741874686302004;
EndThing;
NewThing Object;
UID 18446741874686333961;
DefinitionType "OBJECT_BHF_TABLELAMP_LIT_LEVEL_02";
ScriptData "Dress 1";
OwnerUID 18446741874686302004;
EndThing;
NewThing Object;
UID 18446741874686333962;
DefinitionType "OBJECT_BHF_TABLELAMP_LIT_LEVEL_03";
ScriptData "Dress 2";
OwnerUID 18446741874686302004;
EndThing;
NewThing Object;
UID 18446741874686333963;
DefinitionType "OBJECT_BHF_TABLELAMP_LIT_LEVEL_04";
ScriptData "Dress 3";
OwnerUID 18446741874686302004;
EndThing;
At the lowest dressing level, "Dress 0", the scripts with the ScriptData "Dress 0" will appear. Upgrade the house, the Dress 1 scripts will appear and the Dress 0 scripts will disappear. Again, they must all belong to the house by way of the OwnerUID.
|
|
|
|
|