How to Use RenPy Notify? [SOLVED!]

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
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

How to Use RenPy Notify? [SOLVED!]

#1 Post by ArizaLuca » Sat Sep 15, 2018 9:13 am

Looking at the documentation didn't help me because I still don't know how to implement it in my game. So far I've implemented it like this:

Code: Select all

r "..."
    
renpy.notify "Hello!"
Which obviously isn't correct because once I reach that point it doesn't work; however if I put it in parentheses it gives me an expected statement. The documentation explained how to implement the screen, but not to actually make a message. I am very sorry for my noobishness.
Last edited by ArizaLuca on Sat Sep 15, 2018 9:27 am, edited 1 time in total.

DannX
Regular
Posts: 99
Joined: Mon Mar 12, 2018 11:15 am
Contact:

Re: How to Use RenPy Notify?

#2 Post by DannX » Sat Sep 15, 2018 9:18 am

Since that's a function, I'm pretty sure it should be like this:

Code: Select all

r "..."
    
$ renpy.notify("Hello!")
You must add a $ sign before function calls from the script. If you need more than one, you could also use python block:

Code: Select all

r "..."
python:
    renpy.notify("Hello!")
    # rest of the code below
Last edited by DannX on Sat Sep 15, 2018 9:22 am, edited 1 time in total.

User avatar
Andredron
Miko-Class Veteran
Posts: 535
Joined: Thu Dec 28, 2017 2:37 pm
Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
Location: Russia
Contact:

Re: How to Use RenPy Notify?

#3 Post by Andredron » Sat Sep 15, 2018 9:19 am

Launcher renpy >tutorial > screen
I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18

Help me to register in QQ International

Honest Critique

User avatar
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: How to Use RenPy Notify?

#4 Post by Per K Grok » Sat Sep 15, 2018 9:24 am

ArizaLuca wrote:
Sat Sep 15, 2018 9:13 am
Looking at the documentation didn't help me because I still don't know how to implement it in my game. So far I've implemented it like this:

Code: Select all

r "..."
    
renpy.notify "Hello!"
Which obviously isn't correct because once I reach that point it doesn't work; however if I put it in parentheses it gives me an expected statement. The documentation explained how to implement the screen, but not to actually make a message. I am very sorry for my noobishness.
It is a python function. You need to start with a $

$renpy.notify("Hello!")

User avatar
ArizaLuca
Veteran
Posts: 241
Joined: Tue Feb 20, 2018 12:59 pm
Completed: Through the Screen, Riddle Me This, Trust Fall, Phobias, Another Adventure
Projects: The Souls in the Seams, Fata Morgana, Minecraft: Story Mode - Behind the Scenes
Organization: Astral Autumn Games
Tumblr: astralautumngames
Deviantart: ArizaLuca
itch: astralautumngames
Contact:

Re: How to Use RenPy Notify?

#5 Post by ArizaLuca » Sat Sep 15, 2018 9:27 am

DannX wrote:
Sat Sep 15, 2018 9:18 am
Since that's a function, I'm pretty sure it should be like this:

Code: Select all

r "..."
    
$ renpy.notify("Hello!")
You must add a $ sign before function calls from the script. If you need more than one, you could also use python block:

Code: Select all

r "..."
python:
    renpy.notify("Hello!")
    # rest of the code below
You are a saint, that fixed it!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_