Creator-Defined Statements documentation errors

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
Aoide
Regular
Posts: 31
Joined: Sat Jun 11, 2011 2:40 am
Contact:

Creator-Defined Statements documentation errors

#1 Post by Aoide »

I'm working on learning how to write creator-defined statements and noticed two errors on the Ren'py Documenation: Creator-Defined Statements page.

First, under the documentation for the lexer it says:
Matches any word, including keywords. Returns the
"Returns the" <-- returns the what?

Second, the Example code parses the "who" as a string, so it shows up as "e" instead of "Eileen" in a test program.

This:

Code: Select all

def execute_smartline(o):
        who, what = o
        renpy.say(who, what)
Should be changed to this:

Code: Select all

def execute_smartline(o):
        who, what = o
        renpy.say(eval(who), what)

Although doing that doesn't seem to trigger the right lint error. I get a NameError instead of the custom "Character not defined: %s" renpy error. I tried a few things, but nothing worked so maybe someone who understands Creator-Defined Statements better than I do can get both to work properly.

Thanks!

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Creator-Defined Statements documentation errors

#2 Post by PyTom »

Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users