Created by
Added
screens.rpy- Ignore whitespace
+ # textbutton "<" action [If(page_curr > page_min, [SetScreenVariable('page_curr', page_curr - 1)])]
+ # textbutton ">" action [If(page_curr < page_max, [SetScreenVariable('page_curr', page_curr + 1)])]
+ imagebutton auto "images/arrowl_%s.png" action [If(page_curr > page_min, [SetScreenVariable('page_curr', page_curr - 1)])]
+ imagebutton auto "images/place_" + place_items[page_curr][0] + "_%s.png" action [Hide("places"),place_items[page_curr][1]]
+ imagebutton auto "images/arrowr_%s.png" action [If(page_curr < page_max, [SetScreenVariable('page_curr', page_curr + 1)])]
Added
script.rpy- Ignore whitespace
+define place_items = [ ("park", [SetVariable("energy", energy - 10), Jump("place1")]), ("home", Jump("place2")) ]
+ $ place_items = add_place(place_items, "tunnel", [SetVariable("energy", energy - 20), Jump("place3")])