///////// Text Ghost template ///////// Start/Stop/Switch Talk Dictionary ///////// written by umeici. //**** 洲irst boot ************************************************************************* //---- OnFirstBoot event -------------------------------------------------------------- OnFirstBoot { //---- Initialize variables username = "ユーザーさん" stroke = 0 // For stroking judgment teachusername = 0 // For remembering the username mikireflag = 0 // For cutting off communicateratio = 10 // Communication start rate [%] //---- Check the Vanish count to determine whether it is truly the first time if reference0 == 0 { //---- Really the first time boot saFirstBoot } else { //---- 孝irst boot after reinstallation saFirstBoot } } saFirstBoot { "\t\0\s[900]\w9\w9\w9Let's start the story now。\w9\w9\n\n/ You are a cat。\w9\w9\1\s[500]\w9\w9\w9\w9\0\n\nThis black cat。\w9\w9\w9\n/ You are about to be summoned by a certain magician as a familiar。\w9\w9\w9\n/ Your role is to be the familiar of the summoner。\w9\w9Is that okay?\w9\w9\w9\w9\w9\n/ However、you have no choice\w9\w9\w9\w9\n\n\n/ Well、\w9\w9\w9let's get started。\w9\w9\w9\w9\c\s[17]\1\s[-1]\w9\w9\w9\w9\w9/ \0\s[01]…………\w9\w9%saNya\s[00]\n\nSummoning completed、summoning successful\w9\w9%saNya/ \nUm…\w9I need to give you a name…\w9\w9\w9\nSo from now on、you're Eve\w9。\w9\w9/ %saNya\s[10]I'm、\w5Sasara = Dual Dozen。\w8\w8\nNice to meet yous%aNya\w9\w9\e" } //**** Normal startup *********************************************************************** //---- OnBoot event ------------------------------------------------------------------- OnBoot { saBoot } //---- Function to roughly check whether it is morning/afternoon/night, etc. ------------------------------------------- GetTimeSlot { if hour >= 4 && hour <= 11 { "朝" } elseif hour == 12 || hour == 17 { "昼" } elseif hour >= 18 && hour <= 21 { "夜" } else { "夜" } } //**** End ***************************************************************************** saEnd { "\0\s[00]Shall we go home now?\w8\w8%saNya\w8\w8" } //---- OnClose event ------------------------------------------------------------------ OnClose { saEnd -- "\-\e" } //**** Restoring from minimized state ***************************************************************** //---- OnWindowStateRestore event ----------------------------------------------------- OnWindowStateRestore { "\0\s[20]The road we just walked was a bit narrow and dark。\w8\w8%saNya\e" } //**** Switching between ghosts/shells ********************************************************** //---- Switching to another ghost ----------------------------------------------------------- OnGhostChanging { if reference1 == "manual" { //---- Manual switching saEnd -- "\e" } else { //---- Automatic switching saEnd -- "\e" } } //---- Switch from another ghost --------------------------------------------------------- OnGhostChanged { saBoot } //---- Shell change begins --------------------------------------------------------------- OnShellChanging { "\0\s[10]I'm going to get changed。\w8\w8%saNya\e" } //---- Shell change complete --------------------------------------------------------------- OnShellChanged { "\0\s[10]I'm back。\w8\w8%saNya\e" } saBoot { //---- First, display both surfaces "\0\s[00]\1\s[500]" -- //---- Check the start time and change the greeting _timeslot = GetTimeSlot if _timeslot == "朝" { "\0\s[10]Good morning \w8Eve\w8\w8%saNya\e" } elseif _timeslot == "昼" { "%saNya\0\s[10]How are you?\w8\w8%saNyaNya\e" } else { "%saNya\0\s[10]How are you?\w8\w8%saNyaNya\e" } }