This page describes how to set up the Dialogue System with Black Horizon Studios' UniStorm. (UniStorm is required.)
UniStorm copyright © Black Horizon Studios.
Follow these steps to set up the Dialogue System with UniStorm.
Third Party Support/UniStorm Support
. This will unpack files into the folder Third Party Support/UniStorm Support
.The Example
folder contains an example scene. If you talk to Private Hart, he will make comments about the time and weather.
The example scene is built for Unity 5+.
Add a UniStorm Lua Bridge component to your Dialogue Manager GameObject using Component > Dialogue System > Third Party > UniStorm > UniStorm Lua Bridge.
This component adds the following Lua functions, which return numbers corresponding to the values documented on the UniStorm Wiki's Code References page: http://unistorm-weather-system.wikia.com/wiki/Code_References
The most common use for these functions is in the Conditions of dialogue entries and triggers.
Lua Function | Description |
---|---|
GetMinuteCounter() | Returns the current minutes |
GetHourCounter() | Returns the current hour |
GetDayCounter() | Returns the current day |
GetMonthCounter() | Returns the current month |
GetYearCounter() | Returns the current year |
GetWeatherForecaster() | Returns the current weather conditions value as defined in the table on the UniStorm Wiki |
GetTemperature() | Returns the current temperature |