[Solved]Exception: Sayer david is not a function or string

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
rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

[Solved]Exception: Sayer david is not a function or string

#1 Post by rayminator »

in name.rpy

Code: Select all

define david = Character("David")
in script.rpy after sart

Code: Select all

david "Hello my name is David..."

this is what I'm getting it use to work before but know it's not working

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 14, in script
    david "Hello My name is David..."
Exception: Sayer david is not a function or string.

-- Full Traceback ------------------------------------------------------------

Full traceback:
  File "game/script.rpy", line 14, in script
    david "Hello My name is David..."
  File "R:\renpy\renpy-7.4.2-sdk/renpy/ast.py", line 692, in execute
    raise Exception("Sayer %s is not a function or string." % self.who.encode("utf-8"))
Exception: Sayer david is not a function or string.

Windows-10-10.0.19041
Ren'Py 7.4.6.1693
Progerialust Family 1.0
Fri Jul 30 13:44:05 2021
Last edited by rayminator on Fri Jul 30, 2021 2:37 pm, edited 1 time in total.

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Exception: Sayer david is not a function or string

#2 Post by rayminator »

never mind I found what it was

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot]