
$_Variable
{
{$_talkinterval=180}
{$lasthour={$hour}}
}

$_Constant
{
{$mikireflag=false}
{$kasanariflag=false}
{$mikirecount=0}
{$kasanaricount=0}
{$mikirecountmax=4}
{$kasanaricountmax=4}
{$mikiretalkedflag=false}
{$kasanaritalkedflag=false}
{$headmousemovecountmax=128}
{$facemousemovecountmax=128}
{$bustmousemovecountmax=128}
}


$_OnHourChange
{$TalkHourChange}

$_OnElapsedHourChange
{$TalkElapsedHourChange}

$OnMinuteChange; {$if ({$lasthour}!={$hour})}
{$_OnHourChange}{$lasthour={$hour}}

$OnMinuteChange; {$if ({$lastelapsedhour}!={$reference(0)})}
{$_OnElapsedHourChange}{$lastelapsedhour={$reference(0)}}

$OnMinuteChange
{$_OnTalk}

$OnSecondChange; {$if (({$mikireflag}) && ({$reference(1)}==0))}
{
{$mikirecount=0}
{$mikireflag=false}
{$mikiretalkedflag=false}
{$TalkMikireFukki}
}

$OnSecondChange; {$if (({$kasanariflag}) && ({$reference(2)}==0))}
{
{$kasanaricount=0}
{$kasanariflag=false}
{$kasanaritalkedflag=false}
}

$OnSecondChange; {$if (({$mikireflag}) && ({$mikiretalkedflag}==false))}
{
{$mikiretalkedflag=true}
{$TalkMikire}
}

$OnSecondChange; {$if (({$kasanariflag}) && ({$kasanaritalkedflag}==false))}
{
{$kasanaritalkedflag=true}
{$TalkKasanari}
}

$OnSecondChange
{
{$mikirecount+={$reference(1)}}
{$kasanaricount+={$reference(2)}}
{$mikireflag={$if ({$mikirecountmax}<={$mikirecount})}}
{$kasanariflag={$if ({$kasanaricountmax}<={$kasanaricount})}}
}

$OnMouseDoubleClick; {$if (({$reference(3)}==0) && ({$reference(4)}==Head))}
{$TalkHeadPick0}

$OnMouseDoubleClick; {$if (({$reference(3)}==0) && ({$reference(4)}==Face))}
{$TalkFacePick0}

$OnMouseDoubleClick; {$if (({$reference(3)}==0) && ({$reference(4)}==Bust))}
{$TalkBustPick0}

$OnMouseMove,{$if ({$headmousemovecountmax}<={$getmousemovecount(0,"Head")})}
{$resetmousemovecount(0,"Head")}{$TalkHeadStroke0}

$OnMouseMove,{$if ({$facemousemovecountmax}<={$getmousemovecount(0,"Face")})}
{$resetmousemovecount(0,"Face")}{$TalkFaceStroke0}

$OnMouseMove,{$if ({$bustmousemovecountmax}<={$getmousemovecount(0,"Bust")})}
{$resetmousemovecount(0,"Bust")}{$TalkBustStroke0}


$OnMouseDoubleClick; {$if ({$reference(3)}==0)}
{$TalkDoubleClick0}

$OnMouseDoubleClick; {$if ({$reference(3)}==1)}
{$TalkDoubleClick1}


$OnHeadlinesenseBegin
{$TalkHeadlinesenseBegin}

$OnHeadlinesense.OnFind; {$if ({$reference(2)}==First)}
{$TalkHeadlinesenseHasNext}

$OnHeadlinesense.OnFind; {$if ({$reference(2)}==Next)}
{$TalkHeadlinesenseHasNext}

$OnHeadlinesense.OnFind; {$if ({$reference(2)}==First and Last)}
{$TalkHeadlinesenseLast}

$OnHeadlinesense.OnFind; {$if ({$reference(2)}==Last)}
{$TalkHeadlinesenseLast}

$OnHeadlinesenseFailure
{$TalkHeadlinesenseFailure}

$OnHeadlinesenseComplete; {$if ({$reference(0)}==no update)}
{$TalkHeadlinesenseNoUpdate}

// Ghost/Shell Changi{ng,ed}

$OnGhostChanging
{$TalkGhostChanging}

$OnGhostChanged
{$TalkGhostChanged}

$OnShellChanging
{$TalkShellChanging}

$OnShellChanged
{$TalkShellChanged}

// Vanish

