Search found 3 matches

by purplepanties
Sat Jan 07, 2023 5:20 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Getting the narrator to say a string
Replies: 3
Views: 382

Re: Getting the narrator to say a string

Thanks, that was enough to get it working. init -3 python: languages = { "None": { "name": "English", "font": "DejaVuSans.ttf", "translator": "PurplePanties" } } para = "\n{p}"[/code] def trancredits(): langdet = languag...
by purplepanties
Fri Dec 30, 2022 1:04 am
Forum: Ren'Py Questions and Announcements
Topic: [Solved] Getting the narrator to say a string
Replies: 3
Views: 382

[Solved] Getting the narrator to say a string

I've got a python function that builds up a few lines of text: init python: def trancredits(): trancreds = "Translations" for language in renpy.known_languages(): if language != "x_dummy_x": langdet = languages[language] trancreds += "[para]" + langdet["name"]...
by purplepanties
Tue Dec 06, 2022 5:12 am
Forum: Ren'Py Questions and Announcements
Topic: Weird error trying to make a subroutine
Replies: 2
Views: 287

Weird error trying to make a subroutine

I've got a bit of code like this that occurs in quite a few places: play sound "audio/charm.ogg" noloop volume 0.5 scene s1_enquire with flash_purple ...which works fine. So, I want to move it into a subroutine, so I don't have to keep making multiple updates if I want to mess with the sou...