elsif ($FORM{'good'} =~ /$fa/) { &petnow($good_img{$fa},$good_msg{$fa}); $love++;$good++; if ($fa eq "feed") { $lastfeed = time } if ($fa eq 'play') { print "<tr>\n"; print "<td>\n"; &tabletop; &input('radio','mode','renev01',' checked','連続イベント01<br>'); &input('radio','mode','renev02','','連続イベント02<br>'); print "</td>\n"; print "<td>\n"; &input('radio','mode','renev03','','連続イベント03<br>'); &input('radio','mode','renev04','','連続イベント04<br>'); print "</td>\n"; print "</tr>\n"; print "<tr>\n"; print "<td colspan=\"2\">\n"; print "<div align=\"right\">\n"; &input('hidden','name',$FORM{'name'},'',''); &input('hidden','pass',$FORM{'pass'},'',''); &input('submit','','OK!','','<br>'); print "</div>\n"; &tablebottom; } } |
# ------------------------- # # Sub Action # アクション # ------------------------- # sub action { $playmsg = "$playtime時間" if $playtime != 0; $playmsg = "$playminute分" if $playtime == 0; &checkname; # &error("まだ$playmsg経過していません") if $enter == 1; if ($enter == 1 && $FORM{'mode'} ne 'renev01' && $FORM{'mode'} ne 'renev02' && $FORM{'mode'} ne 'renev03' && $FORM{'mode'} ne 'renev04') { &error("まだ$playmsg経過していません"); } &header; &title; &bodytop("ペットデータ($num代目)"); |
if ($fa eq 'play') { $lastplay = time } if ($fa eq 'out') { $out = 1; $outdate = time } if ($fa eq 'renev01') { &petnow('gazou.jpg',"メッセージ"); $love++; } elsif ($fa eq 'renev02') { &petnow('gazou.jpg',"メッセージ"); $love--; } elsif ($fa eq 'renev03') { &petnow('gazou.jpg',"メッセージ"); $love += 5; } elsif ($fa eq 'renev04') { &petnow('gazou.jpg',"メッセージ"); $love -= 5; } elsif ($rnd <= $rnd_border) { &petnow($rnd_img,$rnd_msg); $love--; } elsif ($FORM{'good'} =~ /$fa/) { &petnow($good_img{$fa},$good_msg{$fa}); $love++;$good++; |