Yarn 1.2.7

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Hi,

Try:

Code: Select all

<<addConvo Landlord Landlord/Closet>>
Yarn's commands, like the Dialogue System's sequencer commands, have a weird syntax in that they generally don't use quotes.
gblekkenhorst
Posts: 89
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

OK I've tried that now, but it's still doing the same thing:

Code: Select all

_G['addConvo']('Landlord', 'LLLLLLandlord', '/', 'Closet')
Just changed spelling to check I that it was a new import.
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Hi,

I'll try to get a fix to you by this evening. The code that breaks <<command param param...>> into tokens doesn't currently handle "/".
gblekkenhorst
Posts: 89
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

Thank you kindly!
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Sorry, will probably be tomorrow. Dealing with a sick dog this evening.
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Had a minute to fix that issue. You'll need to put that string in quotes:

Code: Select all

<<addConvo Landlord "Landlord/Closet">>
Patch: DS_Yarn1Patch_2024-12-29.unitypackage
gblekkenhorst
Posts: 89
Joined: Wed Jun 24, 2020 5:06 pm

Re: Yarn 1.2.7

Post by gblekkenhorst »

It works perfectly! Thank you so much for putting the time in for me, it really unlocks my game. For this one I'm trying a system where instead of nesting a bunch of conditionals in a hub I'm adding the URL to a conversation list each character and interactive item has, they trigger one at a time each time the convo is initiated, and then removes it from the list and plays the default when the list is exhausted. I'll have to see if it feels good in gameplay to give so little control over the topics to the player, but so far testing it being triggered from code is working really well.
User avatar
Tony Li
Posts: 22655
Joined: Thu Jul 18, 2013 1:27 pm

Re: Yarn 1.2.7

Post by Tony Li »

Cool idea!
Post Reply