Search found 19 matches

by RoboKnight
Mon Mar 05, 2018 5:45 am
Forum: Ren'Py Questions and Announcements
Topic: Scrolling Credits Error
Replies: 1
Views: 298

Scrolling Credits Error

Hello, I'm trying to ass scrolling credits to the end of my game, but one of the lines prevents the project from even opening. This is where I got the code from: https://lemmasoft.renai.us/forums/viewtopic.php?f=51&t=22481 The line credits_s += "{size=60}" + c[1] + "\n " give...
by RoboKnight
Fri Feb 23, 2018 3:24 am
Forum: Ren'Py Questions and Announcements
Topic: Is There a Limit on the Number of If Statements?
Replies: 6
Views: 764

Re: Is There a Limit on the Number of If Statements?

Oh it works now! Thank you! My eyes definitely skipped over the "in" keyword. Thank you so much again for pointing that out for me!
by RoboKnight
Tue Feb 20, 2018 5:00 am
Forum: Ren'Py Questions and Announcements
Topic: Is There a Limit on the Number of If Statements?
Replies: 6
Views: 764

Re: Is There a Limit on the Number of If Statements?

Whether elif does or does not do anything doesn't really matter, in this case. Irena put square brackets around the Jade, Brad etc statement, which should fix the problem. When I was doing my own testing with your code, I too, found out that the problem was with that particular if statement. It mea...
by RoboKnight
Tue Feb 20, 2018 4:51 am
Forum: Ren'Py Questions and Announcements
Topic: Is There a Limit on the Number of If Statements?
Replies: 6
Views: 764

Re: Is There a Limit on the Number of If Statements?

try if player_name == "ARTHUR": "Ah, so perhaps you remember...But nevermind that." elif player_name == "": "You do not remember your name? Then you shall be granted one that may spark your memory..." $ player_name = "Arthur" elif player_name in [&q...
by RoboKnight
Tue Feb 20, 2018 3:31 am
Forum: Ren'Py Questions and Announcements
Topic: Is There a Limit on the Number of If Statements?
Replies: 6
Views: 764

Is There a Limit on the Number of If Statements?

So in the beginning of my game, I have several...safety barriers...in order to prevent people from naming themselves certain things (aka my friend input the N-word when he playtested my game for the first time) and some easter eggs if friends of mine input their (very specific) nicknames. I end up w...
by RoboKnight
Tue Feb 20, 2018 3:10 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Showing Characters?
Replies: 7
Views: 1028

Re: Showing Characters?

Oh, okay I see how this works now.
Thank you for taking the time for this!
by RoboKnight
Tue Feb 20, 2018 2:36 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Showing Characters?
Replies: 7
Views: 1028

Re: Showing Characters?

An unfortunate thing about this method is that for the first time a character shows up in a scene, you still have to use the show statement. I threw this in after the scene of the code I wrote earlier: show Bd Sprite Bd "hi" hide Bd Sprite show P Sprite P "also hi" hide P Sprite...
by RoboKnight
Tue Feb 20, 2018 2:02 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Using an If Statement to Test Character Name Input?
Replies: 2
Views: 535

Re: Using an If Statement to Test Character Name Input?

Yeah I realized my problem lay within having the $ where it shouldn't be. Also, is there a way to include a method like ToUpper (this is what I know it's called in the Visual Basic language at least) so that it changes the character input to all uppercase letters and then test it with "ARTHUR&q...
by RoboKnight
Tue Feb 20, 2018 1:55 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Showing Characters?
Replies: 7
Views: 1028

Re: Showing Characters?

There is! It's explained here: https://www.renpy.org/doc/html/dialogue.html#say-with-image-attributes Basically you define the character tag when you define the character, and once you've done that you can show images tagged with that character next to your dialogue. So with your example, if you de...
by RoboKnight
Tue Feb 20, 2018 1:41 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Using an If Statement to Test Character Name Input?
Replies: 2
Views: 535

(SOLVED) Using an If Statement to Test Character Name Input?

In the first lines of my game, I have the player name themself. Now, in the story, the player character is later revealed to be the reincarnation of King Arthur, so I want my narration to foreshadow a little if the player inputs "Arthur". This is the code I have so far (disregard the lack ...
by RoboKnight
Tue Feb 20, 2018 1:12 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Showing Characters?
Replies: 7
Views: 1028

Re: Showing Characters?

YES MY LORD AND SAVIOR

Thank you!! This helps so much!
by RoboKnight
Tue Feb 20, 2018 12:57 am
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Showing Characters?
Replies: 7
Views: 1028

(SOLVED) Showing Characters?

I really know this is a completely noobish question, but I can't find this anywhere. There has got to be a better way to show characters/change their expressions in a better way than show Player Happy #P is for Player P "I am happy." show NPC sad NPC "I am sad." show Player Conce...
by RoboKnight
Sun Feb 18, 2018 11:37 pm
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Aligning Names in Namebox
Replies: 7
Views: 1098

Re: Aligning Names in Namebox

You can always align the names to the namebox individually when you define the character. For instance: define b = Character("Bob", namebox_xalign=0.74) Just experiment and set the namebox_xalign value to whatever works best for the character's name. Oh I didn't know you could do that. Th...
by RoboKnight
Sun Feb 18, 2018 10:28 pm
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Aligning Names in Namebox
Replies: 7
Views: 1098

Re: Aligning Names in Namebox

Draziya wrote: Sun Feb 18, 2018 10:15 pm I'm a bit confused. Couldn't you then use xpos and ypos to move the now left aligned names until they fit into the Namebox?
If I do that, then both the Namebox and name move across the screen.
by RoboKnight
Sun Feb 18, 2018 10:03 pm
Forum: Ren'Py Questions and Announcements
Topic: (SOLVED) Aligning Names in Namebox
Replies: 7
Views: 1098

Re: Aligning Names in Namebox

If I change the Xalign to 0.0, then the names stick out of the Namebox (it is diamond shaped)