So one can write:
Code: Select all
$ persistent.got_ending_1 = True
Code: Select all
if persistent.got_ending_1 and persistent.got_ending_2:
# code
Hope this helps.
Code: Select all
$ persistent.got_ending_1 = True
Code: Select all
if persistent.got_ending_1 and persistent.got_ending_2:
# code
Code: Select all
label start:
"This is the first line of the script."
okay... three things:Guest (StealthGuardian?) wrote:Thanks for welcoming me to the forums. I'm still having problems though. This is what I've got:
init:
# Basic configuration.
$ config.screen_width = 800
$ config.screen_height = 600
$ config.window_title = 'Summer's Dream'
$ config.window_icon = 'icon32.png'
# File picker entry.
$ style.file_picker_entry.background = Frame('saveslot.png', 16, 16)
$ style.file_picker_entry.xpadding = 2
$ style.file_picker_entry.ypadding = 2
# Main menu window.
$ style.mm_menu_window.background = Frame('saveslot.png', 16, 16)
$ style.mm_menu_window.xpadding = 20
$ style.mm_menu_window.ypadding = 20
$ style.mm_menu_window.xpos = 0.5
$ style.mm_menu_window.xanchor = 'center'
$ style.mm_menu_window.ypos = 0.5
$ style.mm_menu_window.yanchor = 'top'
# Game menu window.
$ style.gm_nav_window.background = Frame('saveslot.png', 16, 16)
$ style.gm_nav_window.xpadding = 20
$ style.gm_nav_window.ypadding = 20
$ style.gm_nav_window.xpos = 0.5
$ style.gm_nav_window.xanchor = 'center'
# Colors of various labels.
$ style.yesno_label.color = (255, 255, 0, 255)
$ style.prefs_label.color = (255, 255, 0, 255)
# Windows
$ style.window.xmargin = 0
$ style.window.ymargin = 0
$ style.window.background = Frame('background.png', 16, 16)
$ style.window.xpadding = 10
$ style.window.ypadding = 5
# This indents the second line of text that has been said by a
# character. The goal is to push it past the opening quote (added
# when the Characters are defined), so it looks better.
$ style.say_dialogue.rest_indent = 9
# Transitions.
# $ fade = Fade(.5, 0, .5) # Fade to black and back.
$ dissolve = Dissolve(0.5)
$ slowdissolve = Dissolve(1.0)
label start:
$ renpy.music_start('Disengage-DwELL.mp3')
"Ah, finally, I get some relaxation. For the last three weeks straight,
I've done nothing but write for my romance novel."
"Unfortunately, these last two weeks were useless. For some reason, I
just couldn't get any emotion on paper."
"So now I'm going on a vacation to relax and hopefully get focused again.
My editor has paid for the whole thing. The hotel, food, the flight:
everything has been paid for."
"I've finally arrived. Scarlet City: Great food, awesome locations, and
well-known for romance. Now, where to start......."
menu menu_1:
"The Beach":
jump the_beach
"Downtown":
jump downtown
label the_beach:
"The beach is a great idea. I can relax and observe other people
for inspiration."
label downtown:
"Downtown is a pretty good start. I could figure out where the hotel
is and look around for a while."
I'm just trying to run a test on it, and I can't seem to get the program to work.
That looks like the culprit right there. The apostrophe on "Summer's" ends the string prematurely, and is what seems to be messing things up. What you can do is useStealthGuardian wrote:$ config.window_title = 'Summer's Dream'
nice thing to be reminded of... although it should've been obvious. (then again, I've missed things so obvious that people question my intelligence, vision, and other senses, so what am I saying?)PyTom wrote:...His first problem (which we worked out over IM) was that the .rpy file was not in the game directory.
Users browsing this forum: Bing [Bot]