Code: Select all
label mapinitial:
$ location_count = 'Game Map'
if mapinit_count == 0:
scene gamemap
show testdef
a "I should head to school I guess."
a "hope this works."
hide testdef with dissolve
$ mapinit_count = 1
else:
show screen map
screen map: 12
$ location_count = 'Game Map'
if mapstart_count == 0: 14
add gamemap
imagebutton: 16
hover "map/home.png"
action ["I just left though.",Jump map] 18
xpos 8
ypos 154
imagebutton:
hover "map/store.png"
action ["Its closed from dogs eating all the food again.", Jump map]
xpos 105
ypos 416
imagebutton:
hover "map/school.png"
action ["Better get to school for thins",Hide ("map"), Jump ("schoolgyminit")]
xpos 643
ypos 169
elif mapstart_count == 1:
add gamemap
imagebutton:
hover "map/home.png"
action [Hide ("map"),Jump ("homeinit")]
xpos 8
ypos 154
imagebutton:
hover "map/store.png"
action NullAction()
xpos 105
ypos 416
imagebutton:
hover "map/school.png"
action NullAction()
xpos 643
ypos 169
After initialization, but before game start.
File "game/map.rpy", line 12, in prepare_screen
screen map:
File "game/map.rpy", line 12, in prepare
screen map:
File "game/map.rpy", line 14, in prepare
if mapstart_count == 0:
File "game/map.rpy", line 14, in prepare
if mapstart_count == 0:
File "game/map.rpy", line 16, in prepare
imagebutton:
File "game/map.rpy", line 16, in prepare
imagebutton:
SyntaxError: invalid syntax (game/map.rpy, line 18)
Any help would be appreciated greatly.