Difference between revisions of "Secret Dirt Piles"

From Divinity Engine Wiki
Jump to: navigation, search
(Created page with "== Overview == This tutorial provides an example of how to create a secret dirt pile that needs to be dug up, with a variety of possible results following (item spawn, surface...")
 
(The Box Trigger)
Line 19: Line 19:
  
 
== The Box Trigger ==
 
== The Box Trigger ==
A box trigger is used to inform the story scripting where a digable area exists and where to spawn any resulting objects. Select a box trigger from the Root Templates and place it on top of your dirt mound. With the trigger selected, you can then define its boundaries by selecting the "Edit Shape Bounds" Mode button and dragging the corners to cover the area.<br />
+
A box trigger is used to inform the story scripting where a digable area exists and where to spawn any resulting objects. Select a box trigger from the Root Templates and place it on top of your dirt mound. Feel free to assign it a unique name that is easy to find later. With the trigger selected, you can then define its boundaries by selecting the "Edit Shape Bounds" Mode button on the left and dragging the corners of the trigger to cover the appropriate area.<br />
  
 
+
[[File:TUT SecretDirtPile BoxTrigger.png|none|1024px]]
 
 
 
 
__GLO_Shovel
 

Revision as of 19:33, 12 September 2017

Overview

This tutorial provides an example of how to create a secret dirt pile that needs to be dug up, with a variety of possible results following (item spawn, surface appearing, voice bark, etc.). It makes use of shared resources already provided by Larian. You will need the following:

  • Root template item PUZ_Dirtpile_A_Dynamic placed in your level
  • A box trigger
  • A couple of Osiris calls in your story
  • (optional) item or creature to appear

The Dirt Pile

From the root template, place an instance of the PUZ_Dirtpile_A_Dynamic item in your level. Feel free to rename the placed instance to whatever is meaningful to your mod and level.

You can modify some behaviors of the dirt pile with the associated script by clicking on the [...] box. Search the item properties of the dirt pile for the following entry:
...
[Scripts][[1] PUZZLE_HiddenPerception]

Secret Dirt Puzzle Script Properties

The script variables adjust the difficulty of perceiving the mound, the minimum range, visual effect to be played, etc.

The Box Trigger

A box trigger is used to inform the story scripting where a digable area exists and where to spawn any resulting objects. Select a box trigger from the Root Templates and place it on top of your dirt mound. Feel free to assign it a unique name that is easy to find later. With the trigger selected, you can then define its boundaries by selecting the "Edit Shape Bounds" Mode button on the left and dragging the corners of the trigger to cover the appropriate area.

TUT SecretDirtPile BoxTrigger.png