Search found 17 matches

by bDunks
Tue Jun 25, 2019 7:01 pm
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]

https://www.renpy.org/doc/html/dialogue.html#Character The descriptions of what_prefix and what_suffix seems self-explanatory, tbh. Thanks for the link. After taking a look, it currently is not what I am looking for, nor does it resolve my current situation, since I am only doing this for inner tho...
by bDunks
Sat Jun 22, 2019 1:26 am
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} Question [UNSOLVED]

I tried it both in Sublime & Notepad++, unfortunately it does not work. I have tried that one before, or something very similar. Does that site work for Python, because I don't see it as an option in the pulldown? Or does it not matter? Appreciate your time & the links! :) Got it, it looks like thi...
by bDunks
Fri Jun 21, 2019 7:45 pm
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} Question [UNSOLVED]

I mean, the ACTUAL answer is you shouldn't be doing that anyway and should be using what_prefix and what_suffix instead... Can you please elaborate? I used to use Autohotkey to stylize text. e.g. {i}{color=#76e6f7}TEXT{/color}{/i} Later I found a piece of code like this init python: def male_though...
by bDunks
Fri Jun 21, 2019 7:44 pm
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} Question [UNSOLVED]

Oh, if it's like actual regex then this should be what you want: (jm "{mt})(.)+({/mt}") (Oh and if it complains about the backslash then use this one, but I think the first one should be fine probably) (jm "{mt})(.)+({\/mt}") Whenever I have to do regex stuff, I find RegExr really helpful (plus a r...
by bDunks
Thu Jun 20, 2019 8:15 am
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} Question [UNSOLVED]

What I do in these situations is bust out notepad and replace all instances of jm "{mt} Then either manually look for .{/mt}" and replace them all, or, if not shared by multiple characters, replace just that bit. Copy/paste back into your preferred editor and done. Yeah, I can do that in Sublime & ...
by bDunks
Thu Jun 20, 2019 3:11 am
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Re: Find & Replace {t}{/t} Question [UNSOLVED]

verysunshine wrote:
Tue Jun 18, 2019 4:22 pm
Can you use Find and Replace in Sublime text?
Not without the proper input for regular expressions, which I don't know.

I have to search for:
jm "{mt}But Leave This.{/mt}"

& replace the {mt}{/mt} but leave the dialog.
by bDunks
Mon Jun 03, 2019 4:49 am
Forum: Creator Discussion
Topic: Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]
Replies: 14
Views: 2072

Find & Replace {t}{/t} (RegEx) Question [Semi SOLVED]

Hello. :) I know this isn't exactly a RenPy specific question, but after searching, I cannot find what I need. So hopefully some one here knows how, if possible. I am using Sublime Text. In my script I have a bunch of dialog that goes, e.g. pc "{mt}dialog{/mt}" jm "{mt}dialog{/mt}" and I want to rep...
by bDunks
Sun Mar 24, 2019 3:02 am
Forum: Ren'Py Questions and Announcements
Topic: Auto Text/Dialog Box? [Solved - Thank You!]
Replies: 4
Views: 137

Re: Auto Text/Dialog Box? [Not Solved]

How about OK, I first want to make some notes on your code & if I am wrong, please correct me. Merely for educations purposes. :) window show b "Some text... {w=5.0} i should expand it instead.{nw=5.0}" #I will get to this window hide #Not sure the purpose of this as pause will hide the window. UPD...
by bDunks
Sat Mar 23, 2019 9:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Auto Text/Dialog Box? [Solved - Thank You!]
Replies: 4
Views: 137

Re: Auto Text/Dialog Box?

window hide $ renpy.pause (2.0, hard=True) window show m "Some text." or window show $ renpy.pause (5.0, hard=True) <This will keep the textbox appear. m "Some text." This code tells the game to wait x seconds before showing dialog. What I am trying to find is a way for the dialog to show... Then w...
by bDunks
Sat Mar 23, 2019 2:48 pm
Forum: Ren'Py Questions and Announcements
Topic: Auto Text/Dialog Box? [Solved - Thank You!]
Replies: 4
Views: 137

Auto Text/Dialog Box? [Solved - Thank You!]

Hello!
On occasion, I would simply like the dialog box to pop up with some text, then disappear on its own.
Is this possible?
I have tried the {nw} & even tried adding something like {nw=5.0}
But it disappears in a split second.
Thank you for your time. :)
by bDunks
Thu Mar 21, 2019 10:05 pm
Forum: Ren'Py Questions and Announcements
Topic: How do I add an outline to text? (SOLVED)
Replies: 10
Views: 5926

Re: How do I add an outline to text? (SOLVED)

put this in your script, where you define your characters etc. define gui.dialogue_text_outlines = [ (0, "#00000080", 2, 2) ] define gui.charaters_text_outlines = [ (0, "#00000080", 2, 2) ] It's actually define gui.name_text_outlines = [ (0, "#00000080", 2, 2) ] Not characters. :) Thanks for the in...
by bDunks
Wed Jan 09, 2019 8:52 am
Forum: Ren'Py Questions and Announcements
Topic: Play Audio THEN Show Dialog
Replies: 4
Views: 155

Re: Play Audio THEN Show Dialog

Imperf3kt wrote:
Wed Jan 09, 2019 12:40 am
I haven't used pause in a long time. It may be Pause instead (capital P)

If you wish to avoid using pause, you can achieve a similar result with the wait text tag

Code: Select all

    play sound "mysound.mp3"
    b "{w=1.0}What was that?" 
I had not seen that yet.
Thank you! :)
by bDunks
Tue Jan 08, 2019 11:56 pm
Forum: Ren'Py Questions and Announcements
Topic: Play Audio THEN Show Dialog
Replies: 4
Views: 155

Re: Play Audio THEN Show Dialog

Use the pause statement play sound "sound/monster.mp3" $pause(1) b "What was that?" Adjust the number in the pause statement to adjust the wait time in seconds. So, for example, two and a half seconds would be $pause(2,5) Oops! Forgot to put in the question how to do this without pause. Have edited...
by bDunks
Tue Jan 08, 2019 11:10 pm
Forum: Ren'Py Questions and Announcements
Topic: Play Audio THEN Show Dialog
Replies: 4
Views: 155

Play Audio THEN Show Dialog

Right now I am trying to play a sound, then have dialog show up after. Not both at the same time.

I would like it to go like this.

Code: Select all

voice "sound/monster.mp3" #plays scary sound

b "What was that?!!!" #When audio completes, b says this.
Is there a way to do this without pause x?
Thank you. :)
by bDunks
Tue Jan 08, 2019 5:06 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible To Add Video In This Manner?
Replies: 4
Views: 144

Re: Possible To Add Video In This Manner?

--- I am playing around with renpy.movie_cutscene, but no go... so far. Have you entered $ renpy.movie_cutscene("video/park.webm") in your script at the point where you want to play the video? If so what happens when you try to launch the game? Do you get any error message? I have no problem insert...