//--------------------------------------------------------- //Marion's main menu //--------------------------------------------------------- MainMenu{ "\0\s[0]What can I do for you?" -- AYATEMPLATE.MenuItem("I want to talk to you","Communicate",200) // -> communicate.dic -- AYATEMPLATE.MenuItem("I want to ask you a favor","UserConfig") -- AYATEMPLATE.MenuItem("Tell me something","Session0",150) // -> talk.dic -- if month == 2 && day == 14 { AYATEMPLATE.MenuItem("Valentine's Dayー","Valentine",150) } -- /* if radioMode == 0 { AYATEMPLATE.MenuItem("Turn on the radio","RadioSwich") } elseif radioMode == 1 { AYATEMPLATE.MenuItem("Turn off the radio","RadioSwich") } */ -- AYATEMPLATE.MenuItem("Turn off the radio","",200) } RadioSwich { if taskMode == 1 { "\0\s[0]You're working, right?\w8Tell A.J. if you're going to take a break。\e" return; } else { if radioMode == 0 { "\0\s[0]Let's listen to the news。\e" radioMode = 1; } else { "\0\s[0]Are you getting bored?\e" radioMode = 0; } } } UserConfig{ "\0\s[0]What would you like me to do?Just tell me。" -- AYATEMPLATE.MenuItem("My name is、","NameConfig",200) -- AYATEMPLATE.MenuItem("Talk more、","TalkIntervalConfig") -- AYATEMPLATE.MenuItem("I like it","",150) } NameConfig{ "\0\s[0]What's your name?\![open,inputbox,OnInputUserName,-1]\e" } OnInputUserName{ username = reference[0]; "\0\s[0]%(username)?\w8\n/ I'll call you that from now on\e" } TalkIntervalConfig{ if taskMode == 1 { "\0\s[0]You're at work, aren't you??\w8I'm not going to talk to you。\e" "\0\s[0]You're at work, aren't you??\w8Tell A.J. if you're going to take a break。\e" } else { "\0\s[0]もっと?" -- AYATEMPLATE.MenuItem("Noisy","TalkIntervalMax",200) -- AYATEMPLATE.MenuItem("Lively","TalkIntervalRich") -- AYATEMPLATE.MenuItem("Normal","TalkIntervalNormal") -- AYATEMPLATE.MenuItem("Quiet","TalkIntervalQuiet") } } TalkIntervalMax{ talkInterval = 45; aitalkinterval = talkInterval; "\0\s[0]It's ok、but I can't really tell you anything interesting?\e" } TalkIntervalRich{ talkInterval = 90; aitalkinterval = talkInterval "\0\s[0]Was it too quiet?\e" } TalkIntervalNormal{ talkInterval = 180; aitalkinterval = talkInterval "\0\s[0]Well、just be careful。\e" } TalkIntervalQuiet{ talkInterval = 300; aitalkinterval = talkInterval "\0\s[0]Was it a little too loud。\e" } //--------------------------------------------------------- //A.J. side menu //--------------------------------------------------------- AjMenu{ "\1\s[10]Please feel free to ask me anything。" -- if taskMode == 1 { AYATEMPLATE.MenuItem("I want to take a break","TaskModeOFF",200) } else { AYATEMPLATE.MenuItem("I want to concentrate","TaskModeON",200) } -- AYATEMPLATE.MenuItem("Let's chat","Session1") // -> talk.dic -- AYATEMPLATE.MenuItem("Nothing","",150) } TaskModeON{ taskMode = 1; radioMode = 0; aitalkinterval = 0; "\1\s[10]Understood。\w8\n/ I will refrain from disturbing you。\e" } TaskModeOFF{ taskMode = 0; aitalkinterval = talkInterval; "\1\s[10]Understood。\w8\n/ I'm happy to talk if you'd like。\e" } Valentine{ "\0\s[0]I have chocolate ready。\nLook、it's ready-made。\w8\n\n/ \1\s[10]I baked a chocolate cake。\w8\nLet's all eat it together。\n/ \0\s[0]It's actually a day for couples and lovers。\w8It would be boring without anything。\w8\nLet's do something small to get into the spirit。\e" }