Information Screen

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
lovebby
Regular
Posts: 106
Joined: Mon Sep 09, 2013 12:24 am
Deviantart: lovebby
Contact:

Re: Information Screen

#16 Post by lovebby »

I'm just a bit curious, is there a limit to how many characters can be on this screen?

Meiting_98
Regular
Posts: 35
Joined: Fri Jul 12, 2013 1:25 pm
Projects: Neutralizing You
Organization: Ninja Vault
Location: Indonesia
Contact:

Re: Information Screen

#17 Post by Meiting_98 »

Hello,

I'd like to ask, can I make the character info unlockable after we've met the person? So at the beginning it'll be '???'

Thank You

User avatar
curry nochi rice
Miko-Class Veteran
Posts: 746
Joined: Sat Mar 27, 2010 3:12 am
Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
Organization: Circle Cosine
IRC Nick: Curry
Skype: after.curry.rice
itch: project-rothera
Contact:

Re: Information Screen

#18 Post by curry nochi rice »

Meiting_98 wrote:Hello,

I'd like to ask, can I make the character info unlockable after we've met the person? So at the beginning it'll be '???'

Thank You
if you followed the standard implementation oft his code. (I mean outright copy paste)
...
anyway, first we add a Boolean that by default value = False:

Code: Select all

$ angelica_introduced = False   
then if the character is introduced:

Code: Select all

$ angelica_introduced = True 
the character's own textbutton should appear if the Boolean returns True.

Code: Select all

 if angelica_introduced:
                textbutton "Angie" action SetVariable ("viewing", Angelica.name) xminimum 120 yminimum 120
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

Meiting_98
Regular
Posts: 35
Joined: Fri Jul 12, 2013 1:25 pm
Projects: Neutralizing You
Organization: Ninja Vault
Location: Indonesia
Contact:

Re: Information Screen

#19 Post by Meiting_98 »

Umm I mean, on the info screen, not on the namebox.
So I'd like to make it looks like this before the character is introduced:
screenshot3.png
And after the character has been introduced, her name will appear like this:
screenshot2.jpg
But I'd like to make the other characters' info be like that as well. The name 'Ethan' below her, appeared before he's even introduced (along with his info). I want so that before the character is introduced, his/her info on the info screen (name, blood type, etc) will only appeared as '???'

Thank You

User avatar
curry nochi rice
Miko-Class Veteran
Posts: 746
Joined: Sat Mar 27, 2010 3:12 am
Projects: Delicatessen, Whom to Notice, Start of Something, Love Sorcery
Organization: Circle Cosine
IRC Nick: Curry
Skype: after.curry.rice
itch: project-rothera
Contact:

Re: Information Screen

#20 Post by curry nochi rice »

there's one easy way out of that, you'll have to hardcode the character's default values to = "???" like:

Code: Select all

$ Stephanie.name = "???"
#same goes for everything else
then when the character is introduced:

Code: Select all

"So her name is Stephanie"
$ Stephanie.name = "Stephanie"
the textbutton code would look like:

Code: Select all

 textbutton Stephanie.name action SetVariable ("viewing", Stephanie.name) xminimum 120 yminimum 120
:lol: hope this helps
Personal (R-13) | Now at IndieDB | Circle Cosine's itch.io
I wanna be done.

Zalkyria
Regular
Posts: 36
Joined: Mon Jan 28, 2013 7:39 pm
Contact:

Re: Information Screen

#21 Post by Zalkyria »

curry nochi rice wrote:
Meiting_98 wrote:Hello,

I'd like to ask, can I make the character info unlockable after we've met the person? So at the beginning it'll be '???'

Thank You
if you followed the standard implementation oft his code. (I mean outright copy paste)
...
anyway, first we add a Boolean that by default value = False:

Code: Select all

$ angelica_introduced = False   
then if the character is introduced:

Code: Select all

$ angelica_introduced = True 
the character's own textbutton should appear if the Boolean returns True.

Code: Select all

 if angelica_introduced:
                textbutton "Angie" action SetVariable ("viewing", Angelica.name) xminimum 120 yminimum 120
Sorry I'm slightly confused here. Where would you put the stuff I need for it to be unlocked? Like I think I understand the textbutton goes under the displays everything section, but I'm confused on everything else. I apologize for troubling you, but could you explain in detail please?
Currently working on Dance With Me? - Danny Phantom Date Sim.
Link to our blog - http://dpdatesim.tumblr.com/
Currently looking for writers, and help with coding on the game. Please contact me or JaxxyLupei, on here or message on the blog.

Meiting_98
Regular
Posts: 35
Joined: Fri Jul 12, 2013 1:25 pm
Projects: Neutralizing You
Organization: Ninja Vault
Location: Indonesia
Contact:

Re: Information Screen

#22 Post by Meiting_98 »

Sorry I'm slightly confused here. Where would you put the stuff I need for it to be unlocked? Like I think I understand the textbutton goes under the displays everything section, but I'm confused on everything else. I apologize for troubling you, but could you explain in detail please?
I assume you're going to use the same function as me? To use the same function, in the infoscreen script, you should make all the characters info = ???
For example,

Code: Select all

$ old_man = char(
        name="???", 
        age="???",
        dateable=False
        )
And then, still in the infoscreen script, on the bottom of the script, put codes like this:

Code: Select all

vbox xpos 1.3 ypos 3.7:
   if name != 'Name: ???':
      text name size 19
After that, on your dialogue script, on where you would like the character to be introduced, put codes like this: (for example)

Code: Select all

old_man "My name is A."
$old_man.name = "A"
old man "I am 100 years old"
$old_man.age = "100"
Hope that helps ^^

Zalkyria
Regular
Posts: 36
Joined: Mon Jan 28, 2013 7:39 pm
Contact:

Re: Information Screen

#23 Post by Zalkyria »

Another question I have is there anyway to hide the infoscreen button on the bottom during the game? For example, I want it to be hidden during the beginning and it will appear the moment he meets the first girl.
Currently working on Dance With Me? - Danny Phantom Date Sim.
Link to our blog - http://dpdatesim.tumblr.com/
Currently looking for writers, and help with coding on the game. Please contact me or JaxxyLupei, on here or message on the blog.

celestialsuniverse
Newbie
Posts: 2
Joined: Fri Nov 23, 2018 2:29 pm
Tumblr: celestialsuniverse
Deviantart: celestialsuniverse
Soundcloud: Celestial's Universe
itch: celestialsuniverse
Contact:

Re: Information Screen

#24 Post by celestialsuniverse »

I'm unable to make the agility, strength, intelligence, health, etc. bars for my main character's page to show up. I made mainChar = True , but it still isn't showing up. Furthermore, the affection and friendship bars are staying on the page as well.

Post Reply

Who is online

Users browsing this forum: No registered users