Advanced directing to code inventories

Hey, guys!

I’ve been coding inventory scenes but I believe I’m doing it wrong.
The reader is supposed to collect clues (which are linked to certain bonus scenes) throughout the chapters of the story and, at the end of each of them, I show their updated inventory based on the clues they’ve got.

I was coding that using “if ( BLABLA and BLABLA2 and BLABLA3)”, "elif (BLABLA and BLABLA3) and etc… but from some tutorials I’ve just found, this coding will not work long term.

Any advice?

have you look on your mobil or only on the computer . because the script on the computer can not see what happens in early episodes. they only can on your mobile.

I dont think you can put to gains in one set of brackets anymore. Instead you have to do if/else statements within if/else statements

Following. I need to know this as well. :joy:

1 Like

That’s the thing.
If I have three clues so far, for example, and I have to combine the coding to show the reader different scenes…
Would it be like:

if (clue one)
if (clue two)
elif (clue three)
elif (clue four)

?
What if the reader has all of them? Or only two and four?

Yes, I always test the chapters using both.

1 Like

if (clue one)

@pause for a beat

if (clue two)

Unfortunately, it would be a little more complicated than that… something like this

if (clue one) {

if (clue two) {

} elif (clue three) {

} else {

}

} elif (clue two) {

if (clue three) {

} else {

}

} elif (clue three) {

} else {

}

And so on and so forth

1 Like

Thank you!!!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.