#TRIGGER {距离攻打襄阳还有(%x)小时(%x)分(%x)秒} {timeHanziHour = %1
timeHanziMin = %2
timeHanziSec = %3
timeHanziHour=%replace( @timeHanziHour, 零, 0)
timeHanziHour=%replace( @timeHanziHour, 一, 1)
timeHanziHour=%replace( @timeHanziHour, 二, 2)
timeHanziHour=%replace( @timeHanziHour, 三, 3)
#if %len( @timeHanziMin)=6 {timeHanziMin=%replace( @timeHanziMin, 十, "")}
timeHanziMin=%replace( @timeHanziMin, 一, 1)
timeHanziMin=%replace( @timeHanziMin, 二, 2)
timeHanziMin=%replace( @timeHanziMin, 三, 3)
timeHanziMin=%replace( @timeHanziMin, 四, 4)
timeHanziMin=%replace( @timeHanziMin, 五, 5)
timeHanziMin=%replace( @timeHanziMin, 六, 6)
timeHanziMin=%replace( @timeHanziMin, 七, 7)
timeHanziMin=%replace( @timeHanziMin, 八, 8)
timeHanziMin=%replace( @timeHanziMin, 九, 9)
timeHanziMin=%replace( @timeHanziMin, 零, 0)
#if %begins( @timeHanziMin, 十) {#if %len( @timeHanziMin)=2 {timeHanziMin=%replace( @timeHanziMin, 十, 10)} {timeHanziMin=%replace( @timeHanziMin, 十, 1)}} {timeHanziMin=%replace( @timeHanziMin, 十, 0)}
#if %len( @timeHanziSec)=6 {timeHanziSec=%replace( @timeHanziSec, 十, "")}
timeHanziSec=%replace( @timeHanziSec, 一, 1)
timeHanziSec=%replace( @timeHanziSec, 二, 2)
timeHanziSec=%replace( @timeHanziSec, 三, 3)
timeHanziSec=%replace( @timeHanziSec, 四, 4)
timeHanziSec=%replace( @timeHanziSec, 五, 5)
timeHanziSec=%replace( @timeHanziSec, 六, 6)
timeHanziSec=%replace( @timeHanziSec, 七, 7)
timeHanziSec=%replace( @timeHanziSec, 八, 8)
timeHanziSec=%replace( @timeHanziSec, 九, 9)
timeHanziSec=%replace( @timeHanziSec, 零, 0)
#if %begins( @timeHanziSec, 十) {#if %len( @timeHanziSec)=2 {timeHanziSec=%replace( @timeHanziSec, 十, 10)} {timeHanziSec=%replace( @timeHanziSec, 十, 1)}} {timeHanziSec=%replace( @timeHanziSec, 十, 0)}
time}
#COND { #math timeHour @timeHanziHour+%6
#math timeMin @timeHanziMin+%7
#math timeSec @timeHanziSec+%8
#if %number( @timeSec)>=60 {
#math timeSec @timeSec-60
#math timeMin @timeMin+1
}
#if %number( @timeMin)>=60 {
#math timeMin @timeMin-60
#math timeHour @timeHour+1
}
#if %number( @timeHour)>=24 {#math timeHour @timeHour-24}
#show 开始保卫的现实时间:@timeHour点@timeMin分@timeSec}
#TRIGGER {距离攻打襄阳还有(%x)分(%x)秒} {tempStr = %1
#if %len( @tempStr)<=6 {#show 距离攻打襄阳还有零小时%1分%2秒}} |