Search found 20993 matches

by Tony Li
Thu Feb 12, 2015 10:51 am
Forum: Dialogue System for Unity
Topic: How to embed external data in dialogue strings?
Replies: 2
Views: 774

How to embed external data in dialogue strings?

Hi Nick, Yes, you can embed external data in custom fields, or directly in the dialogue text. We've had some studios do crazy things with this, like embedding entire Lua programs in dialogue text and quest entry text. When the player completes a quest entry, it runs the Lua program, which updates th...
by Tony Li
Wed Feb 11, 2015 12:35 pm
Forum: Dialogue System for Unity
Topic: Issue after using Application.LoadLevel?
Replies: 3
Views: 760

Issue after using Application.LoadLevel?

As long as the Dialogue Manager from your first scene has Don't Destroy On Load ticked, it will be there to handle DialogueManager.StartConversation().



I got your email, and I'll reply directly to it.
by Tony Li
Wed Feb 11, 2015 4:03 am
Forum: Dialogue System for Unity
Topic: Issue after using Application.LoadLevel?
Replies: 3
Views: 760

Issue after using Application.LoadLevel?

Hi, What GUI system are you using? Is your dialogue UI part of the scene, or is it a reference to a prefab? If it's Unity UI, make the canvas a child of the Dialogue Manager GameObject so it persists across scene changes. (And make sure your second scene has an EventSystem, too. You can make the Eve...
by Tony Li
Wed Feb 11, 2015 3:45 am
Forum: Dialogue System for Unity
Topic: Trouble displaying a Variable
Replies: 22
Views: 3906

Trouble displaying a Variable

I sent a reply in email. If it addresses the issues, please let me know; I'll post the answer here in that case for future readers.
by Tony Li
Tue Feb 10, 2015 9:22 am
Forum: Dialogue System for Unity
Topic: Trouble displaying a Variable
Replies: 22
Views: 3906

Trouble displaying a Variable

Hi,



I just replied to your email. Once we get the issues straightened out, I'll post the solution(s) here.
by Tony Li
Tue Feb 10, 2015 9:01 am
Forum: Dialogue System for Unity
Topic: Importing Gamespace Variable to Dialogue System
Replies: 1
Views: 549

Importing Gamespace Variable to Dialogue System

Hi, Use DialogueLua.SetVariable. For example: using PixelCrushers.DialogueSystem; bool myValue = true; DialogueSystem.SetVariable("MyValue", myValue); If you want to go the other way (set a C# variable from inside Lua code), you can register your own C# method as a Lua function. If you wan...
by Tony Li
Tue Feb 10, 2015 6:49 am
Forum: Dialogue System for Unity
Topic: Trouble displaying a Variable
Replies: 22
Views: 3906

Trouble displaying a Variable

You can have as many Resources folders as you want, and you can also refer to action lists in the scene itself. For example, in the AC example scene, you can run the "Try lifting" cutscene. For the AnimatorPlay() sequencer command, when you get a chance set the Dialogue Manager's Debug Lev...
by Tony Li
Tue Feb 10, 2015 5:24 am
Forum: Dialogue System for Unity
Topic: Trouble displaying a Variable
Replies: 22
Views: 3906

Trouble displaying a Variable

For the script, try this. I'm out of the office at the moment, so I can't test it. If you get any compiler errors, let me know. using UnityEngine; using PixelCrushers.DialogueSystem; using PixelCrushers.DialogueSystem.UnityGUI; using PixelCrushers.DialogueSystem.AdventureCreator; public class WatchS...
by Tony Li
Tue Feb 10, 2015 3:03 am
Forum: Dialogue System for Unity
Topic: Trouble displaying a Variable
Replies: 22
Views: 3906

Trouble displaying a Variable

Hi,



For the script, put this line at the top of the file:

using UnityEngine;

Put sequencer commands in the Sequence field, not the Script field. The Script field is for Lua code, such as conditions on dialogue entries. The Sequence field is for sequencer commands.
by Tony Li
Mon Feb 09, 2015 9:31 am
Forum: Dialogue System for Unity
Topic: Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI
Replies: 6
Views: 1198

Minor issues with UnityUIBarkSubtitleDialogueUI and UnityUIBarkUI

You should see SetUIElementsActive(true) further down in the Bark() method. It deactivates and reactivates the UI elements so trigger any effects that work in OnEnable, such as the typewriter effect. If any issues come up, please feel free to send me an example scene. For the responses background, m...