What I'm trying to achieve is a conversation that jumps back to itself with different options in the menu based on what has already been asked.
Simple example...
Ask person 1 how he is (as a first option)
Ask person 2 how he is (as a first option)
ask person 1 to elaborate (if asked)
ask person 2 to elaborate (if asked)
Leave the conversation (if both elaborated)
I have had it working with True/False statements but would like to get it working with +=1 if possible for more in depth conversations such as ....
Ask person 1 how he is (as a first option)
Ask person 2 how he is (as a first option)
ask person 1 to elaborate (if asked)
ask person 2 to elaborate (if asked)
ask person 1 to elaborate further (if asked)
ask person 2 to elaborate further (if asked)
Leave the conversation (if both elaborated further)
my code at the moment is this....
Code: Select all
define j = Character("Jim")
define b = Character("Bob")
default jim = 0
default bob = 0
label start:
label talk:
menu:
"How are you, Jim?" if jim = 0:
jump jim1
"Tell me about it, Jim" if jim = 1:
jump jim2
"How are you, Bob" if bob = 0:
jump bob1
"Tell me about it, Bob" if bob = 1:
jump bob2
"Leave" if jim = 1 and bob = 1:
jump leave
label jim1:
$jim += 1
j "Oh I am great, just keeping busy"
jump talk
label jim2:
$jim += 1
j "Well it's nothing interesting"
jump talk
label bob1:
$bob += 1
b "Oh I am great, just keeping busy"
jump talk
label bob2:
$bob += 1
b "Well it's all boring stuff"
jump talk
label leave:
"Well this is a boring conversation"