Page 1 of 1

extend can't use

Posted: Thu Jan 09, 2020 8:18 pm
by akizawa230
I write down like this

voice "../voice/359.mp3"
Pm "{color=#B17BB7}A>>B{/color}Are you there??"

voice "../voice/360.mp3"
extend "{color=#B17BB7}B>>A{/color}??What happen?"

voice "../voice/361.mp3"
extend "{color=#B17BB7}A>>B{/color}tell me about C"

I wanne text show like

A>>B balablabalbala
A>>B balablabalbala
B>>A balablabalbala
A>>B balablabalbala

but when I use characters “extend” it show something error like this
```
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script.rpy", line 2312, in script
## voice "../voice/245.mp3"
File "renpy/common/00library.rpy", line 148, in extend
who = renpy.eval_who(who)
SyntaxError: invalid syntax (<none>, line 1)

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

Full traceback:
File "game/script.rpy", line 2312, in script
## voice "../voice/245.mp3"
File "D:\RENPY\renpy-7.0.0-sdk\renpy\ast.py", line 690, in execute
renpy.exports.say(who, what, *args, **kwargs)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\exports.py", line 1322, in say
who(what, *args, **kwargs)
File "renpy/common/00library.rpy", line 148, in extend
who = renpy.eval_who(who)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\ast.py", line 568, in eval_who
return renpy.python.py_eval(who)
File "D:\RENPY\renpy-7.0.0-sdk\renpy\python.py", line 1958, in py_eval
code = py_compile(code, 'eval')
File "D:\RENPY\renpy-7.0.0-sdk\renpy\python.py", line 690, in py_compile
raise e
SyntaxError: invalid syntax (<none>, line 1)

Windows-7-6.1.7601-SP1
Ren'Py 7.2.1.457
lifeline 1.0
Fri Jan 10 13:11:57 2020
```
How do I do?

Re: extend can't use

Posted: Fri Jan 10, 2020 1:10 pm
by rames44
Not sure, but maybe it’s because you have the intervening “voice” command?

On thing you could try would be to have the second and third lines include the text from the previous line(s), but use the “fast” tag so the user doesn’t see it re-displaying.

https://www.renpy.org/doc/html/text.html#text-tag-fast

That would give the illusion of “extend”

Re: extend can't use

Posted: Sat Jan 11, 2020 1:55 am
by isobellesophia
The voice cannot reach out the extend line, most probably that is the reason the error to appear.