Difference between revisions of "House for Sale Tutorial"
Jump to navigation
Jump to search
m
internal links
imported>Sk8r2000 |
imported>Qazaaq m (internal links) |
||
Line 1: | Line 1: | ||
==Preparations== | |||
Before we can start you need to do this: | |||
*Make the exterior of the house. | |||
Before we can start you need to do this: | *Make a [[cell]] for the interior, name it ''House for Sale''. | ||
*Make the | *Make the interior of the house and decorate it. | ||
*Make a cell for the | *Make an [[NPC]] who will sell the house. | ||
*Make the interior of the | *Make a house [[key]]. | ||
*Make | *Make a [[quest]]. | ||
*Make a | |||
*Make a | |||
See [[Creating a House]] for more information on how to make it. | See [[Creating a House]] for more information on how to make it. | ||
==Preparing the house== | |||
First of all you need to set the lock on your house door to "Needs a Key". Change the key to the one that you made earlier (preparations section).<br> | First of all you need to set the lock on your house door to "Needs a Key". Change the key to the one that you made earlier (preparations section).<br> | ||
You house is going to be split up into sections (e.g. Kitchen, Living Room, Dining Room).<br> | You house is going to be split up into sections (e.g. Kitchen, Living Room, Dining Room).<br> | ||
In each section you need to set a parent. Highlight an item in your section.<br> Double-click on it and check the ''Persistent Reference'' box. Give the item a Reference ID, e.g. ''BedroomParentRef''.<br> Double-click on the another thing in the same section. Go to ''Enable Parent'' then press ''Select Reference in Render Window''.<br> | In each section you need to set a parent. Highlight an item in your section.<br> Double-click on it and check the ''Persistent Reference'' box. Give the item a Reference Editor ID, e.g. ''BedroomParentRef''.<br> Double-click on the another thing in the same section. Go to ''Enable Parent'' then press ''Select Reference in Render Window''.<br> | ||
You can now see your | You can now see your [[Render Window]]. Double click on the Parent that you made earlier. Repeat this on the other sets so that each set is linked to their own parent.<br><br> | ||
Now your house is ready. | Now your house is ready. | ||
==The NPC== | |||
The | The NPC needs some [[dialogue]].<br> | ||
Go to Quest and | Go to [[Quest]] and then to the [[Topics Tab]].<br> | ||
Right-click in the empty list and press ''add topic''.<br> | Right-click in the empty list and press ''add topic''.<br> | ||
Then you add ''HouseDecline'' and ''HouseInquiry''.<br> | Then you add ''HouseDecline'' and ''HouseInquiry''.<br> | ||
Line 27: | Line 26: | ||
Now select ''HouseBuy''. In the ''topic text'' you write something like this: "''I'll gladly pay 3,000 gold for it''" (If your house costs 3000, of course).<br> Then go to the list beneath the ''topic text''. Right-click and select ''new''. <br>In the Response text you write something like this: "''Good choice, here is your key.''" <br>If you have audio files, add them now. <br>Press ''Ok''.<br> | Now select ''HouseBuy''. In the ''topic text'' you write something like this: "''I'll gladly pay 3,000 gold for it''" (If your house costs 3000, of course).<br> Then go to the list beneath the ''topic text''. Right-click and select ''new''. <br>In the Response text you write something like this: "''Good choice, here is your key.''" <br>If you have audio files, add them now. <br>Press ''Ok''.<br> | ||
In the ''Result Script'' write: | In the ''Result Script'' write: | ||
SetStage ''<QUESTNAME>'' 10 | [[SetStage]] ''<QUESTNAME>'' 10 | ||
In the | In the [[Condition]]s list you right-click and press new.<br> | ||
Set the ''Condition Function'' to GetGold, leave the ''Function Parameters'' empty, set Comparison to ''>='' and the value to the price of your house, then check ''Run on target''.<br> Then add a new Condition, Function: | Set the ''Condition Function'' to [[GetGold]], leave the ''Function Parameters'' empty, set Comparison to ''>='' and the value to the price of your house, then check ''Run on target''.<br> Then add a new Condition, Function: [[GetIsID]], Parameters: <Your NPC's name>, Comparison: ==, Value: 1 and leave ''Run on Target'' unchecked. <br>Select ''HouseDecline'' add a new response.<br> Add a text like this: "''Come back if you change your mind.''".<br> | ||
Then add the audio.<br> Add another '' | Then add the audio.<br> Add another ''GetIsID'' condition just like you did the second time on the previous Topic.<br> | ||
Select ''HouseInquiry''. Add a new response with a text like this: "''I've been looking for this special house.''".<br> Add audio.<br> | Select ''HouseInquiry''. Add a new response with a text like this: "''I've been looking for this special house.''".<br> Add audio.<br> | ||
In the conditions you add the same '' | In the conditions you add the same ''GetIsID'' condition as the last topic. <br>Then you add a new condition: Function: [[IsCellOwner]], Parameters:<The cell of your house> Player, Comparison: == and Value: 0. <br>Then add a third condition: Function: [[GetDisposition]], Comparison: >= and Value: (How much the NPC needs to like you before they offer you the house). <br>In the ''Choices'' List, add ''HouseBuy'', ''HouseDecline'' and ''HouseTooMuch''.<br> | ||
Select ''HouseTooMuch'', write ''I can't afford 3,000 gold.'' in the ''Topic Text''.<br> Add a new response with text like this: "''What a shame. I guess I have to look for another buyer.''".<br> Add audio. <br>Add a condition, the usual GetIsID condition.<br><br> | Select ''HouseTooMuch'', write ''I can't afford 3,000 gold.'' in the ''Topic Text''.<br> Add a new response with text like this: "''What a shame. I guess I have to look for another buyer.''".<br> Add audio. <br>Add a condition, the usual GetIsID condition.<br><br> | ||
Now the | Now the dialogue is finished. | ||
==The furnishing== | |||
First create a scroll for each set of furniture and name them something like: ''House BedRoom'' or ''House DiningRoom''.<br>In the scroll you write what this set of furniture will add to your house. Something like this: | |||
<blockquote>This entitles the bearer to:<br/> | |||
1 Bed<br/> | |||
1 Carpet<br/> | |||
1 Bed<br> | 1 Bookshelf with books<br/> | ||
1 Carpet<br> | 1 Set of Drawers<br/> | ||
1 Bookshelf with books<br> | 1 Stool</blockquote> | ||
1 Set of Drawers<br> | |||
1 Stool | |||
Add this script to the scroll: | |||
Scriptname HouseFurnReceipt1Script | Scriptname HouseFurnReceipt1Script | ||
Line 77: | Line 77: | ||
end | end | ||
==The Quest== | |||
Make a Quest Script and add it to your Quest.<br> | Make a Quest Script and add it to your Quest.<br> | ||
This is the script you will need (again, you need to edit): | This is the script you will need (again, you need to edit): | ||
Line 132: | Line 132: | ||
end | end | ||
Go to | Go to [[Quest Stages Tab]] and add stage 10, 20 and 30. Select stage 10. <br>Make a new Log Entry with the text: "''I just bought a house in <TOWN NAME HERE>.''".<br> | ||
In the ''Result Script'' write this: | In the ''Result Script'' write this: | ||
Line 152: | Line 152: | ||
That concludes the "House for Sale" tutorial. Enjoy your new house! | That concludes the "House for Sale" tutorial. Enjoy your new house! | ||
[[Category:Tutorials]] | |||
[[Category:Quest Tutorials]] | |||