Search found 101 matches

by Belgerum
Thu Oct 19, 2017 1:09 am
Forum: Ren'Py Questions and Announcements
Topic: inline conditional text, "some text"if(this)"write this too"
Replies: 6
Views: 983

Re: inline conditional text, "some text"if(this)"write this too"

This should work:

Code: Select all

$ e ("This is " + ("a clear night" if (time=="night") else "a beautiful morning" if (time=="morning") else "a wonderful afternoon") + ", just like my childhood.")
by Belgerum
Thu Oct 19, 2017 12:54 am
Forum: Ren'Py Questions and Announcements
Topic: Need help with SetVariable [SOLVED]
Replies: 3
Views: 1358

Re: Need help with SetVariable

According to renpy documentation , SetVariable does not take conditionals. It only takes a variable name and a value to set. In this case, the desired action can be done with a function. First, define the function somewhere: init python: def add_money(): inventory.money += 50 if inventory.money > 90...
by Belgerum
Thu Oct 19, 2017 12:41 am
Forum: Ren'Py Questions and Announcements
Topic: Can't change speed of transitions [solved]
Replies: 4
Views: 1624

Re: Can't change speed of transitions

It's just a simple error of formatting and syntax. The correct code you're looking for is:

Code: Select all

show bg room
with Pixellate(2.0)
or alternately,

Code: Select all

show bg room with Pixellate(2)
Remember that code is case-sensitive.
by Belgerum
Wed Oct 18, 2017 6:03 pm
Forum: Ren'Py Questions and Announcements
Topic: How to make a character jump?
Replies: 7
Views: 1006

Re: How to make a character jump?

I would personally use code that's a tiny bit different, if you want to experiment a bit: This version uses easein and easeout to make the movement a little more smooth, and uses yoffset instead of ypos so that the transform can be used from any starting point, not just the bottom of the screen. tra...
by Belgerum
Mon Oct 16, 2017 10:32 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to Automate Text Transitions?
Replies: 4
Views: 1296

Re: Possible to Automate Text Transitions?

Exactly what I needed for the nvl lines, thanks. I still wish there were a fix that also added the transition to the "nvl clear" statements, but this still helps a lot.
by Belgerum
Mon Oct 16, 2017 6:55 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to Automate Text Transitions?
Replies: 4
Views: 1296

Re: Possible to Automate Text Transitions?

I'm not looking to have characters appear one-by-one. I want the entire nvl line to appear at once with the fade effect. The current code accomplishes this, and I'm not looking for a different visual effect. What I'm asking is if there is a way to make the current method less tedious to write and pr...
by Belgerum
Mon Oct 16, 2017 6:25 pm
Forum: Ren'Py Questions and Announcements
Topic: Set Variable To Something Complicated
Replies: 14
Views: 1571

Re: Set Variable To Something Complicated

In this situation, I might just use a label call instead of a function, and use a single label for drawing any number of cards, instead of two for different amounts. Perhaps you'd prefer code that looks something like this? init python: R_cards = ["Taree R", "Waki R", "Mikas...
by Belgerum
Mon Oct 16, 2017 5:19 pm
Forum: Ren'Py Questions and Announcements
Topic: Possible to Automate Text Transitions?
Replies: 4
Views: 1296

Possible to Automate Text Transitions?

Yo. I'm working on a VN project that uses NVL text displays that look like the following: nv "This is the first line." with Dissolve(0.4) nv "There are also two more lines." with Dissolve(0.4) nv "Sample Paragraph." with Dissolve(0.4) nvl clear with Dissolve(0.4) nv &qu...
by Belgerum
Thu Sep 28, 2017 10:24 pm
Forum: We are offering Paid Work
Topic: [Closed] Hiring Character, BG, and GUI Artists for "Tsun Rising"
Replies: 2
Views: 1147

Re: Hiring Character, BG, and GUI Artists for "Tsun Rising" (paid)

Thank you to everyone who has applied thus far! I've already received a good number of applications for all three positions, and couldn't be happier to have such great talent to choose from! I've looked over every portfolio sent, even if I don't have time to respond to every one. Please understand! ...
by Belgerum
Sat Sep 23, 2017 10:06 pm
Forum: We are offering Paid Work
Topic: [Closed] Hiring Character, BG, and GUI Artists for "Tsun Rising"
Replies: 2
Views: 1147

[Closed] Hiring Character, BG, and GUI Artists for "Tsun Rising"

Applications closed on October 5th. Thank you to everyone who applied! I received a large number of applicants and am very satisfied with the pool of talent that I found. I will be contacting the artists I think will best fit this project in the next few days. --------------------------------------...
by Belgerum
Tue Aug 22, 2017 6:04 pm
Forum: Ren'Py Cookbook
Topic: [Tutorial] Making a Separate Content Patch
Replies: 7
Views: 19617

[Tutorial] Making a Separate Content Patch

Not sure if this will be of use to anyone really important, but since I programmed this myself for the sake of a project, I thought I'd share a simple, easy way to make a Ren'Py game with a separately-distributable content patch. This allows you to add, remove, or change content in a game based on w...
by Belgerum
Mon Jun 26, 2017 7:26 pm
Forum: Ren'Py Questions and Announcements
Topic: Individual Character voice volume bar? [solved]
Replies: 2
Views: 785

Re: Individual Character voice volume bar?

Thanks a lot! I was thinking that could only be used as a screen action, and didn't try it. Working great now!
by Belgerum
Mon Jun 26, 2017 8:23 am
Forum: Ren'Py Questions and Announcements
Topic: Individual Character voice volume bar? [solved]
Replies: 2
Views: 785

Individual Character voice volume bar? [solved]

I'm trying to make a menu in which one can adjust the volume of individual character voices. I'm hoping I'll be able to use an adjustable bar, but that seems to not be working for whatever reason. Is there a certain variable I can put into the following code to have the bar adjust the volume level o...
by Belgerum
Thu Jan 26, 2017 2:38 pm
Forum: Ren'Py Questions and Announcements
Topic: 3D camera motion, Action Editor, Transform and Image Viewer
Replies: 102
Views: 800886

Re: 3D camera motion, Action Editor, Transform and Image Vie

The scene function clears all other images ON THE LAYER. Without the 3D camera, everything would normally take place on the Master layer, but with this code, you're using a number of others. you'll have to manually hide them all using code like: hide 01_john onlayer middle hide 01_lady onlayer middl...
by Belgerum
Fri Oct 07, 2016 11:14 pm
Forum: Ren'Py Questions and Announcements
Topic: 3D camera motion, Action Editor, Transform and Image Viewer
Replies: 102
Views: 800886

Re: 3D camera motion, Action Editor, Transform and Image Vie

It looks like one of the newer versions of renpy may have messed around with transformations, and might have bugged something in the 3D camera. I've tested the issue mentioned in this thread a number of times, but it only seems to happen while I'm using the 3D camera layers. Is there some way of get...