You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
#CLASS ticking kill
|
|
#CLASS ticking open
|
|
|
|
#event {IAC SB GMCP comm.tick IAC SE}
|
|
{
|
|
#var ticks 30;
|
|
#tic TICKING
|
|
{
|
|
#math thirst {$GMCP[CHAR][STATUS][thirst] / 10 };
|
|
#math hunger {$GMCP[CHAR][STATUS][hunger] / 10 };
|
|
#if {$ticks > 0}
|
|
{
|
|
#math ticks {$ticks - 1}
|
|
};
|
|
#if {$ticks < 10}
|
|
{
|
|
#show {Tick:<139> $ticks <099>QUEST: <139>$quest_timer<099> Exp:<139> $GMCP[CHAR][STATUS][tnl] \t <099>T/H:[ $thirst / $hunger] Align:$align} 3
|
|
}
|
|
|
|
{
|
|
#show {Tick:<139> $ticks <099>QUEST: <139>$quest_timer<099> Exp:<139> $GMCP[CHAR][STATUS][tnl] \t <099>T/H:[ $thirst / $hunger ] Align:$align} 3
|
|
}
|
|
} {1}
|
|
}
|
|
|
|
#ACTION {^There are %d minutes remaining until you can go on another quest.$}
|
|
{
|
|
#IF {"%1"!="$quest_timer"}
|
|
{
|
|
#var quest_timer %1;
|
|
#untic quest_timer;
|
|
#tic quest_timer
|
|
{
|
|
#math quest_timer {$quest_timer - 1};
|
|
#if $quest_timer==0 {#untic quest_timer;#var quest_timer <129>READY<099>};
|
|
} {60}
|
|
}
|
|
}
|
|
|
|
#CLASS ticking close
|
|
|