I'd like to know how to jump to another script. In Python I would do:
Code: Select all
execfile("script_2.py")
Code: Select all
execfile("script_2.py")
Code: Select all
init:
import script_2
Code: Select all
label start:
python:
func1()
class.method2()
# etc
Code: Select all
jump ("script_2.rpy")
Code: Select all
File "game/script.rpy", line 347: expected 'name' not found.
jump ("script_2.rpy")
Both yes and no.rjayne wrote:Xela, Does that mean I can't link to other scripts, and have to compile everything within a single script?
Code: Select all
Jump(example)
Code: Select all
label example:
e "Hello!"
Labels serve as logical separator in Ren'Py. I am developing a game with over 50 000 lines of Python, Ren'Py script(s) and JSON/XML scripts. I never had any problems.rjayne wrote:Okay, it's just very messy, and considering that the tutorial it comes bundled with is separated over seperate scripts, I assumed it was easy to link/jump between scripts. For a very long game, keeping everything in one script seems a bit silly.
Code: Select all
label start:
# script
Users browsing this forum: No registered users