Search found 1628 matches

by Remix
Mon Dec 06, 2021 9:30 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Fill variable with value of another variable
Replies: 4
Views: 414

Re: Fill variable with value of another variable

day_book_returned = current_day

You might want to default it as zero though, then just adjust it to match current day when the book return event occurs.
by Remix
Thu Nov 25, 2021 8:49 am
Forum: Ren'Py Questions and Announcements
Topic: Mark All labels as seen
Replies: 3
Views: 574

Re: Mark All labels as seen

You might do better writing your own system to record which labels have been visited on a per-game basis... default visited_labels = [] init python: def label_callback(lbl, context): if ( lbl.startswith('_') or lbl.startswith("main_menu") or lbl in visited_labels): return store.visited_lab...
by Remix
Sat Nov 13, 2021 1:13 pm
Forum: Ren'Py Questions and Announcements
Topic: notify screen displaying variable name instead of variable text [SOLVED]]
Replies: 2
Views: 325

Re: notify screen displaying variable name instead of variable text

Notify does not interpolate itself, you would need to do that part yourself...

renpy.notify( renpy.substitute("Energy: [energy]") )
by Remix
Sat Nov 13, 2021 9:24 am
Forum: Ren'Py Questions and Announcements
Topic: [solved = alternative solution] Is it possible to read back from an image how much it has been rotated?
Replies: 6
Views: 668

Re: Is it possible to read back from an image how much it has been rotated?

Note too... the hour hand of a clock rotates twice in 24 hours, so (hour * 30) might be more suitable
by Remix
Thu Oct 21, 2021 5:30 am
Forum: Ren'Py Questions and Announcements
Topic: Best way to change screens and their text on android
Replies: 2
Views: 373

Re: Best way to change screens and their text on android

You duplicate the style with a declared variant to make alternatives...

Code: Select all

### Style base settings 
style newstyle:
    size 23

### Alternate settings for variants
style newstyle:
    variant "small"
    size 45
        
by Remix
Tue Sep 28, 2021 7:09 am
Forum: Ren'Py Questions and Announcements
Topic: PauseAudio only works as a button, not as statement [SOLVED]
Replies: 6
Views: 531

Re: PauseAudio only works as a button, not as statement

$ renpy.run( PauseAudio('music', value='toggle') ) is the proper way to run screen Actions within Python.
by Remix
Fri Sep 24, 2021 8:00 am
Forum: Ren'Py Questions and Announcements
Topic: I Can't Figure Out How To Finish This Code
Replies: 5
Views: 602

Re: I Can't Figure Out How To Finish This Code

If you use sets the captions are added when clicked... You can test length of those sets though and conditionally show choices... default rumi_set = set() default cruz_set = set() label chat(): menu chat_menu: "Talk to Rumi" if len(rumi_set) < 3: # Only show if chat is still available menu...
by Remix
Mon Sep 13, 2021 5:29 am
Forum: Ren'Py Questions and Announcements
Topic: How can I set a transition with renpy.hide_screen?
Replies: 2
Views: 354

Re: How can I set a transition with renpy.hide_screen?

Try

renpy.with_statement( transition_name )

just after the hide_screen

Transient screens might not work though (choice etc)
by Remix
Sat Sep 11, 2021 7:59 am
Forum: Ren'Py Questions and Announcements
Topic: Required parameter has no value (even tho it does)
Replies: 2
Views: 355

Re: Required parameter has no value (even tho it does)

If if face == 0: in label phone_start you do not hit a return so the script continues to the next label which uses who...
by Remix
Fri Sep 10, 2021 9:58 am
Forum: Ren'Py Questions and Announcements
Topic: Displaying probability of success/other dynamic variables in choice menu item
Replies: 10
Views: 880

Re: Displaying probability of success/other dynamic variables in choice menu item

You could pass the stat and target in as kwargs to the item itself then use a modified choice screen to evaluate the chance default strength = 18 default dexterity = 18 screen prob_choice(items): style_prefix "choice" vbox: for i in items: $ prob = ("" if not i.kwargs.get("s...
by Remix
Fri Sep 10, 2021 6:48 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Automated game walker for testing purpose
Replies: 4
Views: 692

Re: Automated game walker for testing purpose

You might be able to setup something using skip/auto and define config.auto_choice_delay = None If not None, this variable gives a number of seconds that Ren'Py will pause at an in-game menu before picking a random choice from that menu. We'd expect this variable to always be set to None in released...
by Remix
Thu Sep 09, 2021 8:19 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] trying to use easein transforms behind objects
Replies: 2
Views: 317

Re: trying to use easein transforms behind objects

I would avoid using align/xalign/yalign unless you really understand that they alter both the anchor and the position... Perhaps try separating them... transform slowfromleft: xanchor 1.0 ## start with anchor at right edge of bus xpos 0.0 ## position that anchor at the left side of screen ## move an...
by Remix
Sat Aug 21, 2021 11:35 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Draggable Screen stop working
Replies: 7
Views: 682

Re: Draggable Screen stop working

Are you trying to use those screens as the say screen?

If not, avoid using any id for the containers as that might be pulling in styles you do not want.
by Remix
Thu Aug 19, 2021 7:50 am
Forum: Ren'Py Questions and Announcements
Topic: Referencing a class member via a variable
Replies: 3
Views: 747

Re: Referencing a class member via a variable

... or reference the string inside the store scope...
togs wrote: Thu Aug 19, 2021 3:59 am
python:
fchoice = renpy.input( "What's your favorite fruit?", length = 8 )
... some stuff to strips spaces, standardize case, etc.

call fruitdata( getattr(store, fchoice) ) ### <<--- getattr
by Remix
Tue Aug 17, 2021 6:44 am
Forum: Ren'Py Questions and Announcements
Topic: Type out predetermined word when player types?
Replies: 4
Views: 780

Re: Type out predetermined word when player types?

We'd need to see the code you are trying and the error message...