Search found 42 matches

by abysswatcher
Sun May 17, 2020 9:00 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 665

Re: Showing countries' info by clicking on cities [python list and object/classes]

I guess you can't put the for loop inside the button. for q in TL_GUO_loc: if q.IsActive: for n in TL_GUO: if n.ID == q.ID: $ act = SetVariable('nation_info', n) button: xpos q.x ypos q.y text q.name color "#000000" action act I tried out this code and it got along better. I tried a varie...
by abysswatcher
Sun May 17, 2020 2:00 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 665

Re: Showing countries' info by clicking on cities [python list and object/classes]

For the way you have it currently set up, you could use nested loops to check the IDs against each other and then pass the nation object to a new screen. screen guo_map(): for q in TL_GUO_loc: if q.IsActive: button: xpos q.x ypos q.y text q.name color "#000000" for n in TL_GUO: if n.ID ==...
by abysswatcher
Sun May 17, 2020 1:44 am
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 665

Re: Showing countries' info by clicking on cities [python list and object/classes]

For the way you have it currently set up, you could use nested loops to check the IDs against each other and then pass the nation object to a new screen. screen guo_map(): for q in TL_GUO_loc: if q.IsActive: button: xpos q.x ypos q.y text q.name color "#000000" for n in TL_GUO: if n.ID ==...
by abysswatcher
Sat May 16, 2020 7:33 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Showing countries' info by clicking on cities [python list and object/classes]
Replies: 8
Views: 665

[solved]Showing countries' info by clicking on cities [python list and object/classes]

This is the code I have so far: init -10 python: class GuoPlace(object): def __init__(self, x, y, name, IsActive, country, ID, Port, Capital): self.x = x self.y = y self.name = name self.IsActive = IsActive self.country = country self.ID = ID self.Port = Port self.Capital = Capital class Nation(obje...
by abysswatcher
Wed May 06, 2020 10:08 pm
Forum: Ren'Py Questions and Announcements
Topic: Press any Key to continue implementation
Replies: 3
Views: 247

Re: Press any Key to continue implementation

So I decided I wanted to have a screen that would loop back to a nice default menu where you press a key to continue to the game menu. I'm adding this because this will become useful to me later on in development. My main question is how can I make an action occur such as go to the main menu screen...
by abysswatcher
Wed May 06, 2020 9:39 pm
Forum: Ren'Py Questions and Announcements
Topic: Press any Key to continue implementation
Replies: 3
Views: 247

Press any Key to continue implementation

So I decided I wanted to have a screen that would loop back to a nice default menu where you press a key to continue to the game menu. I'm adding this because this will become useful to me later on in development. My main question is how can I make an action occur such as go to the main menu screen ...
by abysswatcher
Sat May 02, 2020 8:50 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Making text buttons display text when hovered
Replies: 4
Views: 231

Re: Making text buttons display text when hovered

hell_oh_world wrote: Sat May 02, 2020 8:41 pm I've edited the code, had typos there because i was typing in mobile earlier... see my original post.
It worked! Hurrah! Thanks a lot!!!
by abysswatcher
Sat May 02, 2020 8:45 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Dynamic images for each word in a python dictionary (no result display)
Replies: 3
Views: 241

Re: Dynamic images for each word in a python dictionary (no result display)

Tried using the sensitive property? or the selected property? textbutton event: action [SetVariable("event_display_desc", event), SetVariable("event_display_bg", num)] selected event_display_desc == event and event_display_bg == num sensitive event_display_desc != event and even...
by abysswatcher
Sat May 02, 2020 8:39 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Making text buttons display text when hovered
Replies: 4
Views: 231

Re: Making text buttons display text when hovered

transform fader: on show: alpha 0.0 easein 0.25 alpha 1.0 on hide: easeout 0.25 alpha 0.0 screen sample: default button_is_hovered = False button: xysize (200, 30) action NullAction() hovered SetScreenVariable("button_is_hovered", True) hovered SetScreenVariable("button_is_hovered&qu...
by abysswatcher
Sat May 02, 2020 8:15 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Making text buttons display text when hovered
Replies: 4
Views: 231

[Solved] Making text buttons display text when hovered

Lately I have introduced two new game methods, an ironman type of one lifetime and a saveable try either routes type. At the start of the game I want people to be able to choose which type of gamemode they want to play in. I have designed a screen and implemented it so: screen gamemode(): tag menu m...
by abysswatcher
Sat May 02, 2020 8:06 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Dynamic images for each word in a python dictionary (no result display)
Replies: 3
Views: 241

[solved]Dynamic images for each word in a python dictionary (no result display)

In my game, I have a python dictionary where I unlock certain historical events as the character experiences or mentions them in-game. I also have a screen for this I made using the python glossary code I found in the cookbook and it works well. I wanted to add in a method where depending on the wor...
by abysswatcher
Mon Apr 27, 2020 9:08 pm
Forum: Creator Discussion
Topic: Adding Discord Rich Presence to Renpy Games
Replies: 3
Views: 10644

Re: Adding Discord Rich Presence to Renpy Games

Hey, I tried what you said and it totally worked! Thanks
Just curious would it be possible to implement a "spectator" option? and how?