Search found 614 matches
- Thu Jan 16, 2020 11:17 am
- Forum: Ren'Py Questions and Announcements
- Topic: For loops, list, and screens
- Replies: 4
- Views: 791
Re: For loops, list, and screens
EDIT: OKay silly me forgot to capitalize on the SetToAdd, however, I'm still getting an error. My code: default my_list = [] screen change_my_list: vbox: xalign 0.1 yalign 0.1 label my_list text_size 50 null height 20 label "Add to Set." textbutton "Apple" action AddToSet("m...
- Thu Jan 16, 2020 2:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: For loops, list, and screens
- Replies: 4
- Views: 791
For loops, list, and screens
Can someone please explain to me why sometimes a for loop works and sometimes it doesn't in screen language? I can easily display a list of strings by using a for loop, such as party members. However, if I try to change the list while showing the screen it doesn't update. What is the work around to ...
- Thu Jan 16, 2020 2:44 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character speaks based on a variable?
- Replies: 4
- Views: 572
Re: Character speaks based on a variable?
What is a "code object"? I wrote it as a string and it worked fine. Thank you.
- Thu Jan 16, 2020 2:11 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character speaks based on a variable?
- Replies: 4
- Views: 572
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:...
- Thu Jan 16, 2020 1:55 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character speaks based on a variable?
- Replies: 4
- Views: 572
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 ...
- Thu Jan 16, 2020 12:48 am
- Forum: Ren'Py Cookbook
- Topic: Accessibility Options
- Replies: 1
- Views: 1614
Re: Accessibility Options
I'm interested in seeing this. Can you post the raw scripts here in code?
- Wed Mar 27, 2019 3:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: config.auto_choice_delay causing TypeError
- Replies: 0
- Views: 243
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 ----------------------------------------...
- Wed Mar 13, 2019 10:59 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Inventory Window
- Replies: 1
- Views: 232
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 ...
- 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: 353
Re: Changing color of text for the notify function.
Find this in your screens code
See [message!tq] change it to [message] and it works for me again.
Code: Select all
screen notify(message):
zorder 100
style_prefix "notify"
frame at notify_appear:
text "[message!tq]"
timer 3.25 action Hide('notify')
- Wed Mar 13, 2019 10:48 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Global variables
- Replies: 7
- Views: 729
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...
- Mon Mar 11, 2019 6:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Global variables
- Replies: 7
- Views: 729
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...
- Mon Mar 11, 2019 6:16 pm
- Forum: Ren'Py Cookbook
- Topic: Random Chance Label Function
- Replies: 8
- Views: 3343
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 t...
- 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: 255
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...
- 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: 290
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.
- Sun Mar 10, 2019 4:33 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Lip synchronization with a sound file
- Replies: 3
- Views: 470
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.