Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Print either within print either

So I'm converting a roll table into a twine file to automate things and part of the roll table has rolls within rolls. Ie, If you roll one action, it tells you to roll another sub action.

So is it possible to "stack" print either? Having one within another, so that it can choose an option and then have that particular option also generate a random action? Like:

A or B
If A, then A. If B, then C, D, or E.

I've tried to do it using normal syntax (Ie putting the option in quotes with a comma separating it) but it doesn't work. Is it even possible? Am I missing some sort of syntax marker to let the program understand these are nested functions.

Comments

  • Doesn't this work?

    <<set $action to either("A",either("C","D","E"))>>
Sign In or Register to comment.