Jump [variable]

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
dosa0733
Newbie
Posts: 5
Joined: Mon Sep 14, 2015 7:06 am
Contact:

Jump [variable]

#1 Post by dosa0733 »

Hey all I have a question is it possible to make a jump statement where the label name is a variable like:

Code: Select all

$ labelJump="label1"
jump [labelJump]

Zateinik
Newbie
Posts: 5
Joined: Tue Oct 27, 2015 2:24 am
Projects: Porting MGQ
Location: Uralmash Yekaterinburg
Contact:

Re: Jump [variable]

#2 Post by Zateinik »

use renpy.jump(label)

Code: Select all

$ labelJump="label1"
$ renpy.jump(labelJump)

Post Reply

Who is online

Users browsing this forum: No registered users