Got a strange behavior of a button in 8.1.0 is it bug or feature?
Tried to put an action, sensitive and background properties for a button under if/else condition, but got an error
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 104: a non-constant keyword argument like 'background empty_tile' is not allowed after a python block.
background empty_tile
^
Ren'Py Version: Ren'Py 8.1.0.23051307
Sat Jun 17 01:00:34 2023
Code: Select all
button:
action Function(...)
if value == 0:
background empty_tile
Code: Select all
button:
background tile
if value == 0:
$ value = ""
action Function(...)
sensitive can_click
Code: Select all
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 116: a non-constant keyword argument like 'action Function(...)' is not allowed after a python block.
action Function(...)
^
Ren'Py Version: Ren'Py 8.1.0.23051307
Sat Jun 17 01:14:50 2023