So I was to create a menu with a button that leads to a
custom screen where I can choose a chapter.
The button should not be interactable if no chapter is unlocked.
Here is the code I wish to ask.

and

Here is the results, left is built by 6.16.5 while right is built by 6.15.7

Plus if I click the chapter button in 6.16.5 built, it treats as
chapter 0 is true.

I read the changelog and nothing to seem relevant with this
problem, any help please? Thanks in advance.
lint report if needed:
Code: Select all
Ren'Py 6.16.5.525 lint report, generated at: Fri Jan 03 11:39:21 2014
game/script.rpy:1378 The image named 'ch04p04' was not declared.
game/script.rpy:1667 The image named 'ch05p11' was not declared.
game/script.rpy:3006 The image named 'ch10p08' was not declared.
game/script.rpy:3147 The image named 'ch12p02' was not declared.
game/script.rpy:3201 The image named 'ch12p04' was not declared.
game/script.rpy:5547 The image named 'ch22p01' was not declared.
game/script.rpy:5576 The image named 'ch22p02' was not declared.
game/script.rpy:5718 The image named 'ch23p01' was not declared.
game/script.rpy:5857 The image named 'ch23p02' was not declared.
game/script.rpy:5872 The image named 'ch23p03' was not declared.
game/script.rpy:5942 The image named 'ch24p01' was not declared.
game/script.rpy:6174 The image named 'ch25p01' was not declared.
game/script.rpy:6460 The image named 'ch26p01' was not declared.
game/script.rpy:6505 The image named 'ch26p02' was not declared.
game/script.rpy:6610 The image named 'ch26p04' was not declared.
game/script.rpy:6619 The image named 'ch26p04' was not declared.
game/script.rpy:6638 The image named 'ch26p04' was not declared.
game/script.rpy:6699 The image named 'ch26p07' was not declared.
game/script.rpy:6741 The image named 'ch27p01' was not declared.
game/script.rpy:6784 The image named 'ch27p02' was not declared.
game/script.rpy:6827 The image named 'ch27p03' was not declared.
game/script.rpy:6850 The image named 'ch27p04' was not declared.
game/script.rpy:7055 The image named 'ch27p05' was not declared.
game/script.rpy:7079 The image named 'ch28_t' was not declared.
game/script.rpy:7086 The image named 'ch28p01' was not declared.
game/script.rpy:7103 The image named 'ch34_t' was not declared.
game/script.rpy:7110 The image named 'ch37p01' was not declared.
Statistics:
The game contains 2,981 dialogue blocks, containing 34,032 words and 184,802
characters, for an average of 11.4 words and 62 characters per block.
The game contains 0 menus, 117 images, and 16 screens.
Remember to set config.developer to False before releasing.
Lint is not a substitute for thorough testing. Remember to update Ren'Py
before releasing. New releases fix bugs and improve compatibility.
