- Jun 10, 2017
- 11,101
- 16,560
It don't.But How would adding a third label stop option 1 from saying both options?
"If there is no jump statement at the end of the block associated with the label, Ren'Py will continue on to the next statement."
It's from the official documentation "
You must be registered to see the links
" part.No, yes, it depend.And so if I start a new line that’s indented the game recognizes that it’s a new block of code?
"Indentation is used to group statements into blocks. A block is a group of lines, and often a group of statements. The rules for dividing a file into blocks are:
- A block is open at the start of a file.
- A new block is started whenever a logical line is indented past the previous logical line.
- All logical lines inside a block must have the same indentation.
- A block ends when a logical line is encountered with less indentation than the lines in the block.
And this come from the official documentation "
You must be registered to see the links
" part.The only things potentially confusing here are :
- The statement starting a block must end with
:
; - Not everyt statements need of a block, refer to the statement description to know if it need one or not ;
- Some statements have optional need of a block, once again refer to the statement description to find if it's the case for this one or not.
It's the third time I advice you to read the documentation, personally I'll not do it a fourth time.