Secret Dirt Piles

From Divinity Engine Wiki
Revision as of 20:21, 12 September 2017 by Windemere (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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. 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.



__GLO_Shovel