Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Fleece

A dialogue manager for Unity that doesn't fray at the edges. · By KaiClavier

Troubleshooting empty passage logic

A topic by Jacob Grossman created Jul 05, 2021 Views: 168 Replies: 6
Viewing posts 1 to 2

Hi, I'm using the generic jumper, have a passage with no text in it and a bool which is correctly being evaluated by fleece (when I toggle it on and off in the parser the parsed text toggles between displaying the two options). 

The behaviour that occurs though is that the second of the two options always gets picked regardless of the bool state. Has empty passage logic changed since those intro videos were created?

Developer

Hmmm can I see a screenshot? I don't believe empty passage logic should have changed, and I've been using fleece myself in the past few days to do this too.


My initial guess is maybe the bool is lowercase...? I think I specifically programmed it to be "True" or "False" so that's my first guess.

(3 edits)

Hey I just worked out a solution but I'll show you my setup in case there's something I'm missing.


To solve it I set both the Generic Drawstring and Drawstring to pick option 1 when there were multiple options but only one is valid because before making that edit it would see that there was only 1 valid option but it always pick the "first" in the list of options regardless of whether it was the valid option or not.

Actually I think that was a false positive because it's reverted back to not working...

Developer

Err unless I'm misunderstanding, for the links on the empty passage there, try <<$hasHotdog>> for the text instead. (or change the "has" text to "True", with no spaces. If that's not it, I'm still a bit confused about what's going on here and might come back to it tomorrow if that's alright!

Thanks very much, both of those options work.

I think what was confusing me was that with this setup the options would evaluate correctly:


The only difference is that Start Passage in this case has text in it.

Thanks very much for your help.

Developer

ah yes by default if you call continue in that scenario itll go to the first passage. use GetChoices to see how many choices there are, and if theres more than 1, give the player a choice prompt. then call makechoice(number) to follow that path.