// Load/Unload Events // Start/End // Replacement // Disappearance Events //--------------------------------------------------------- //Load/Unload Events //--------------------------------------------------------- //Occurs when Ghost starts and ends, SHIORI is reloaded, etc. //Ghost Load //Initialization of variables for each start is done here OnGhostLoad{ aitalkinterval = 90; talkInterval = 90; taskMode = 0; radioMode = 0; } //Unload ghost //愁elete variables at each end here OnGhostUnload{ //Delete variables used in the Nade reaction ERASEVAR('stroke') ERASEVAR('prev_reference4') ERASEVAR('nade_prev') //Final end time. Record this as it may be used later (optional) //(For reactions when not started for a long time, etc.) LastCloseTime = GETTIME } //--------------------------------------------------------- //Start/End //--------------------------------------------------------- //First boot (own ghost boot) OnFirstBoot{ //Initialize variables username = "お客" //First boot time. Record this as you may need it later (optional) FirstBootTime = GETTIME //Check the Vanish count to determine if it is truly the first time if reference[0] == 0 { "\1\s[10]Welcome。\w8\n/ \0\s[0]Oh、you're new here。\w8\n/ I'm Marion。This girl is my maid, A.J.。\w8\n/ I run this place、\w4a sort of salon。\w8\n\n/ You can use anything in this salon as you like。\w8\n/ The desks and chairs、\w4the books on the shelves, and the newspapers。\w8\n\n/ Unfortunately、this place isn't very popular。\w6When there are no other customers, please spend your time working or studying。\w8\n/ I'll have A.J. take care of you。\w8\n/ \1\s[10]Please feel free to ask me anything。\w8\e" } else { "\0\s[0]It's been a while。\w8\n\n/ \1\s[10]I'm glad to see you again。\w8\n/ \0\s[0]I'm sure we have a lot to talk about、but let's relax first。\e" } } //Start OnBoot{ "\1\s[10]Welcome。\w8\n/ \0\s[0]Oh、you're here。\w8\n/ A.J.、make me some tea。\w8\n/ \1\s[10]Understood、Lady Marion。\e" "\0\s[0]No need to say hello、just come up and close the door。\w8\n/ \1\s[10]I'll take care of your clothes。\e" } //End //Be sure to put \- at the end (if you don't write it, depending on the base software, you won't be able to exit) OnClose{ "\0\s[0]Come again。\w8\n/ \1\s[10]Take care。\w8\w8\e" "\0\s[0]Are you going out。\w8\n/ Don't come back injured。\w8\n/ \1\s[10]Take care。\w8\w8\-" } //--------------------------------------------------------- //Switch //--------------------------------------------------------- //Switch from another ghost (start your own ghost) //If omitted, OnBoot will be used instead OnGhostChanged{ //'' is used to enter the ghost's sakura.name if reference[0] == 'マリオン' { "\1\s[10]\0\s[0]I'm back。\e" } else { //EscapeAllTags is a Sakura script escape tag //It's safer to include this when displaying a balloon with text that you can't predict what it contains "\1\s[10]\0\s[0]You met %(EscapeAllTags(reference[0]))?\n/ Bring him over next time。\e" } } //Switch to another ghost (end your ghost) //終f omitted, OnClose will be used instead OnGhostChanging{ //Enter this ghost's sakura.name in '' if reference[0] == 'マリオン' { "\0\s[0]I'll be away for a bit。I'll be back soon\w8\w8\e" } elseif reference[0] == "ヴィイ" { "\0\s[0]人工知能の研究なら聞いたことあるがね。\w8\nコンピュータ・ネットワークとは面白いSFじゃないか。\w8\w8\e" } elseif reference[0] == "裏子" { "\0\s[0]あんたにも吸血鬼の知り合いがいたとはね。\w8\n世の中狭いもんだよ。\w8\w8\e" "\0\s[0]……\w8A.J.、胃薬を持たせてやりな。\w8\n/ \1\s[10]お持ちしマシた。\w8\n%(username)さん、お大事に。\w8\w8\e" "\0\s[0]あの店のカクテルは美味そうだ。\w8\n今度みやげに差し入れておくれ。\w8\w8\e" } else { "\0\s[0]Are you going out?\w8\nPlease give my best regards to %(EscapeAllTags(reference[0]))。\w8\w8\e" } } //--------------------------------------------------------- //Vanishing event (optional) //--------------------------------------------------------- //However, if OnVanishSelected is omitted, it will not be replaced by another event //Vanishing instruction OnVanishSelecting{ "\1\s[10]\0\s[0]Farewell?\e" } //Cancel vanishing (selected NO in the confirmation dialog) OnVanishCancel{ "\1\s[10]\0\s[0]What's that、do you feel bad about leaving behind anything?\e" } //Double-click to cancel vanishing OnVanishButtonHold{ "\1\s[10]\0\s[0]What's that、do you feel bad about leaving behind anything?\e" } //Vanish (select YES in the confirmation dialog) //After vanishing, another ghost will randomly take over OnVanishSelected{ "\1\s[10]\0\s[0]Take care。\w9\w9\w9\e" }