$OnVanishSelecting
{$TalkVanishSelecting}

$OnVanishSelected
{$TalkVanishSelected}

$OnVanishCancel
{$TalkVanishCanceled}

$OnVanished
{$TalkVanished}

// Drop

$OnURLDropping
{$TalkURLDropping}


$OnUpdateBegin
{$TalkUpdatedBegin}

$OnUpdateReady
{$TalkUpdateReady}

$OnUpdate.OnDownloadBegin
{$TalkUpdateDownloadBegin}

$OnUpdate.OnMD5CompareBegin
{$TalkUpdateMD5CompareBegin}

$OnUpdate.OnMD5CompareComplete
{$TalkUpdateMD5CompareComplete}

$OnUpdate.OnMD5CompareFailure
{$TalkUpdateMD5CompareFailure}

$OnUpdateComplete; {$if ({$reference(0)}==none)}
{$TalkUpdateNoupdate}

$OnUpdateComplete
{$TalkUpdateComplete}

$OnUpdateFailure
{$TalkUpdateFailure}

$OnBIFFBegin
{$TalkBIFFBegin}

$OnBIFFComplete; {$if ({$reference(0)}==0)}
{$TalkBIFFNoMail}

$OnBIFFComplete
{$TalkBIFFComplete}

OnBIFF2Complete
{$TalkBIFF2Complete}

$OnBIFFFailure
{$TalkBIFFFailure}


$OnSNTPBegin
{$TalkSNTPBegin}

$OnSNTPCompare; {$if ({$reference(3)}==0)}
{$TalkSNTPExact}

$OnSNTPCompare
{$TalkSNTPAdjust}

$OnSNTPFailure
{$TalkSNTPFailure}

$_SNTPStringA
{
{$getvalue({$reference(1)},0)}Äê
{$getvalue({$reference(1)},1)}ÔÂ
{$getvalue({$reference(1)},2)}ÈÕ
{$getvalue({$reference(1)},3)}•r
{$getvalue({$reference(1)},4)}·Ö
{$getvalue({$reference(1)},5)}Ãë
}


$OnInstallBegin
{$TalkInstallBegin}

$OnInstallComplete; {$if ({$reference(0)}==ghost)}
{$TalkInstallGhost}

$OnInstallComplete; {$if ({$reference(0)}==shell)}
{$TalkInstallShell}

$OnInstallComplete; {$if ({$reference(0)}==balloon)}
{$TalkInstallBalloon}

$OnInstallComplete; {$if ({$reference(0)}==plugin)}
{$TalkInstallPlugin}

$OnInstallFailure
{$TalkInstallFailure}

$OnInstallRefuse
{$TalkInstallRefuse}

// surface restore

$OnSurfaceRestore
{$TalkSurfaceRestore}	

$OnWallpaperChange
{$TalkWallpaperChange}

$OnSSTPBreak
{$TalkSSTPBreak}

$OnChoiceTimeout
{$TalkChoiceTimeout}

$OnUpdatedataCreating
{$TalkUpdatedataCreating}

$OnUpdatedataCreated
{$TalkUpdatedataCreated}

$OnSSTPBlacklisting
{$TalkSSTPBlacklisting}

$OnNetworkHeavy
{$TalkNetworkHeavy}

// boot/close/windowstate 

$OnBoot, {$if ({$hour}<5)}
{$TalkBootMidnight}

$OnBoot, {$if ({$hour}<8)}
{$TalkBootEarlyMorning}

$OnBoot, {$if ({$hour}<11)}
{$TalkBootMorning}

$OnBoot, {$if ({$hour}<16)}
{$TalkBootDaytime}

$OnBoot, {$if ({$hour}<19)}
{$TalkBootEvening}

$OnBoot
{$TalkBootNight}

$OnClose, {$if ({$hour}<5)}
{$TalkCloseMidNight}\-

$OnClose, {$if ({$hour}<8)}
{$TalkCloseEarlyMorning}\-

$OnClose, {$if ({$hour}<11)}
{$TalkCloseMorning}\-

$OnClose, {$if ({$hour}<16)}
{$TalkCloseDaytime}\-

$OnClose, {$if ({$hour}<19)}
{$TalkCloseEvening}\-

$OnClose
{$TalkCloseNight}\-

$OnFirstBoot
{$TalkFirstBoot}

$OnWindowStateMinimize
{$TalkWindowStateMinimize}

$OnWindowStateRestore
{$TalkWindowStateRestore}
