# ------------------------- #
# Sub Action
# アクション
# ------------------------- #
sub action {
$playmsg = "$playtime時間" if $playtime != 0;
$playmsg = "$playminute分" if $playtime == 0;
&checkname;
&error("まだ$playmsg経過していません") if $enter == 1;
&header;
&title;
&bodytop("ペットデータ($num代目)");
&petdata;
srand(time);
$rnd = int(rand(10) + 1);
$fa = $FORM{'mode'};
$visitcnt++;
if ($fa eq 'play') { $lastplay = time; }
if ($fa eq 'out') { $out = 1; $outdate = time; }
|
| ・ | 訪れたときに特別なイベントを発生させ、コマンドも特別なものを用意する |
| ・ | 訪れたときはいつもと同じで、コマンドを選んだ後の反応を、訪問回数によって分岐させる |
| ・ | ランキング表示に訪問回数を表示する。 |