Trying to figure out why this isnt working. I’ve tried many different iterations, was hoping someone would see what I was going for and help me out.
I’m trying to make a dialogue tree system that doesnt limit me to keeping track of 30 true/false variables.
also should mention, using Chapels custom First macro.
<<set $convo to {
path: 0,
question: 0}>>
<<first>>
Blue: Hey dude whats up!
[[Nothing much dude! And you?|switchtest][set $convo.path to 1]]
[[Do I know you?|switchtest][set $convo.path to 2]]
[[....?|switchtest][set $convo.path to 3]]
<<then>>
<<if $convo.path is 1>>
Blue: Oh the usual!
<<elseif $convo.path is 2>>
Blue: Yeah?
<<else>>
Blue: ....alright...
<</if>>
<</first>>