sneakaway-studio / tally-extension

A browser extension that transforms the data advertisers collect into a multiplayer game.
https://tallysavestheinternet.com
MIT License
4 stars 2 forks source link

Add branching story function to Dialogue #121

Closed omundy closed 4 years ago

omundy commented 4 years ago

For example this would spawn two different dialogues...

Want to hear the story? <a href="#" class="story2-3">Yes</a> | <a href="#" class="story2-no-thanks">Another time</a>
omundy commented 4 years ago

Pushed this addition yesterday in cfdf8205935ddf3dcf2c11d1a1eb64c6a2f55e48 - There are options for adding branching dialogue now, simply by including one of the following examples in the dialogue.text where {link text,dialogue-category,dialogue-index}

Branching examples

I wonder how many {product monsters,tutorial,howToFindMonsters1} we'll find today. will start

image

Want to hear my story? {yes,tutorial,story1} or {no,branch,answerNo} will start tutorial/story1

image

Want to hear a joke? {yes,joke,joke1} or {no,branch,answerNo} will start tutorial/joke1

image

Do you like stroopwafels? {yes,tutorial,stroopWafels1} or {no,branch,answerNoDontLike} will either start tutorial/stroopWafels1 or play one of these "no" branches

image

To add a variable reference use the following (variables available)

image