I'm trying to make it so that in my current project of a little visual novel, that if you aren't comfortable with specific content, it boots your back to the 1st card, and if you're okay with said content, it moves to the third page. I have it set up as a boolean, but there may be better ways to go about it, any help I can get with this?
adult_ok:true
on view do
dd.open[deck]
dd.say["This game may contain adult themes not suitable for all audiences"]
r:dd.ask[
"If you're okay with these terms, proceed forward:"
("YES", "NO")
]
if r~0
adult_ok:true
dd.say["Then, the Contract has been Sealed."]
else r~1
adult_ok:false
dd.say["Then, the World was covered in Darkness."]
end
dd.close[]
end
# later in the game, after the dialog
if not adult_ok
go["home"]
else
# continue game normally
end