
$Reminder_Write
{
{$TempReminderCounter=0}
{$TempReminderCounterTwo=0}
{$ReminderInputListTemp=""}
{$ReminderInputHourTemp=""}
{$ReminderInputDayTemp=""}
{$Reminder_InputIntro}
{$Reminder_Check}
{$Reminder_Input}
}

// Reminder_Intro

$Reminder_InputIntro
{
\0\s[50]要记什么？\n\n
}
$Reminder_Input, {$if ({$TempReminderCounter}<{$ReminderCounter})}
{
{$TempReminderCounter++}
{$Reminder_Input} 
}

$Reminder_Input
{
{$ReminderCounter++}
\![open,inputbox,REMINDERINPUT,-1]
}

$OnUserInput, {$if (({$reference(0)}=="REMINDERINPUT") && ({$reference(1)}!=""))}
{
{$append($ReminderInputList,{$reference(1)})}
{$append($ReminderInputHour,{$hour})}
{$append($ReminderInputDay,{$daysfromfirstboot})}
{$Reminder_InputDone}
}

$OnUserInput, {$if ({$reference(0)}=="REMINDERINPUT")}
{
{$ReminderCounter--}
{$Reminder_InputDoneError}
}

$Reminder_InputDone
{
\w8\w8\0\s[0]\0\s[53]记下來了。\n\n
\1\w8\w8不会忘记吧？小麻雀\n\n
\0\w8\w8\s[60]你说呢?\n\n\e
}
$Reminder_InputDoneError
{
\w8\w8\0\s[42]没东西？\n\n
\1\w8\w8手滑了一下？\n\n\e
}

$Reminder_Check, {$if ({$ReminderCounter}!=0)}
{
{$Reminder_Checker}
}

$Reminder_Checker, {$if (({$TempReminderCounter}<{$ReminderCounter}) && (({$hour}>={$ReminderInputHour[{$TempReminderCounter}]}) && ({$daysfromfirstboot}>={$calc({$ReminderInputDay[{$TempReminderCounter}]}+2)})))}
{
{$TempReminderCounter++}
{$TempReminderCounterTwo++}
{$Reminder_Check}
}

$Reminder_Checker, {$if ({$TempReminderCounter}>={$ReminderCounter})}
{
{$TempReminderCounter=0}
{$ReminderCounter-={$TempReminderCounterTwo}}
{$ReminderInputList=""}
{$ReminderInputHour=""}
{$ReminderInputDay=""}
{$copy($ReminderInputListTemp,$ReminderInputList)}
{$copy($ReminderInputHourTemp,$ReminderInputHour)}
{$copy($ReminderInputDayTemp,$ReminderInputDay)}
}

$Reminder_Checker
{
{$append($ReminderInputListTemp,{$ReminderInputList[{$TempReminderCounter}]})}
{$append($ReminderInputHourTemp,{$ReminderInputHour[{$TempReminderCounter}]})}
{$append($ReminderInputDayTemp,{$ReminderInputDay[{$TempReminderCounter}]})}
{$TempReminderCounter++}
{$Reminder_Check}
}

$Reminder_Read
{
\0\s[41]恩。\n\n\n\n
\![*]\q[好,Reminder_OK]\_l[50,-]\![*]\q[不用了,Reminder_Cancel]
\e
}

$OnChoiceSelect,{$if ({$reference(0)}==Reminder_OK)}
{
{$Reminder_ReadSecondLevel}
}

$OnChoiceSelect,{$if ({$reference(0)}==Reminder_Cancel)}
{
\0\s[73]诶？\n\n\e
}
{
\0\s[74]好的?\n\n\e
}

$Reminder_ReadSecondLevel
{
{$TempReminderCounter=0}
{$TempReminderCounterTwo=0}
{$ReminderInputListTemp=""}
{$ReminderInputHourTemp=""}
{$ReminderInputDayTemp=""}
{$Reminder_OutputIntro}
{$Reminder_Check}
{$Reminder_Output}
}

$Reminder_OutputIntro
{
\0\s[41]要念给你听吗。\n\n
}
{
\0\s[53]记下来的事情有？\n\n
}

$Reminder_Output, {$if ({$TempReminderCounter}<{$ReminderCounter})}
{
\w8\0\s[44]{$calc({$TempReminderCounter}+1)}. {$ReminderInputList[{$TempReminderCounter}]}\n\n
{$TempReminderCounter++}
{$Reminder_Output}
}

$Reminder_Output
{
\w8\w8\0\s[40]\w4这些。\n\n\e
}
{
\w8\w8\0\s[41]就是这些。\n\n\e
}
