Search found 45 matches

by Misamor98
Wed Sep 06, 2023 8:23 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

Re: SetVariable issue, variable not found

Yep. As you can see on the original post, "isSelected" (or "Selected" as it was before I edit it) is given the value "False" and my BonusIngredients are declared after my "Ingredients" which work fine in the code. The code seems to only have a problem with the...
by Misamor98
Tue Sep 05, 2023 5:26 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

Re: SetVariable issue, variable not found

It does apparently loop through BonusIngredients objects, here's what the console returned:
Loopthrough.PNG
I did rename the field into "isSelected" as per your suggestion btw
by Misamor98
Mon Sep 04, 2023 10:54 am
Forum: Ren'Py Questions and Announcements
Topic: Transfering focus to the most foreground screen
Replies: 5
Views: 7542

Re: Transfering focus to the most foreground screen

Yep, I call the shop screen. Switching it to "show" is not an ideal option at it would make me modify a lot of stuff on the side. Why doesn't "modal" work? Is it because the "use" statement just ignores it? Looking at your code, it seems to me that the shop screen and t...
by Misamor98
Mon Sep 04, 2023 5:52 am
Forum: Ren'Py Questions and Announcements
Topic: How to update image favor screens over time [SOLVED]
Replies: 4
Views: 411

Re: How to update image favor screens over time

I'm guessing you're making a VN, so a basic $ char1_char2_favorlvl = 1 between 2 lines of code. I will just add that all of this seems like basic ren'py stuff. I would suggest you to go through the ren'py tutorial before continuing. Just lauch the "Tutorial" project that comes with the Ren...
by Misamor98
Mon Sep 04, 2023 4:13 am
Forum: Ren'Py Questions and Announcements
Topic: Transfering focus to the most foreground screen
Replies: 5
Views: 7542

Transfering focus to the most foreground screen

Hi, So I have a shop screen that allows the player to buy ingredients to make food. I have made an other recipe book screen, so the player knows what to buy, and I use the... "use" statement to make it appear. Problem is: when the recipe book screen is apparent, it's on top of the shop scr...
by Misamor98
Mon Sep 04, 2023 3:49 am
Forum: Ren'Py Questions and Announcements
Topic: How to update image favor screens over time [SOLVED]
Replies: 4
Views: 411

Re: How to update image favor screens over time

I don't get what your "char1_char2_favor" screen does, all I see is a button to hide the screen and show an other. If I were to make a screen showing different favor levels, I'd use the "add" statement and use string interpolation to update it accordingly, like so: default char1_...
by Misamor98
Mon Aug 28, 2023 6:00 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

Re: SetVariable issue, variable not found

Here's the new traceback: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 46, in script call $ renpy.call_screen("Overlay", _layer="screens") File "game/Scripts/FoodieToobs.rpy", line 140, in script call cal...
by Misamor98
Sun Aug 27, 2023 7:32 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

Re: SetVariable issue, variable not found

Thank you, but now ren'py can't find the field "Selected"... I probably have an error somewhere else in my code. Edit: After testing, it can't find any other field from my BonusIngredients object either I will add this: the function called on the "sensitive" argument in my imageb...
by Misamor98
Sun Aug 27, 2023 3:28 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

Re: SetVariable issue, variable not found

I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 46, in script call $ renpy.call_screen("Overlay", _layer="screens") File "game/Scripts/FoodieToobs.rpy", line 140, in script call call Temp_Cooking from _call...
by Misamor98
Sat Aug 26, 2023 4:09 am
Forum: Ren'Py Questions and Announcements
Topic: SetVariable issue, variable not found
Replies: 11
Views: 869

SetVariable issue, variable not found

Hi, As the title says, I can't make SetVariable find my variable. Here's my code: for Bonus in RecipesList[RecipeBookSelector][(RecipePageSelector * 3) + RecipePointerFinger].BonusIngredientsList: $ BonusIndex = 0 imagebutton: idle Image("gui/CookingMenu/ItemThumbnails/ID" + str(Bonus.Ingr...
by Misamor98
Thu Aug 10, 2023 8:36 am
Forum: Ren'Py Questions and Announcements
Topic: Use a transition with python equivalent of call screen
Replies: 5
Views: 3800

Re: Use a transition with python equivalent of call screen

... Try it like $ With(Dissolve(2.0))() # a pair of extra brackets at the end $ renpy.call_screen("Overlay", _layer="screens") https://www.renpy.org/doc/html/screen_actions.html#With Sorry for the late anwser, and thank you! This works. I don't understand why the pair of extra b...
by Misamor98
Wed Aug 02, 2023 1:54 pm
Forum: Ren'Py Questions and Announcements
Topic: Use a transition with python equivalent of call screen
Replies: 5
Views: 3800

Use a transition with python equivalent of call screen

Hi, My issue is simple, When I want to call a screen with a Dissolve transition I simply input "Call screen ScreenName with Dissolve(1.0), but at some point in my code I'm calling a screen using the python equivalent of call screen like so: $ renpy.call_screen("Overlay", _layer="...
by Misamor98
Thu Jun 08, 2023 3:17 pm
Forum: Ren'Py Questions and Announcements
Topic: Adjustable bar not updating in real-time.
Replies: 3
Views: 230

Re: Adjustable bar not updating in real-time.

It works perfectly, TYSM! :D thank you also for the tips on formatting strings.
But now I can't help but wonder, what is the purpose of ui.adjustment then?
by Misamor98
Thu Jun 08, 2023 3:21 am
Forum: Ren'Py Questions and Announcements
Topic: Adjustable bar not updating in real-time.
Replies: 3
Views: 230

Adjustable bar not updating in real-time.

Hi, I'm trying to make a bar with a slider that adjusts a value, where the value gets adjusted in real-time. The value does get adjusted according to the slider position, but not only does it not update while I'm in the middle of sliding the slider, I actually have to let go of it and right-click to...