Skip to content

How to generate If/Then responses based on results of other outputs? #88

Closed Answered by paddirn
paddirn asked this question in Q&A
Discussion options

You must be logged in to vote

So I was able to cobble together the following to get if/then statements in the way I needed it. There's probably a better way to do it, but it's how I figured out how to get it done:

const guyPrompts =`
You meet ${age} ${gender} who used to work as ${occupation}, they're traveling ${party}. They look to be ${appearance}, but also seem to be ${flaw} and ${demeanor} towards you. They seem to be primarily motivated to ${motivation} and feel ${attitude} about ${topic}. They're currently ${action}. Their name is ${mfname} ${lname}.
`

const galPrompts =`
You meet ${age} ${gender} who used to work as ${occupation}, they're traveling ${party}. They look to be ${appearance}, but also seem to be …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by paddirn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant