///////// Text Ghost template ////////// Start/Stop/Switch Talk Dictionary ///////// copyright (C) 2002-2003 umeici. //**** First boot ************************************************************************* //---- OnFirstBoot event -------------------------------------------------------------- OnFirstBoot { //---- Initialize variables username = "ユーザーさん" stroke = 0 // For stroking judgment teachusername = 0 // For remembering username mikireflag = 0 // For cutting off communicateratio = 0 // イommunication start rate [%] bootcount = 0 // Number of startups "\1\s[10]\0\s[0]\w3・\w3・\w3・eh?\w9\w9\n\n\s[2]Wow!\w9\w9\w9\w9\n\n\s[30]I、\w8I、\w8I、\w9Sato、\w6I'm\w3・\w3・\w3・\e" } //**** Normal startup *********************************************************************** //---- OnBoot event ------------------------------------------------------------------- OnBoot { bootcount = bootcount + 1 if bootcount <= 2 { "\1\s[10]\0\s[0]\w3・\w3・\w3・\s[2]ahss!\w9\w9\n\n\s[30]H、\w9H、\w9Hello\w3・\w3・\w3・\w3\e" } elseif bootcount <= 9 { "\1\s[10]\0\s[0]\w3・\w3・\w3・\s[2]oh!\w9\w9\n\n\s[34]H、\w9H、\w9Hello\w3・\w3・\w3・\w3\e" } else { "\1\s[10]\0\s[32]H、\w5Hello\w3・\w3・\w3・\e" } } //---- A function to roughly check morning/afternoon/night, etc. ------------------------------------------- GetTimeSlot { if hour >= 4 && hour <= 11 { "朝" } elseif hour == 12 || hour == 13 { "昼" } elseif hour >= 14 && hour <= 17 { "日中" } elseif hour >= 18 && hour <= 21 { "夜" } else { "深夜" } } //**** End ***************************************************************************** //---- OnClose event ------------------------------------------------------------------ OnClose { if bootcount <= 2 { "\1\s[10]\0\s[2]Eh!\w9\w9\n\n\s[31]い、\w9are you going\w3・\w3・\w3・\w9\-\e" } elseif bootcount <= 9 { "\1\s[10]\0\s[8]い、\w9are you going\w3・\w3・\w3・\w9\-\e" } else { "\1\s[10]\0\s[32]Well、\w5please come again\w3・\w3・\w3・\-\e" } } //**** Return from minimized ***************************************************************** //---- OnWindowStateRestore event ----------------------------------------------------- OnWindowStateRestore { if bootcount <= 2 { "\0\s[30]\1\s[10]\e" } elseif bootcount <= 9 { "\0\s[35]\1\s[10]\e" } else { "\0\s[34]\1\s[10]\e" } } //**** Ghost/Shell Switching ********************************************************** //---- Switch to another ghost ----------------------------------------------------------- OnGhostChanging { if bootcount <= 2 { "\1\s[10]\0\s[2]Eh!\w9\w9\n\n\s[31]い、\w9are you going\w3・\w3・\w3・\w9\-\e" } elseif bootcount <= 9 { "\1\s[10]\0\s[8]い、\w9are you going\w3・\w3・\w3・\w9\-\e" } else { "\1\s[10]\0\s[32]ま、\w5come again\w3・\w3・\w3・\-\e" } } //---- Switching from another ghost --------------------------------------------------------- OnGhostChanged { OnBoot } //---- Shell change begins --------------------------------------------------------------- OnShellChanging { } //---- Shell change complete --------------------------------------------------------------- OnShellChanged { }