If points are not recognized? PLS HELP ME!

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
tobirama
Newbie
Posts: 5
Joined: Mon Dec 18, 2017 12:16 pm
Contact:

If points are not recognized? PLS HELP ME!

#1 Post by tobirama »

Hello friends!

I`m having a big problem

Renpy doesnt seem to recognize my if points when they are higher then "1".
for example:

label metjames1: #################I do only have problems with if points of when they are located under a label...###############
if r_relationjames >= 3:
jump jamesfriend
elif r_relationjames <= 3:
scene bg house1day
show jam11 with dissolve
show jam13
hide jam11
j "What is it?"
menu: #####################################This menu part below does work , which makes it even harder for me to understand?#########
"Hello James":
$ r_relationjames =+ 1
$ renpy.notify('Relation improved')
jump complijames
"Lets fight!":
if r_strength >= 10:
jump fight1
if r_strength >=4:
jump fight2
else:
jump fight3


Now i have over 3 relation points with james but whenever i meet him the "jump jamesfriend" command doesnt work.
It only works when i put

if r_relationjames >= 1:
jump jamesfriend

WHAT AM I DOING WRONG?
pls help me :cry: :cry: :cry:

tobirama
Newbie
Posts: 5
Joined: Mon Dec 18, 2017 12:16 pm
Contact:

Re: If points are not recognized? PLS HELP ME!

#2 Post by tobirama »

This is in my screens, if thats important:

$ r_relationjames = 0
$ r_max = 100

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: If points are not recognized? PLS HELP ME!

#3 Post by Ocelot »

$ r_relationjames =+ 1 is basically

Code: Select all

                 Set
   This variable  |
         |        |  to
         |        | This value (+1 == 1)
         V        V  V
$ r_relationjames = +1
The add-to operator is actually +=
< < insert Rick Cook quote here > >

tobirama
Newbie
Posts: 5
Joined: Mon Dec 18, 2017 12:16 pm
Contact:

Re: If points are not recognized? PLS HELP ME!

#4 Post by tobirama »

Oh my god...

Thanks alot Ocelot!

You saved me!

Post Reply

Who is online

Users browsing this forum: AWizardWithWords