Search found 399 matches

by IrinaLazareva
Mon Aug 03, 2020 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: indentation mismatch
Replies: 2
Views: 148

Re: indentation mismatch

try # The script of the game goes in this file. # Declare characters used by this game. The color argument colorizes the # name of the character. define oskar = Character("Oskar", color = "#6E0980") image oskar = "images/pj/Oscar.png" define clev = Character("Clev...
by IrinaLazareva
Sat Aug 01, 2020 8:58 am
Forum: Ren'Py Questions and Announcements
Topic: notify screen
Replies: 2
Views: 387

Re: notify screen

The purpose of the conversions flags !tq is described in doc.


P.S.You can eliminate the need to change the standard screen, for example, as follows:

Code: Select all

    $ coins = 1000
    $ renpy.notify("You\'ve gained {} coins".format(coins))
by IrinaLazareva
Sun Jul 26, 2020 4:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Error When Adding New Audio Channel
Replies: 4
Views: 430

Re: Error When Adding New Audio Channel

Oh! It worked when I put it into options. Do you mind explaining it? I thought init was something innate when you start running the code. If not that's okay, too, I'll just try and look it up for myself. I appreciate the assist tho! look this https://www.renpy.org/doc/html/python.html#init-python-s...
by IrinaLazareva
Sun Jul 26, 2020 11:03 am
Forum: Ren'Py Questions and Announcements
Topic: Error When Adding New Audio Channel
Replies: 4
Views: 430

Re: Error When Adding New Audio Channel

Code: Select all

init python:
    renpy.music.register_channel("nature", "sfx", loop=True)
by IrinaLazareva
Fri Jul 24, 2020 3:35 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I replace existing images?
Replies: 1
Views: 324

Re: How do I replace existing images?

doorknob22 wrote: Wed Jul 22, 2020 8:54 am I added an image named "image a" and compiled the game.
Images may have been archived. Check the files with .rpa extension in a game folder. If there are any, remove them.
by IrinaLazareva
Sun Jul 12, 2020 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Conditional side image
Replies: 5
Views: 642

Re: Conditional side image

in init: default main_character = 'J.M.' define mc = Character('main_character', dynamic=True, image='mc', color='#ffbfff', ) image side mc = 'some_picture.jpg' in screen say(): if not renpy.variant("small"): if who==main_character: add SideImage() xalign .65 yalign .8 else: add SideImage(...
by IrinaLazareva
Fri Jul 10, 2020 6:45 am
Forum: Ren'Py Questions and Announcements
Topic: Problem with changing the icon
Replies: 2
Views: 448

Re: Problem with changing the icon

look this viewtopic.php?f=8&t=59067
PyTom wrote: The window icon and the icon.ico file are two different things - one controls in-game, and one controls before the game is launched.
by IrinaLazareva
Thu Jul 02, 2020 2:22 am
Forum: Ren'Py Questions and Announcements
Topic: Returning to menu with fewer options without loop
Replies: 1
Views: 341

Re: Returning to menu with fewer options without loop

There are several ways. The easiest: default stepone = False default steptwo = False default stepthree = False label start: # menu act: 'These are the activities!' 'step one' if not stepone: $ stepone = True "Let's....whatever" jump act 'step two' if not steptwo: $ steptwo = True # jump ac...
by IrinaLazareva
Mon Jun 29, 2020 10:31 am
Forum: Ren'Py Questions and Announcements
Topic: Numbers problem
Replies: 3
Views: 401

Re: Numbers problem

$ money = 200 $ sayd = int(renpy.input("how much?", allow=['0','1','2','3','4','5','6','7','8','9']) or 0) ## at this step, you can enter a condition if you need it. Like: if sayd > 200: ... elif .. else). $ sum = money - sayd 'You say [sayd]? The rezult of operation is [sum]' https://doc...
by IrinaLazareva
Mon Mar 09, 2020 4:16 am
Forum: Ren'Py Questions and Announcements
Topic: "if" chose between 2 amount
Replies: 2
Views: 418

Re: "if" chose between 2 amount

Example with several code variants: label start: $ point = 10 if 0 < point < 30 or 60 < point < 100: "1-29 and 59-100" elif point >= 30 and point <= 60: "30-60" elif 200 > point >= 100: "100...199" elif point <= 0: "0 and less" else: "200 and more"
by IrinaLazareva
Wed Mar 04, 2020 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: How to add +1 to a variable every second
Replies: 4
Views: 528

Re: How to add +1 to a variable every second

default iron = 0 screen resources(): text "Iron: [iron]" at topleft timer 1.0 repeat True action SetVariable('iron', iron+1) label start: '?' show screen resources '!' The algorithm can be improved as you wish https://renpy.org/doc/html/screens.html#timer https://renpy.org/doc/html/screen...
by IrinaLazareva
Mon Jan 13, 2020 9:35 am
Forum: Ren'Py Questions and Announcements
Topic: AttributeError: ‘StoreModule’ object has no attribute ‘_history'
Replies: 6
Views: 647

Re: AttributeError: ‘StoreModule’ object has no attribute ‘_history”

It's hard to say without the code.
First, Check line 2363 of script.rpy (as well as the line above and the line below).
Also maybe you have variable with reserved name, for example, "extend"...
by IrinaLazareva
Mon Jan 06, 2020 12:45 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I use "call" for multiple menu choices?
Replies: 11
Views: 1388

Re: Can I use "call" for multiple menu choices?

I agree. I just wanted to mark an interesting psychological moment. When a function is not prescribed in the documentation, but you know about it, it becomes a pleasant feature (which doesn't show any flaws in it). But as soon as the function becomes documented, you start to make some demands to it ...
by IrinaLazareva
Sat Jan 04, 2020 8:22 am
Forum: Ren'Py Questions and Announcements
Topic: Can I use "call" for multiple menu choices?
Replies: 11
Views: 1388

Re: Can I use "call" for multiple menu choices?

Ah! Good to know. Hmm, Maybe this feature was documented in vain... I was just thinking. It has a significant disadvantage. Set() creates many values with unique names that cannot be repeated . That is, this feature cannot be used in menus if the menu has the same answer choices. Here is an example...