- Apr 30, 2021
- 330
- 493
Happens because "i" gets redefined to something else and is not a Character.after I started the journey It's alway bug every time when mc talk.
Exception: Sayer i is not a function or string.
Then after i arrived a new village the bug isn't dissappear. It's almost alway come when the mc talk.
Here's Example
Full traceback:
File "game/dewsberry.rpy", line 3998, in script
i fee1 "(SNORE... SNORE...)"
File "E:\New folder\x64\2\Runaway Princess\RunawayPrincess-0.3-pc\renpy\ast.py", line 685, in execute
raise Exception("Sayer %s is not a function or string." % self.who.encode("utf-8"))
Exception: Sayer i is not a function or string.
sorry for my bad ENG hope you unterstand
I've start new game on 0.3
Code:
script.rpy
define i = Character("[povname]", image="player")
encounter.rpy
$ i = 0
Changed
define i = Character("[povname]", image="player")
to define mc = Character("[povname]", image="player")
Changed
i [emotion] "
to mc [emotion] "
Ran Check Script (Lint) to see if I missed anything and it found this instead
You don't have permission to view the spoiler content.
Log in or register now.
Hope this helps Mobum, also consider "i" tends to be shorthand for iteration and is commonly used in loops.