Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Hi! I'm trying to make a quest log screen, but I need to reverse the order of the quest list so that the newest one appears at the top of the list instead of the bottom. I tried box_reverse but that of course reversed the vbox buttons, but not the quest list ^^"
Remix wrote: ↑Fri May 21, 2021 12:38 pm
for i in range(end, start - 1, -1):
begins at end... steps using minus 1 (the 3rd parameter) and ends at one step before start - 1, aka start
Thanks! It did work for the biggest part, however, the moment the list has more items than "maxperpage", the newest item gets on top, but of the second page.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 125, in script
niz "Good evening!"
File "game/scripts/quest_screen.rpy", line 31, in execute
screen questinfo:
File "game/scripts/quest_screen.rpy", line 31, in execute
screen questinfo:
File "game/scripts/quest_screen.rpy", line 41, in execute
vbox:
File "game/scripts/quest_screen.rpy", line 43, in execute
for i in range(start, end + 1):
File "game/scripts/quest_screen.rpy", line 44, in execute
frame:
File "game/scripts/quest_screen.rpy", line 47, in execute
textbutton "[questlogi.name]":
AttributeError: 'unicode' object has no attribute 'name'