Search found 20 matches
- Thu Mar 14, 2024 10:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Character affinity levels
- Replies: 2
- Views: 721
Re: Character affinity levels
HI and thanks for helping me, I received some help here to create this command, I'm still reading the python files. I plan to increase the affinity level after reaching the maximum, which is currently 20 points. Or the way to change the character's level number after completing an event. I think thi...
- Thu Mar 14, 2024 12:40 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Character affinity levels
- Replies: 2
- Views: 721
Character affinity levels
Hi again. I'm working on the character affinity system. I've seen some games implement affinity levels on the character list screen. And when one of them has the maximum affinity and the player passes a special event or mission, they level up (Changing that number on their screen). Example: 1_ You s...
- Sat Mar 09, 2024 10:36 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Thank you so much!
With this I can now consider this thread resolved.
Ps: I still need to add photo galleries and a days system. I hope it's not as complicated as this. lol
With this I can now consider this thread resolved.
Ps: I still need to add photo galleries and a days system. I hope it's not as complicated as this. lol
- Sat Mar 09, 2024 8:12 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Thank you. I understood most of the concepts. Hiding characters with "show" doesn't work. But I was able to add new characters in the other way that seemed more complicated to me. Questions: 1_ Can I alter the order of the character list? To place a new character between "cat" an...
- Sat Mar 09, 2024 1:26 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
To add text or picture, put "text" indented as a part of its parent element; and you can just set position of the element in pixels if you want: screen chars(): add "picture.png": pos (1200, 400) text "Description": pos (1400, 800) This worked with images. But for the ...
- Sat Mar 09, 2024 12:46 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Therefore, if you want to set an area for text and center it in that area, you can use frame . Set its size and position and background: screen chars(): frame: background None pos (1200, 400) xysize (720, 680) text "This is a text centered in frame both vertically and horizontally!": alig...
- Fri Mar 08, 2024 7:10 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
"align" for elements. In this case try "xalign 0.5". Sometimes (e.g. to center multi-line text, like a title string) "text_align" should be used. The texts are centralized, but the text box moves to different sides on each page. It does not remain at a fixed point on t...
- Fri Mar 08, 2024 5:43 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
It worked. I think this is the last question in this thread lol. Although I have not yet been able to test the variables to change the "desc" text due to lack of time. How can I add new images (not buttons) to this screen? I plan to add custom numbers.png for affinity level, not points. Ed...
- Fri Mar 08, 2024 2:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Ok. and how can I centralize the text in the box?
Like the one in the "desc" section for example.
Like the one in the "desc" section for example.
- Thu Mar 07, 2024 9:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Oh wait What commands should I execute if under any circumstances I wanted the description text of one of the characters to change or be updated on the list screen at some point in the game's progress? Example: old desc: Maria is 18 years old. new desc: Maria is 19 years old now. (Replacing the old ...
- Thu Mar 07, 2024 9:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Yeah, it's a question that might deserve a separate topic. I mean, if you don't know at which exactly point in your story this would happen, and want to put some effect there, it's one thing. But if you just want to show the character screen differently when "points" are maxed, use "...
- Thu Mar 07, 2024 6:51 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
Correct. Something like button: auto "right_%s.png" would use "right_idle.png" and "right_hover.png" as button background (normal and hover). define characters = [ {}, {}, ...] means it's a list (because the brackets in its definition are square), and it's a list of di...
- Thu Mar 07, 2024 6:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
... Problem with the affinity bars, they are modified by dragging as if they were volume bars in the game. You set "points": <some value> instead of 0 in the list "characters". If you want bars to be not modifiable by dragging, then maybe use StaticValue(): https://renpy.org/doc...
- Thu Mar 07, 2024 4:27 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
The only thing I added from that engine was a bar that would serve as the affinity level. Hey, I tested my code and found a few errors: * I forgot to put "$" before "_return = 0" * Return(None) actually returns True * bar value needs a different syntax: https://www.renpy.org/dev...
- Thu Mar 07, 2024 3:32 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Help with a character list screen [Solved]
- Replies: 28
- Views: 704
Re: Help with a character list screen
In general, it's not advisable to bake everything in the images, because it's harder to edit them in case you want to change something. Using simple "text" and "button" is easy and convenient, don't avoid to use them just because they require some learning. And alright, the main...