So basically, my problem is that the content of the action tag seem to be evaluated when the button is printed, not when it is activated. Long story short, I want something to append when the text of two button is combined, but it happens a soon as I see the second button if I selected the first. I can post more of the code if needed, but here is the part that is problematic:
Code: Select all
vbox:
if not (current_selected.desc == []):
for j in current_selected.desc:
if (j != None) and j.active:
textbutton "[j.data]":
text_insensitive_color gui.idle_color
sensitive current_selected.end
action If(current_data == None, SetVariable("current_data", j),
Function(renpy.call, "combination", j.test(current_data)))TL;DR: I need a way to test something only when the button is selected, then immediately show a feedback on the result of that test, but couldn't find how.