
;
!if $npc2houkou=48
!godown #ml
!endif
!if $npc2houkou=96
!godown #mr
!endif
!if $npc2houkou=144
!godown #mu
!endif
!if $npc2houkou=0
!godown #md
!endif
;
;------------------------
#movec
!rnd $rnd,10
!if $rnd=0
$npc2houkou=48
!endif
!if $rnd=1
$npc2houkou=96
!endif
!if $rnd=2
$npc2houkou=144
!endif
!if $rnd=3
$npc2houkou=0
!endif
!godown #back


#ml
$122x-8
;----------------------------------------接触判定
!if $rnd=0

!endif

;!godown #back

!godown #movego
#mr
$122x+8
;----------------------------------------接触判定
!if $rnd=0

!endif

;!godown #back

!godown #movego
#mu
$122y-8
;----------------------------------------接触判定
!if $rnd=0

!endif

;!godown #back

!godown #movego
#md
$122y+8
;----------------------------------------接触判定
!if $rnd=0

!endif

;!godown #back

!godown #movego
;----------------------------
#movego
;
$npc2anime+$enpc2sx

$rnd=$enpc2sx
$rnd*3
$rnd-1

!if $npc2anime>$rnd
$npc2anime=0
!picarea 122,$npc2anime,$npc2houkou,$enpc2sx,$enpc2sy
!picarea 22,$npc2anime,$npc2houkou,$enpc2sx,$enpc2sy
$npc2houkou=n
$enemyturn=3
!godown #back
!endif
!picarea 122,$npc2anime,$npc2houkou,$enpc2sx,$enpc2sy
!picarea 22,$npc2anime,$npc2houkou,$enpc2sx,$enpc2sy
!picpos 122,$122x,$122y
!picpos 22,$122x,$122y

;--------------------------------------------------------------
#back
!freturn2




































































