Search found 3 matches

by pukepup
Sun Oct 11, 2015 5:08 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Name not defined (if statement error)
Replies: 8
Views: 5223

Re: Name not defined (if statement error)

philat wrote:

Code: Select all

default deer = None

menu:
    "Blah":
        "blah blah"
    "Stay silent":
        $ deer = "silent"

if deer == "silent":
    "unlockable dialogue"
else:
    "regular dialogue"
This worked PERFECTLY! Thank you so much!
by pukepup
Sun Oct 11, 2015 12:26 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Name not defined (if statement error)
Replies: 8
Views: 5223

Re: Name not defined (if statement error)

Since you are using the most recent Renpy, don't put $deer = "silent" in an init block, doing that will sometimes cause problems with saving and rollback. Instead, before your start block, somewhere at the beginning of your script.rpy file, put: default deer = "silent" Doing tha...
by pukepup
Sat Oct 10, 2015 10:41 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Name not defined (if statement error)
Replies: 8
Views: 5223

[SOLVED] Name not defined (if statement error)

Hey, I've been working on this for a hellish amount of time and I am at the end of my rope. I'm new to python and Ren'Py coding and so please be easy on my and make it as simple as possible?? I don't now, I'm really frustrated,, Here's the error that I've been getting: I'm sorry, but an uncaught exc...