Search found 593 matches

by wyverngem
Wed Mar 27, 2019 3:59 pm
Forum: Ren'Py Questions and Announcements
Topic: config.auto_choice_delay causing TypeError
Replies: 0
Views: 77

config.auto_choice_delay causing TypeError

define config.auto_choice_delay = 1 Causes this: I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 2205, in script menu: TypeError: list indices must be integers, not ChoiceReturn -- Full Traceback --------------------------------------------------...
by wyverngem
Wed Mar 13, 2019 10:59 pm
Forum: Ren'Py Questions and Announcements
Topic: Inventory Window
Replies: 1
Views: 76

Re: Inventory Window

You can create your own screen, and on the quick menu screen create a key that opens in. You just add "key "K_i" action ShowMenu("inventory") and it will allow the player to access the menu from whenever the quick menu is shown. Which is pretty much the entire time. Look in the Cookbook section, the...
by wyverngem
Wed Mar 13, 2019 10:55 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Changing color of text for the notify function.
Replies: 2
Views: 94

Re: Changing color of text for the notify function.

Find this in your screens code

Code: Select all

screen notify(message):

    zorder 100
    style_prefix "notify"

    frame at notify_appear:
        text "[message!tq]"

    timer 3.25 action Hide('notify')
See [message!tq] change it to [message] and it works for me again.
by wyverngem
Wed Mar 13, 2019 10:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables
Replies: 7
Views: 241

Re: Global variables

No, it's one I just made up when I wrote the sample function, and returned it so that the game_greets variable I made knew what it would become. If you're brand new to it then I suggest sticking to the Renpy documentation and not worrying about Python script. At least until you got the hang of worki...
by wyverngem
Mon Mar 11, 2019 6:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables
Replies: 7
Views: 241

Re: Global variables

i am sorry that i have not written clearly at the first statement, i would like to know how to use on python blocks isobellesophia has a good starting point. If you want to know more about using variables with Python read this. https://www.renpy.org/doc/html/quickstart.html?highlight=flag#supportin...
by wyverngem
Mon Mar 11, 2019 6:16 pm
Forum: Ren'Py Cookbook
Topic: Random Chance Label Function
Replies: 8
Views: 738

Re: Random Chance Label Function

I've been trying the last hour or so to get the code to work, but I always get this error: File "game/script.rpy", line 16, in random_event while go_to_label in event_list: TypeError: argument of type 'NoneType' is not iterable Take away the event_list in your init block. You don't need to have tha...
by wyverngem
Sun Mar 10, 2019 4:37 pm
Forum: Ren'Py Questions and Announcements
Topic: How can simplify the withdrawal of the character?
Replies: 1
Views: 118

Re: How can simplify the withdrawal of the character?

LiveComposite isn't the way to go anymore. It's been updated and much easier to use layeredimages and just call the attributes. Here's the full documentation https://www.renpy.org/doc/html/layeredimage.html?highlight=layeredimage Look over that. You would have had to use a ConditionSwitch in the pas...
by wyverngem
Sun Mar 10, 2019 4:34 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I change the size of text in a transform?
Replies: 2
Views: 90

Re: Can I change the size of text in a transform?

I think you're looking for zoom 1.5, but don't quote me I haven't had a chance to test it out.
by wyverngem
Sun Mar 10, 2019 4:33 pm
Forum: Ren'Py Questions and Announcements
Topic: Lip synchronization with a sound file
Replies: 3
Views: 167

Re: Lip synchronization with a sound file

How realistic do you want the mouth animations? You could set up it's own ATL for a layeredimage and find a way to animate it with code. However, I think it would mean you going line by line to change the animations.
by wyverngem
Sun Mar 10, 2019 4:25 pm
Forum: Ren'Py Cookbook
Topic: Random Chance Label Function
Replies: 8
Views: 738

Re: Random Chance Label Function

One little update to the code. Added a function to sort the list you provide. I couldn't remember if Python thinks. 'choice1' is 'choice10' if 'choice10' is listed first in the list, because in some coding languages it doesn't match the whole case. init python: import random # Jumps to a random labe...
by wyverngem
Sun Mar 10, 2019 1:14 pm
Forum: Ren'Py Questions and Announcements
Topic: Global variables
Replies: 7
Views: 241

Re: Global variables

Do you mean for use in python blocks or just in the script themselves?
by wyverngem
Sun Mar 10, 2019 1:08 pm
Forum: Ren'Py Cookbook
Topic: Random Chance Label Function
Replies: 8
Views: 738

Re: Random Chance Label Function

Glad it's useful, guys. @nerupuff Are you using $ renpy.block_rollback() at the top of your choice labels? I haven't tested this out with renpy.fix_rollback() just yet, but if it works then it might be a better choice so your players can still roll back. Is there a way for the labels/events to not b...
by wyverngem
Sat Mar 09, 2019 10:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding alt to images on screens
Replies: 10
Views: 195

Re: Adding alt to images on screens

I’ve been busy working on another project, but the imagebutton will work. I’ve set them up before with action. I don’t see why not with just NullAction.

Thanks guys.
by wyverngem
Fri Mar 08, 2019 2:22 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding alt to images on screens
Replies: 10
Views: 195

Re: Adding alt to images on screens

philat wrote:
Fri Mar 08, 2019 3:44 am
...yeah I know what it does. The point is OP asked for a straight image not a button. I meant that they should try adding it to a style and not like an atl transform property directly in screen language.
What does that look like. Otherwise a null image button might be a temp too.
by wyverngem
Thu Mar 07, 2019 7:23 pm
Forum: Ren'Py Questions and Announcements
Topic: Adding alt to images on screens
Replies: 10
Views: 195

Adding alt to images on screens

I'm probably just not seeing this, but in Ren'py can you add "alt' to images on screens? I know it gets the error when I type this, but in a sense it would be like this; add "images/chibis/great.png" alt "Great!" I want the self-voicing to use "Great" when the images is shown to the player. I'm usin...