Oh nice, could you explain me the code so I can change it accordingly?
I would recommend using this code like this.
We put the statistics of a variable on the sidebar by simply inserting this variable : $feminism
Then we create a widget that will perform calculations with this change. Creating a separate passageway with the widget tag.
Something like this.
Then we insert the widget code there.
<<widget 'feminism'>>\
<<set $feminism += 1>><<if $feminism lt 0>><<set $feminism to 0>><<elseif $feminism gt 40>><<set $feminism to 40>><</if>>
<</widget>>\
Then we insert this widget into the button itself in the game, which is responsible for increasing this stats.
<<button 'Increase your stat' `either('go back to the previous page')`>><<feminism>><<run Engine.show()>><</button>>
Now when the player clicks on this button, he increases his stats and returns to the previous page.
<<run Engine.show()>> I added this code to make a forced refresh of the page and the variables themselves in the game that the player saw immediately.