M
Midastouch
Guest
Hello everyone,
I have a little problem to manage my dialogue system when i have multiples question and multiples answers. I created an array to store the text
array [interlocutor with who you speak] [line text] [here i store if i just write a sentence or a sentence + answers, "answer 1","answer 2"....]
I give you an exemple :
For exemple line text = 1 ---->choice 1 ---->line text = 101 ----> choice 1 --->line text = ???
----> choice 2 --->line text = ???
line text = 1 ---->choice 2 ---->line text = 201 ----> choice 1 --->line text = ???
----> choice 2 --->line text = ???
Can you help me?
I have a little problem to manage my dialogue system when i have multiples question and multiples answers. I created an array to store the text
array [interlocutor with who you speak] [line text] [here i store if i just write a sentence or a sentence + answers, "answer 1","answer 2"....]
I give you an exemple :
GML:
array[John][0]=[0,"my name is John"]//line text 0 // 0 is because it's just a sentence
array[John][1]=[3,"And you, what is your name?","Answer 1","Answer 2","Answer 3"]//line text 1//3 is because i have 3 answers
//if Answer 1
array[John][101]=[0, "blablabla"]//if answer 1 i add 100 to line text
//if Answer 2
array[John][201]=[0,"answer something"]//if answer 2 i add 200 to line text
For exemple line text = 1 ---->choice 1 ---->line text = 101 ----> choice 1 --->line text = ???
----> choice 2 --->line text = ???
line text = 1 ---->choice 2 ---->line text = 201 ----> choice 1 --->line text = ???
----> choice 2 --->line text = ???
Can you help me?