I'm facing a challenge which I can't seem to overcome. And I would appreciate any assistance which I could be offered.
The below code, by all my estimations, should be calling an imagemap with 7 options. And it is indeed calling the imagemap. And the first option works, however, none of the other 'buttons' are responding.
Did I miss a step in the code?
Code: Select all
label jumpr_menu:
python:
result = renpy.imagemap("images/girlmenu.png", "images/girlmenu.png" ,
[
(13, 8, 177, 178, "Girl1"),
(88, 242, 174, 176, "Girl2"),
(562, 243, 167, 170, "Girl3"),
(216, 12, 168, 172, "Girl4"),
(415, 12, 172, 172, "Girl5"),
(615, 13, 175, 169, "Girl6"),
(301, 305, 186, 43, "back"),
], focus="imagemap")
if result == "Girl1":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 1
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Sakura's Variant...{/b}{/color}"
return
elif result == "Girl2":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 2
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Emiko's Variant...{/b}{/color}"
return
elif result == "Girl3":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 3
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Mitsuru's Variant...{/b}{/color}"
return
elif result == "Girl4":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 4
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Mayu's Variant...{/b}{/color}"
return
elif result == "Girl5":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 5
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Ketsuya's Variant...{/b}{/color}"
return
elif result == "Girl6":
if KARMA >= 10:
$ KARMA = 0
$ GIRL = 6
jump JUMPR
else:
centered "{b}{color=8C0000}You have insufficient Karma to ♦JUMP♦ to Mayu's Variant...{/b}{/color}"
return
elif result == "back":
return