EDIT: I am working on a rewrite of the scripts, the new version will be easier, faster, and cooler!
Well, I took a loooooong break from my game Existence, (mostly cause I couldn’t find a bug in the path-finding script see -here-) But I started again! And to kick it off, I wrote a script to easily do multi-choice dialogs!
It is easy once you understand how it works, so here’s how it works:
It reads from an outside .txt file, the name is defined by the file property
The stuff inside of the txt file is what is important.
Basically you give commands through the txt file that the script reads, and does corresponding actions.
For example, lets say you want the conversation to end at a certain line. You edit the txt file, and at the line you want it to end, type end; That’s it! Like this:
Well, I better be going! end;
Here is an example txt:
Why, Hello!!! - this can be anything Its a nice day up here. - the same as above choice; - this tells the script that there is a choice coming up What is your name, young man? - this is the question before the choices Joie - choice #1 James - choice #2 choice 1; - this tells the script that if you select choice #1, this dialog happens > My name is Joie. - this is the dialog for choice #1 go; - this tells the script to go to the next choice choice 2; - this is the same as above, but with the second choice > Hello, my name is James go;
I added lines to make it easy to read, because this can be a turn off for beginners, but for the right lines look in the example txt.
There are only 5 commands, and support for 3 choices. The script does all the hard work for you.
Add support for internal files
combine into 1 script instead of 2
I’m sure I will think of others
A big thanks to Andrew-101! I saw his script a loooooong time ago and used it as the base to this one.
I think that’s it, here is an example, this is just the first release, I plan to fix, and extend the usability.
if you need any help, post! It might take getting used to, but it is the easiest way that I found so far!
Download from MediaFire (if it ever loads…), or MEGAUPLOAD
EDIT: I re-uploaded the file with the font. Thanks!