How to add extra text with necessary stats points

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
valoodx
Newbie
Posts: 6
Joined: Thu Mar 17, 2016 8:58 am
Deviantart: valoodx
Contact:

How to add extra text with necessary stats points

#1 Post by valoodx » Sun Mar 20, 2016 12:01 am

So people, i need a little help, right know i have no idea on how to add extra text if you have certain stats, im no asking about options im asking about extra text if you have the necessary stats for example:
example 1:
(the text from medium won't appear if you don't have high perception)
"although everything is the same for you,"
"you go to your daily life."
example 2:
(a text from medium will appear if you have high perception)
"although everything is the same for you,"
(new text appears)"With the exception of a bird flying over you.."
"you go to your daily life."
ill thanks the person who can help me on this dilemma.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How to add extra text with necessary stats points

#2 Post by xela » Sun Mar 20, 2016 6:06 am

valoodx wrote:i need a little help, right know i have no idea on how to add extra text if you have certain stats,
Consult the Doc in these cases! :)
Like what we're doing? Support us at:
Image

User avatar
valoodx
Newbie
Posts: 6
Joined: Thu Mar 17, 2016 8:58 am
Deviantart: valoodx
Contact:

Re: How to add extra text with necessary stats points

#3 Post by valoodx » Sun Mar 20, 2016 9:37 am

Xela i already checked there, but i couldn't find the answer for my question.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: How to add extra text with necessary stats points

#4 Post by xela » Sun Mar 20, 2016 9:44 am

Good, old Doc wrote:

Code: Select all

if bl_game:
    "Well, apart from that boy's love game she insisted on making."
so:

Code: Select all

if stat > 10:
    "I can see the future?"
Or am I misunderstanding your question?
Like what we're doing? Support us at:
Image

User avatar
valoodx
Newbie
Posts: 6
Joined: Thu Mar 17, 2016 8:58 am
Deviantart: valoodx
Contact:

Re: [SOLVED]How to add extra text with necessary stats point

#5 Post by valoodx » Sun Mar 20, 2016 1:04 pm

Omg Im such a fool ! i forgot to put a space below the text after if stat code! :D no wonder why it didn't worked thanks you Xela !

Post Reply

Who is online

Users browsing this forum: No registered users