Search found 78 matches

by gblekkenhorst
Sat Dec 10, 2022 12:33 pm
Forum: Dialogue System for Unity
Topic: Bug with SimStatus and Variables
Replies: 1
Views: 191

Bug with SimStatus and Variables

Ran into a weird bug. I'm using DS 2.2.33 I have a hub. When the response options have no conditions or just use Variable["L6.LAS"] <= 3, then Variable["L6.LAS"] = Variable["L6.LAS"] + 1 works as expected, it increases the number. But now I'm trying to use the condition...
by gblekkenhorst
Fri Nov 11, 2022 6:16 pm
Forum: Dialogue System for Unity
Topic: input button is inconsistant
Replies: 9
Views: 849

input button is inconsistant

We're having an issue in our game where the select button only works about 20% of the time. useKey is set to 'E'. I put this in the proximity selector Update() to test it: if(InputDeviceManager.IsKeyDown(useKey)) Debug.Log("InputDeviceManager: " + useKey + " used"); if (IsUseButt...
by gblekkenhorst
Wed Oct 12, 2022 3:38 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

Still some errors: This is my yarn: Thought: Alrighty. If I want to get this old car fixed up, I'm going to have to earn some money. <<set $carFundLeft to $carFundTotal - $carFund>> Thought: I'm SO close, just ${$carFundLeft} to go - a few gigs should do it. Thought: Better check my MP3 player is ju...
by gblekkenhorst
Tue Oct 11, 2022 7:24 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

I think this overwrote something with the pause command? I am getting this again: ArgumentException: Object of type 'System.String' cannot be converted to type 'System.Double'. Dialogue System: Lua code '_G['pause']('1') ' threw exception 'Object of type 'System.String' cannot be converted to type '...
by gblekkenhorst
Tue Oct 11, 2022 12:02 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

I'm trying to make a command that adds quests ands then another that updates the quest state, but I'm not sure why it's not working? <<addQuest "paperQuest" "..." "..." "...">> <<questState {"paperQuest"} "active">> public void AddQuest(str...
by gblekkenhorst
Thu Oct 06, 2022 9:11 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

That worked! Thanks!
by gblekkenhorst
Thu Oct 06, 2022 8:44 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

Right, I forgot, the last package made the Run Node work weird,,,, i thought it was freezing the conversation, but it turns out if I hit the interact button again it will continue to the next conversation. I can also manually add the Continue() sequence to the run node and it fixes it. yield return ...
by gblekkenhorst
Thu Oct 06, 2022 8:11 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

I switched this back to int because float wasn't working: Command with the argument: using <<pause 1>> public void Pause(int time) { // int time = 10; StartCoroutine(StartWait(time)); } public IEnumerator StartWait(int time) { DialogueManager.instance.gameObject.GetComponentInChildren<Canvas>().enab...
by gblekkenhorst
Thu Oct 06, 2022 7:30 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

I got it working like this: public void Pause() { int time = 1; StartCoroutine(StartWait(time)); } public IEnumerator StartWait(inttime) { DialogueManager.instance.gameObject.GetComponentInChildren<Canvas>().enabled = false; yield return new WaitForSeconds(time); DialogueManager.instance.gameObject....
by gblekkenhorst
Fri Sep 30, 2022 10:35 pm
Forum: Dialogue System for Unity
Topic: Yarn 1.2.7
Replies: 48
Views: 12379

Re: Yarn 1.2.7

Thanks! It's <<alarm "with my man">> <<alarm "with">> works fine, no errors. The <<wait 1>> command has also gone weird. It's writing Delay(1) in the Sequence, but it just hangs up there - actually this has nothing to do with the new programming, it's because I changed the Contin...