Search found 467 matches

by Remix
Wed Jan 17, 2018 9:49 pm
Forum: Ren'Py Questions and Announcements
Topic: Can I create a scene that will always be the first one to appear when the player enters the game?
Replies: 3
Views: 19

Re: Can I create a scene that will always be the first one to appear when the player enters the game?

label after_load:
... # some content... ( I guess a 'return' at the end should continue where the save was - never tried it though )
by Remix
Wed Jan 17, 2018 4:09 pm
Forum: Ren'Py Questions and Announcements
Topic: Lots of coding and VN related questions
Replies: 8
Views: 89

Re: Lots of coding and VN related questions

Ocelot wrote:
Wed Jan 17, 2018 4:00 pm
And also: Remix, it is nice to see some people can still write Perl even in Python ;)
I did consider throwing some Regex at it, then remembered the old adage:
Back in 1997, Jamie Zawinski wrote:Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
by Remix
Wed Jan 17, 2018 4:03 pm
Forum: Ren'Py Questions and Announcements
Topic: Lots of coding and VN related questions
Replies: 8
Views: 89

Re: Lots of coding and VN related questions

You can use python in Ren'py quite easily: init python: # in an init block (create functions etc here) def vooweeliify( s ): return "".join( [ s[k]+s[k+1].lower()*2 if len(s) > k+1 and s[k+1] == s[k] else s[k]+s[k].lower()*2 if s[k].lower() in 'aeiou' else s[k] for k in range( len( s ) ) ] ) label s...
by Remix
Wed Jan 17, 2018 3:53 pm
Forum: Ren'Py Questions and Announcements
Topic: script.rpy character color error?
Replies: 1
Views: 16

Re: script.rpy character color error?

I suggest actually typing the " double quotes rather than copy-paste. Yours is made of mixed pairs, including inverted quotation marks (which Ren'py does not support) Supported ones are " (double quote), ' (apostrophe) and ` (rarely used back tick). Start AND end of each string must use the same type.
by Remix
Wed Jan 17, 2018 12:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Lots of coding and VN related questions
Replies: 8
Views: 89

Re: Lots of coding and VN related questions

1) A snippet that repeats vowels thrice and quintuples any double letters... b = "".join( [ s[k]+s[k+1].lower()*2 if len(s) > k+1 and s[k+1] == s[k] else s[k]+s[k].lower()*2 if s[k].lower() in 'aeiou' else s[k] for k in range( len( s ) ) ] ) s = "Annie" >> Aaannnniiieee s = "Harry" >> Haaarrrry s = ...
by Remix
Wed Jan 17, 2018 10:03 am
Forum: Ren'Py Questions and Announcements
Topic: Hiding the dialogue box when opening a screen
Replies: 1
Views: 22

Re: Hiding the dialogue box when opening a screen

The simplest way is probably by using ShowMenu rather than Show textbutton "Show Inventory" action [ ShowMenu("inventory_screen") ] align (.95,.04) Note though, that your 'Close Inventory Afterwards' button will want to use "action [ Usual Actions, Return() ] " in order to automatically bring back t...
by Remix
Wed Jan 17, 2018 8:44 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Delay choice screen action until after hide transform (borken in 6.99.14 - nightly fix though)
Replies: 10
Views: 144

Re: [Solved] Delay choice screen action until after hide transform (borken in 6.99.14 - nightly fix though)

With the: for transform in button_transforms: transform.set_transform_event( mode ) ## and the rest... snippet, everything seems to be working as it did in 6.99.13. Hopefully find some time to test a bit further and see if 'on hide' events on container children can be ran without resorting to the me...
by Remix
Wed Jan 17, 2018 8:00 am
Forum: Ren'Py Questions and Announcements
Topic: Where can I change the letters font size?
Replies: 3
Views: 41

Re: Where can I change the letters font size?

For the bulk of text, try looking in gui.rpy and adjust: ## The size of normal dialogue text. define gui.text_size = 22 ## The size of character names. define gui.name_text_size = 28 ## The size of text in the game's user interface. define gui.interface_text_size = 24 ## The size of labels in the ga...
by Remix
Wed Jan 17, 2018 7:56 am
Forum: Ren'Py Questions and Announcements
Topic: Putting characters in front of/behind each other
Replies: 1
Views: 45

Re: Putting characters in front of/behind each other

When you use:

show char2

try:

show char2 behind char1

where char1 and char2 are the tag names (the first part of the name)

More info here
by Remix
Tue Jan 16, 2018 7:31 pm
Forum: Ren'Py Questions and Announcements
Topic: [solved]Detecting real-world date and time for use in-game
Replies: 8
Views: 230

Re: [solved]Detecting real-world date and time for use in-game

and day in [24,25,26,27]:

using or does not work like it works in speech, your 'or 25' basically just says 'or 25 == True' ...
by Remix
Mon Jan 15, 2018 7:21 pm
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Delay choice screen action until after hide transform (borken in 6.99.14 - nightly fix though)
Replies: 10
Views: 144

Re: [6.99.14 Unsolved] Delay choice screen action until after hide transform

Wonderful news, thanks Tom.
I'd been wracking my brain to think of a possible workaround and was getting nowhere. Will check to see what works and what doesn't when the next release/nightly comes out.
Thanks for the reply and for all your hard work.
by Remix
Mon Jan 15, 2018 11:09 am
Forum: Ren'Py Questions and Announcements
Topic: Is it possible lock/unlock replay with variables?
Replies: 4
Views: 82

Re: Is it possible lock/unlock replay with variables?

Any python conditional expression can return True or False, so you basically just want a test that evaluates True only when you want it locked. On PyTom's example, the function renpy.seen_label("event_1") is a utility that simply returns True or False if a named label has been seen. Personally (for ...
by Remix
Mon Jan 15, 2018 10:10 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Delay choice screen action until after hide transform (borken in 6.99.14 - nightly fix though)
Replies: 10
Views: 144

Re: [6.99.14 Unsolved] Delay choice screen action until after hide transform

Ok, so although the above works in 6.99.13 (which I figured had issues with the on hide) it does not work in 6.99.14 Once again, directly a choice is made, the screen and all the buttons disappears without giving time for any transforms to run. Has anyone got a choice screen 'on hide' transform runn...
by Remix
Sat Jan 13, 2018 11:34 am
Forum: Ren'Py Questions and Announcements
Topic: Cannot hide screen Say
Replies: 2
Views: 54

Re: Cannot hide screen Say

use Dialogue Window Management:

window hide
window show
window auto
by Remix
Sat Jan 13, 2018 10:41 am
Forum: Ren'Py Questions and Announcements
Topic: Converting prose to VN?
Replies: 2
Views: 119

Re: Converting prose to VN?

Without seeing the actual form of the prose it is difficult to actually forward many ideas... You could actually set the standard lexer to ignore quotations by the way, which would allow: char_name this is a sentence spoken by Alice's friend "Eileen" which would display fine interpreted the same as ...