I can't for the life of me get a notification to appear.

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
Packmule
Newbie
Posts: 8
Joined: Fri Mar 02, 2018 11:37 am
Contact:

I can't for the life of me get a notification to appear.

#1 Post by Packmule »

I'm starting to think it's impossible.

Basically as the narrator goes a long and the player is clicking I want a notification to appear, but I can't make it happen. I've done so many combinations of code, but this is where i'm at ... nowhere.

Someone please help this baby.

Code: Select all

label runaroundswing:

            $ menu_flag = True

            "In the narrow passage, you're unable to get away from the guardian's swing, and its fists slam into you and knock you against the wall."

            Notify("You've fallen unconscious")

            "You fall unconscious."

            jump choice1_done

User avatar
Milkymalk
Miko-Class Veteran
Posts: 753
Joined: Wed Nov 23, 2011 5:30 pm
Completed: Don't Look (AGS game)
Projects: KANPEKI! ★Perfect Play★
Organization: Crappy White Wings
Location: Germany
Contact:

Re: I can't for the life of me get a notification to appear.

#2 Post by Milkymalk »

$ renpy.notify("You've fallen unconscious")

I'm not sure if Notify() is supposed to work at all as I can't find any documentation about it.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)

Packmule
Newbie
Posts: 8
Joined: Fri Mar 02, 2018 11:37 am
Contact:

Re: I can't for the life of me get a notification to appear.

#3 Post by Packmule »

Milkymalk wrote: Fri Mar 02, 2018 12:48 pm $ renpy.notify("You've fallen unconscious")

I'm not sure if Notify() is supposed to work at all as I can't find any documentation about it.
Thanks! That makes the notification appear!

I found not a single thing telling me that that's how to write it.

I've been trying to make a second style of notify screen, but I don't think ren'py allows that.

So I think I'll just be using a bunch of other screens that mimic notifications. Thank you again!

User avatar
xavimat
Eileen-Class Veteran
Posts: 1461
Joined: Sat Feb 25, 2012 8:45 pm
Completed: Yeshua, Jesus Life, Cops&Robbers
Projects: Fear&Love
Organization: Pilgrim Creations
Github: xavi-mat
itch: pilgrimcreations
Location: Spain
Discord: xavimat
Contact:

Re: I can't for the life of me get a notification to appear.

#4 Post by xavimat »

Notify() is an action used in screens.
renpy.notify() is a python function used in labels (with $) or in python blocks and functions.
https://www.renpy.org/doc/html/screen_a ... tml#Notify
https://www.renpy.org/doc/html/other.html#renpy.notify

Note that screens and labels are written with two different languages, because they are use for different purposes. For example, in labels we use "show" to show images, and in screens we use "add".

You can also make your own screen for the notifications. And probably it's better, to avoid mixing system notifications (like "screenshot saved") and the notifications that belong to the narrative itself (like "You loose consciousness")
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)

Post Reply

Who is online

Users browsing this forum: No registered users