fungus

Open full view…

Random Dialogue Selected from an External File?

kevinhainline
Sun, 10 Jun 2018 20:51:12 GMT

Hello! I think that Fungus+Unity are the ideal platforms for creating a pretty simple game idea. I have a series of files filled with character dialogue, and I'd love to generate scenes where the character's lines are selected randomly from the entries in the file. I can see that you can set the Story Text to be a variable, but what's the best way to set these variables at the beginning of the scene? Should I use a Lua script, or should I do this with C#? How can you set Fungus variables in external scripts (where I can easily load in text files and set random lines)? It seems like a lot of the fungus help is designed to guide people through the use of the flowchart GUI, but I'm not seeing a lot of help setting variables in scripts. Any help that anyone could provide would be so great, thank you!

Steve Halliwell
Wed, 13 Jun 2018 10:48:53 GMT

Certainly possible. It's something I've been thinking about adding to Say and Conversations. Lua would be a good option right now as lua can call say and conversations itself so it can generate a string with a bit of shuffling and randomising before it feeds the string through.