Search found 22 matches

by Cazad0ra
Wed Jun 09, 2021 11:19 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Recognizing a random quote
Replies: 4
Views: 740

[Solved]Recognizing a random quote

Hi! I was looking the other day for a way to make a character say random quotes and I found this code, which works like a charm: menu: "What do you want to do?" "Talk to Nizara": show nizara talk $ quotes=random.choice(nizara_quotes) niz "[quotes]" jump intro default ni...
by Cazad0ra
Mon Jun 07, 2021 4:38 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Aligning text in a frame
Replies: 2
Views: 558

Re: Aligning text in a frame

Thanks! It hadn't occured to me that the issue could be the frame itself! Setting the size as x and y minimum did the trick!

Code: Select all

style achievementframe:
    background "/quest/Ach_frame.png"
    xminimum 682
    yminimum 144
by Cazad0ra
Mon Jun 07, 2021 3:58 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved]Aligning text in a frame
Replies: 2
Views: 558

[Solved]Aligning text in a frame

Hi! I'm having trouble trying to align a text to the center of a frame. I thought it would have an easy answer, but so far I cannot find what's wrong. xpos and ypos do position the text, so does using area, but xalign 0.5 doesn't affect the text at all, leaving it at the top left corner of the frame...
by Cazad0ra
Fri May 21, 2021 1:44 pm
Forum: Ren'Py Questions and Announcements
Topic: Reversing a list in a vbox
Replies: 5
Views: 696

Re: Reversing a list in a vbox

Alex wrote: Fri May 21, 2021 1:28 pm The other way you could do it would be not to append quests to a list but to insert them at index 0

Code: Select all

 $ list_name.insert(0, "quest_name")
Nevermind, I made a typo, this worked like a charm, thanks!!
by Cazad0ra
Fri May 21, 2021 1:41 pm
Forum: Ren'Py Questions and Announcements
Topic: Reversing a list in a vbox
Replies: 5
Views: 696

Re: Reversing a list in a vbox

The other way you could do it would be not to append quests to a list but to insert them at index 0 $ list_name.insert(0, "quest_name") Thanks! I tried it, but it gave me an error I somehow don't get when appending: I'm sorry, but an uncaught exception occurred. While running game code: F...
by Cazad0ra
Fri May 21, 2021 1:02 pm
Forum: Ren'Py Questions and Announcements
Topic: Reversing a list in a vbox
Replies: 5
Views: 696

Re: Reversing a list in a vbox

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 se...
by Cazad0ra
Fri May 21, 2021 11:58 am
Forum: Ren'Py Questions and Announcements
Topic: Reversing a list in a vbox
Replies: 5
Views: 696

Reversing a list in a vbox

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 ^^" Here's my code screen questinfo:...