First commit.
This commit is contained in:
32
game/script.rpy
Normal file
32
game/script.rpy
Normal file
@@ -0,0 +1,32 @@
|
||||
define a = Character("Anita", color = "#aaaa00", callback = speaker("a"), image = "anita")
|
||||
|
||||
label start:
|
||||
play music ["zeropage_ambiphonic303chilloutmix.mp3",
|
||||
"zeropage_ambientdance.mp3",
|
||||
"zeropage_ambiose.mp3" ] fadeout 0.5 fadein 0.5
|
||||
|
||||
scene bg room
|
||||
show anita happy with dissolve
|
||||
|
||||
$ response = fetch_llm('Start the conversation.')[0]
|
||||
$ emotion, line = parse_emotion(response)
|
||||
show expression f'anita {emotion}'
|
||||
a "[line]"
|
||||
|
||||
while True:
|
||||
$ message = renpy.input(prompt = "What do you say to her?")
|
||||
$ response = fetch_llm(message)
|
||||
$ i = 0
|
||||
|
||||
while i < len(response):
|
||||
$ r = response[i].strip()
|
||||
|
||||
if r != '':
|
||||
$ emotion, line = parse_emotion(r)
|
||||
if emotion is not None:
|
||||
show expression f'anita {emotion}'
|
||||
a "[line]"
|
||||
|
||||
$ i += 1
|
||||
|
||||
return
|
||||
Reference in New Issue
Block a user