Search found 612 matches

by wyverngem
Thu Jan 16, 2020 2:44 am
Forum: Ren'Py Questions and Announcements
Topic: Character speaks based on a variable?
Replies: 4
Views: 292

Re: Character speaks based on a variable?

What is a "code object"? I wrote it as a string and it worked fine. Thank you.
by wyverngem
Thu Jan 16, 2020 2:11 am
Forum: Ren'Py Questions and Announcements
Topic: Character speaks based on a variable?
Replies: 4
Views: 292

Re: Character speaks based on a variable?

I tried writing a condition, but I don't think I'm doing it right. The error is below. I'm simply trying to add a condition to the Character Object and using python to check if the person is in the party. define party_list = [] init python: global party_list def inparty(name): if name in party_list:...
by wyverngem
Thu Jan 16, 2020 1:55 am
Forum: Ren'Py Questions and Announcements
Topic: Character speaks based on a variable?
Replies: 4
Views: 292

Character speaks based on a variable?

Question: Can I make a character have dialogue based on a variable? Such as a True or False or even if they are in a list of names? For example you have a party made up of different people. You have your main character and they can bring two people with them out of five in the game. I don't want to ...
by wyverngem
Thu Jan 16, 2020 12:48 am
Forum: Ren'Py Cookbook
Topic: Accessibility Options
Replies: 1
Views: 827

Re: Accessibility Options

I'm interested in seeing this. Can you post the raw scripts here in code?
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: 124

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

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

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

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

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

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

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

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

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

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

Re: Global variables

Do you mean for use in python blocks or just in the script themselves?