Search found 372 matches

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: 263

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: 470

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: 470

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...
by IrinaLazareva
Fri Jan 03, 2020 8:58 am
Forum: Ren'Py Questions and Announcements
Topic: Can I use "call" for multiple menu choices?
Replies: 11
Views: 470

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

philat wrote:
Fri Jan 03, 2020 4:16 am
You can also consider using the (undocumented) set feature.
By the way, this feature has now been documented
https://renpy.org/doc/html/menus.html#menu-set
by IrinaLazareva
Tue Dec 17, 2019 3:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Lower the volume of a sound effect?
Replies: 2
Views: 354

Re: Lower the volume of a sound effect?

You can create a separate channel init python: renpy.music.register_channel('mychanel') and then adjust the sound using the function: $ renpy.music.set_volume(.5, channel='mychanel') https://renpy.org/doc/html/audio.html#renpy.music.register_channel https://renpy.org/doc/html/audio.html#renpy.music....
by IrinaLazareva
Sun Dec 08, 2019 11:46 am
Forum: Ren'Py Questions and Announcements
Topic: Display text with specific position and style
Replies: 11
Views: 349

Re: Display text with specific position and style

The code works perfectly, but there is a black box background behind my text and I cannot find how to change the font style. Do you know how could I remove the black background and change the font style of the text ? "black box" refers to an frame element. If it is not needed, it can be removed. An...
by IrinaLazareva
Sun Dec 08, 2019 8:59 am
Forum: Ren'Py Questions and Announcements
Topic: Display text with specific position and style
Replies: 11
Views: 349

Re: Display text with specific position and style

define e = Character('Eileen', color="#c8ffc8") # Le jeu commence ici label start: screen text_example(): frame: xalign 0.5 ypos 50 text "Text tags {color=#c8ffc8}work{/color} in screens.": size 30 e "This is a test" return The screen is a function. It is written outside the label start (like all v...
by IrinaLazareva
Sun Dec 08, 2019 8:45 am
Forum: Ren'Py Questions and Announcements
Topic: Second question to confirm the first answer
Replies: 6
Views: 305

Re: Second question to confirm the first answer

And if the player answer "no" to the second question, then go back to the first question again . The menu object can have its own tags that can be jumped on: label start: 'begin' menu my_choice: e "What do you want to do?" "Stay": pass "Leave": menu: e "Are you sure you want to quit?" "Yes": return...
by IrinaLazareva
Mon Oct 21, 2019 7:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Random number generator with blacklisted numbers
Replies: 3
Views: 346

Re: Random number generator with blacklisted numbers

Bentley-Sama wrote:
Mon Oct 21, 2019 11:39 am
Someone entertained the idea of using random.sample() but I don't know where to start with that idea

Code: Select all

    $ random1, random2 = renpy.random.sample([1, 2, 3, 4], 2)
by IrinaLazareva
Sun Oct 06, 2019 9:04 am
Forum: Ren'Py Questions and Announcements
Topic: Interpolated text not displaying correctly, but only in one project
Replies: 4
Views: 359

Re: Interpolated text not displaying correctly, but only in one project

Imperf3kt wrote:
Sun Oct 06, 2019 7:38 am
Any idea why it won't work how I was previously doing it?
Honestly, I'm more surprised that this method once worked...
Anyway, I don't know. The code works. The rest doesn't matter. :)
by IrinaLazareva
Sat Oct 05, 2019 4:01 pm
Forum: Ren'Py Questions and Announcements
Topic: Copying the ingame text to the clipboard?
Replies: 2
Views: 603

Re: Copying the ingame text to the clipboard?

somewhere in the script: init python: import pygame.scrap def scrubs(what): pygame.scrap.put(pygame.SCRAP_TEXT, what.encode("utf-8")) renpy.notify("The text is now on the clipboard.") and then just add to the say () screen: screen say(who, what): ###<body of the screen> if what: textbutton _('Copy i...
by IrinaLazareva
Thu Oct 03, 2019 12:18 pm
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.3.3 Prereleased
Replies: 10
Views: 1205

Re: Ren'Py 7.3.3 Prereleased

I haven't been able to repeat this using the tutorial. It seems to take about the same amount of time that 7.0 took. It's possible this can be improved, but my thinking is I'd rather work on this in the GL rewrite than holding 7.3.3 up for it, since it doesn't seem to be a regression. I understand....
by IrinaLazareva
Tue Oct 01, 2019 8:26 am
Forum: Ren'Py Questions and Announcements
Topic: Ren'Py 7.3.3 Prereleased
Replies: 10
Views: 1205

Re: Ren'Py 7.3.3 Prereleased

It seems that imagemap are slowing down when hovered a little more than usual (although I may be wrong). Can be tested in a tutorial project.

v7.3.3.568
by IrinaLazareva
Fri Sep 27, 2019 4:12 pm
Forum: Ren'Py Questions and Announcements
Topic: Question about Renpy bars (colors)
Replies: 8
Views: 690

Re: Question about Renpy bars (colors)

Something like : Blue if it's below 20, green between 20 and 80, and red between 80 and 100 (for example) default elevel = 1 default ename = "Lucy" screen status(): vbox at topleft: text 'Name: [ename]' text 'Level: [elevel]' bar value StaticValue(elevel, 100) xpos 5 ysize 3 xmaximum 100 right_bar ...