love meter error
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.
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.
- Remix
- Eileen-Class Veteran
- Posts: 1628
- Joined: Tue May 30, 2017 6:10 am
- Completed: None... yet (as I'm still looking for an artist)
- Projects: An un-named anime based trainer game
- Contact:
Re: love meter error
Code: Select all
default joaq = 10
default jr = 0
default p = 0
label start:
"... [joaq] ... [jr] ... [p] ..."
Frameworks & Scriptlets:
- Speech Bubble dialogue system
- Multiple Notify with ATL and history
- (WIP) Radial Masking - needs updating to use Shader
- 7.4 - Smooth Tinting using ATL and matrixcolor
- Several other repositories there too
Re: love meter error
I have this error, now :
File "game/script.rpy", line 35: Line is indented, but the preceding define statement statement does not expect a block. Please check this line's indentation.
default joaq = 10
File "game/script.rpy", line 35: Line is indented, but the preceding define statement statement does not expect a block. Please check this line's indentation.
default joaq = 10
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: love meter error
Re: love meter error
Yes I did
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: love meter error
It's working, thank you
How to know if the points are really add / remove ?
How to know if the points are really add / remove ?
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: love meter error
Good!
If you go back to Remix' post you will see that was the way they wrote it.
You could make a screen that shows the points.
A very simple screen could just be
Code: Select all
screen meters:
text str(joaq) ypos 20
text str(jr) ypos 45
text str(p) ypos 70
Re: love meter error
Where should I write that ? After "default joaq = 10" or when the character talk ?
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: love meter error
You could put your screen text at the end of your script.rpy
that is the
Code: Select all
screen meters:
text str(joaq) ypos 20
text str(jr) ypos 45
text str(p) ypos 70
Code: Select all
show screen meters
Re: love meter error
it works. The text appears. But, it always marks :
joaquim 0
0
even when you make a positive choice :/
and, is it possible to change the color ?
joaquim 0
0
even when you make a positive choice :/
and, is it possible to change the color ?
- Per K Grok
- Miko-Class Veteran
- Posts: 882
- Joined: Fri May 18, 2018 1:02 am
- Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
- itch: per-k-grok
- Location: Sverige
- Contact:
Re: love meter error
add
color "#F00"
or whatever color you prefer.
text str(joaq) color "#F00" ypos 20
"#F00" red
"#0F0" green
"#00F" blue
What is the code you used for the meters screen? The code I wrote would not write out 'joaquim'.
Wasn't the default value of 'joaq', 10?
Re: love meter error
I wrote
default joa = 10
and
show screen meters (because the meter didn't appear)
$ joa += 5
default joa = 10
and
show screen meters (because the meter didn't appear)
$ joa += 5
Who is online
Users browsing this forum: Ocelot