Creation of a Resting Place
From Djinni Wiki
by Jarosław Oziemblewski
The first thing is to add the Sleep option to the character’s dialogue.
Click the dialogue line that will lead to Sleep with the left mouse button (the example marked in gray). Next, choose the Properties tab in the upper right corner and choose Gameplay option from the drop-down menu on the Conv Type (marked in blue).”.
The icon by the dialogue line will change and new options will appear in the Properties window. Set Sleep as the Action Type. In the Action Param 1 you can also set: the price that the player will have to pay in order to rest in the given place.
Now, you are to choose the place where your character will be able to sleep.
In the open Area Editor find a place where your character will be meditating. Next, find a blue flag icon on the bar in the upper part of the screen and click on the small triangle on the right side of the flag.
You are presented with a menu. There, select wp_standart (if it’s not there, click on Select new Waypoint template, look for this file and add it to the menu). A purple object shown on the picture above should follow the cursor (it may differ in color). Now, click on the place you’ve chosen as a meditation spot – the object should be set there. You can create other such spots, if needed. When you are done, choose an arrow from the upper icon bar (first icon on the left). Double click on the object set at the screen. A window visible on the picture above should appear on the right. Enter ‘meditate’ by the Tag Field and save changes. Now you should set the direction which the character will be facing at the meditation spot. The direction is shown by an arrow-tip being the base of the Waypoint. Rotate it, if you are not happy with the direction. (See: Setting of the objects)
Comments: You can always set more meditation spots. In such a case, the game chooses the closest to the character. The game does not use the Description and Comment fields but you can use them to enter some helpful information if needed.
Previous tutorial: Creating NPC file
Next tutorial: Creation of a Shop




