Hi all,
As the thread title suggests I have been working on creating a scripting system
That is to be used for player/NPC dialog.
The way that a conversation branches can be very complex and up until now I have had trouble
with the whole thing.
Now I think I am getting somewhere. I would like to share what I have so I can get some feedback
and advice from others who have also worked on this problem.
Example program is attached.
I am not posting code at this point as this project is a jumbled mess due to me exploring many options.
I would be embarrassed to have it seen at this point, but when I have it cleaned up and optimized I will share the code.
what
is shared is the scripting system I have been designing.
It is very simple.
it works like a normal subroutine.
this is the basic format.
<label>
line>lines of text displayed
break>
choice>a a choice of dialog the user can select>target
<return>
So it searches the text file until it finds the target label
it uses > as a token.
line> is for lines of dialog
break> adds a horizontal line for seperation
choice> a sentence that can be clicked on followed by a token>the target label that the routine will point to if this option is clicked.
you can edit the script file yourself and play around with it.
I am interested in others methods of tackling this problem.
Can you think of a simpler and more versatile way of creating a dialog system?
share any thoughts, ideas or critiques you want.
cheers,
kezzla
Burn retina, burn!
