Search found 165 matches
- Wed Apr 08, 2020 2:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Keyerror u'npc1' when generating multiple NPCS (solved)
- Replies: 8
- Views: 510
Re: Keyerror u'npc1' when generating multiple NPCS
From what I can see, there's a few problems. First the return shouldn't be inside the for loop. This will cause the loop to only run once before breaking away and returning. Second I don't know what the npclist is for, but what is happening there is you're putting one of the list items into the new_...
- Wed Apr 08, 2020 6:56 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character position and rollback [SOLVED]
- Replies: 4
- Views: 460
Re: Character position and rollback
Only thing I can think of is if you're writing it as "yalign 1" instead of "yalign 1.0"
Code: Select all
show person:
xalign 0.7 yalign 1.0
- Wed Apr 08, 2020 4:52 am
- Forum: Ren'Py Questions and Announcements
- Topic: Master volume
- Replies: 9
- Views: 702
Re: Master volume
For your mute button, you should have it remember the previous values like default save_vol = 0 def MuteAll(): def muteAll(): global save_vol if _preferences.get_volume('music') == 0: _preferences.set_volume('music', save_vol) else: save_vol = _preferences.get_volume('music') _preferences.set_volume...
- Wed Apr 08, 2020 4:36 am
- Forum: Ren'Py Questions and Announcements
- Topic: Character position and rollback [SOLVED]
- Replies: 4
- Views: 460
Re: Character position and rollback
Hello! I want to show my characters in different positions on the screen except for centre, left and right. For example in the centre but a little to the right, not in the far right. How can I do that? You can hit it with a transform. https://lemmasoft.renai.us/forums/viewtopic.php?t=24463#p302569 ...
- Fri Sep 21, 2018 6:57 am
- Forum: Ren'Py Questions and Announcements
- Topic: Disable sound of selected imagebuttons? [SOLVED]
- Replies: 7
- Views: 1066
Re: Disable sound of selected imagebuttons?
If you just want to get rid of the sound, shouldn't you just use the selected_ prefix? imagebutton auto "gui/window_%s.png" xpos 455 ypos y focus_mask True action [Preference('display', 'window'), SelectedIf(_preferences.fullscreen == False)] hover_sound "HOVER.wav" activate_soun...
- Tue Sep 11, 2018 4:38 am
- Forum: Ren'Py Questions and Announcements
- Topic: Custom caret in Name Input screen not animating
- Replies: 5
- Views: 1064
Re: Problem with custom caret in Name Input screen
Instead of having two separate images, try merging them,
Code: Select all
image mycaret:
"brush.png"
align (0.0, 0.9)
block:
yoffset -5
pause .4
yoffset 5
pause.4
repeat
- Sun Sep 09, 2018 6:41 am
- Forum: Ren'Py Questions and Announcements
- Topic: return to menu after script [solved]
- Replies: 2
- Views: 429
Re: return to menu after script
From your previous thread, I'm guessing you're using the Jump action, which for this won't work. You can't return from a jump. You should use Start("label_name") instead and put return at the end of the script, which will return you to the main menu.
- Sun Sep 09, 2018 6:34 am
- Forum: Ren'Py Questions and Announcements
- Topic: Readback Text History
- Replies: 6
- Views: 1251
Re: Readback Text History
If you mean, you want history and don't want rollback, then disable rollback with define config.rollback_enabled = False and add key 'rollback' action ShowMenu('history') to the say screen or make a new screen and add it to overlay screens or something. History screen should already exist in screens...
- Fri Sep 07, 2018 4:25 pm
- Forum: Ren'Py Questions and Announcements
- Topic: imagebutton help
- Replies: 2
- Views: 399
Re: imagebutton help
You're using screen language in a label. What you want to do is make a screen with the button in it and then show the screen, also define your variable with default instead of a python statement. default test_01 =True screen test(): if test_01: imagebutton: xpos 402 ypos 22 idle "images/localis...
- Thu Sep 06, 2018 1:37 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Imagebuttons in viewport disappear when ScrollValue added
- Replies: 2
- Views: 801
Re: Imagebuttons in viewport disappear when ScrollValue added
Try limiting the width of the vbar with xsize 20 or something.
- Thu Sep 06, 2018 1:17 pm
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED]ui.interact called with non-empty widget/layer stack Issue
- Replies: 3
- Views: 2108
Re: ui.interact called with non-empty widget/layer stack Issue
What do the variables n_1, n_2, n...etc contain?
Also in your imagebutton at the end, it should action Return()
Also in your imagebutton at the end, it should action Return()
- Thu Sep 06, 2018 12:11 pm
- Forum: Ren'Py Questions and Announcements
- Topic: How to return the index of an array in a for loop?
- Replies: 5
- Views: 1300
Re: How to return the index of an array in a for code]oop?
What you want is range and len
Code: Select all
for i in range(len(arrayTest)):
text arrayTest[i]
- Thu Sep 06, 2018 11:07 am
- Forum: Ren'Py Questions and Announcements
- Topic: Persistent Input Option (Preferences Screen)
- Replies: 3
- Views: 1113
Re: Persistent Input Option (Preferences Screen)
Would be better using FieldInputValue instead to directly change the persistent and and get rid of the pn variable.
- Wed Sep 05, 2018 2:28 pm
- Forum: Ren'Py Questions and Announcements
- Topic: Make viewport only show vertical scrollbar when needed?
- Replies: 2
- Views: 585
Re: Make viewport only show vertical scrollbar when needed?
Code: Select all
vbar value YScrollValue("viewport_test") unscrollable "hide"
- Wed Sep 05, 2018 8:05 am
- Forum: Ren'Py Questions and Announcements
- Topic: [SOLVED] Assign numbered variables
- Replies: 3
- Views: 519
Re: Assign numbered variables
You would probably be better using a dictionary. goofy = { "charm_1" : 0, "charm_2" : 0, "charm_3" : 0 } if cond_1: $ counter += 1 $ goofy["charm_" + str(counter)] = value or even a list would do, goofy_charm = [0, 0, 0] if cond_1: $ counter += 1 $ goofy_charm...