Here is an example of my code:
e "ジョシュさんは車を買いました。"
menu:
"はい、彼を買いました。":
jump batsu1
"いいえ、山田さんの車を借りました。":
jump maru1
label batsu1:
voice "chigaimasu.mp3"
e "この答えは間違いです。"
e "聞いて下さい。"
show josh at rpos
with move
show josh:
zoom 1.0
linear 0.5 zoom 1.10
pause 6.5
linear 0.5 zoom 1.0
voice "sjdemo_josh1.mp3"
j "ああ。隣の山田くんで貸してくれたんだ。山田くんが東京まで運転してくれるんだ。"
hide josh
with dissolve
#"{b}Correct:{/b} %(correct_count)."
python:
incorrect_count = incorrect_count +1;
renpy.say(e, "{b}Incorrect: {/b} %(incorrect_count).")
#"{b}Incorrect: {/b} %(incorrect_count)."
jump q2
So far, I have had the program compiled correctly, but when prompted to show the count, no numbers are displayed. This is the code after I tried to change the call for incorrect count, and it causes the game to crash.
Ideally, I would like to display a count for incorrect/correct answers (dynamically updated based on user's choice) outside of the character's dialogue (like a counter at the top of the screen) and allow for output of this information to a text file/pdf for instructor use.
Thank you in advance for any suggestions you may have.
![Smile :)](./images/smilies/icon_smile.gif)