Page 1 of 1

Valentine Princess (In Progress) NEEDS HELP WITH LABELS!

Posted: Sat Jan 12, 2008 7:18 am
by AngelicalLily
How do I give the User multiple choices? Can anyone show me any examples? ;A;

Re: Valentine Princess (In Progress) NEEDS HELP WITH LABELS!

Posted: Sat Jan 12, 2008 7:41 am
by AngelicalLily
Heeeeelp. ;-;

Re: Valentine Princess (In Progress) NEEDS HELP WITH LABELS!

Posted: Sat Jan 12, 2008 8:42 am
by Guest
If you are using Ren'Py, then you should read through the tutorial first. Assuming you have already dowloaded it (http://www.renpy.org/wiki/renpy/releases/6.5.0), go to the Ren'Py folder and run the "renpy.exe" file. Select "launch". The tutorial should teach you all you need to know in order to create a simple VN. If you still have questions about how to do something in Ren'Py, though, you can ask them in the Ren'Py subforum.

Oh, and good luck with your project! :)

Re: Valentine Princess (In Progress) NEEDS HELP WITH LABELS!

Posted: Sat Jan 12, 2008 10:50 am
by Jake
AngelicalLily wrote:How do I give the User multiple choices? Can anyone show me any examples? ;A;
There's a specific example here:

http://www.renpy.org/wiki/renpy/doc/tut ... With_Menus

The key is the 'menu' keyword. There are two main things to remember:

Firstly, you have to indent the choices and the things that happen because of those choices like that, because that's how Ren'Py tells which lines are menu options, and which lines are dependent on the menu options.

Secondly, you can put any Ren'Py script in there you like, so while that example doesn't use it, you can also jump to particular labels, e.g.:

Code: Select all

  menu:
    "Go to the beach":
      jump beach
    "Go to the park":
      jump park

label beach:

  "We had a fun day at the beach."

  jump end

label park:

  "We got lost in the park."

  jump end

label end:

  "Then we went home!"