Hi,
I have a dialogue that tells the user the current day . The day gets stored and updated along with day/night cycle . I wanted to know if its feasible to edit the dialogue text in runtime . So for day 1 its will say "Today is day 1 " , for day 2 it will say "Today is day 2 " and so on ...
Thanks.
Nishant
Setting Dialogues on runtime
Re: Setting Dialogues on runtime
Hi Nishant,
Yes, it's very easy. Store the day in a Dialogue System variable. For example:
Then use the [var=varName] markup tag in your Dialogue Text:
Yes, it's very easy. Store the day in a Dialogue System variable. For example:
Code: Select all
using PixelCrushers.DialogueSystem;
...
DialogueLua.SetVariable("Day", timeOfDay.day);
- Dialogue Text: "Today is day [var=Day]."
Re: Setting Dialogues on runtime
Cool that works... Thanks a lot