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


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

!endif

;!godown #back

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

!endif

;!godown #back

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

!endif

;!godown #back

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

!endif

;!godown #back

!godown #movego
;----------------------------
#movego
;
$npc1anime+$enpc1sx

$rnd=$enpc1sx
$rnd*3
$rnd-1

!if $npc1anime>$rnd
$npc1anime=0
!picarea 120,$npc1anime,$npc1houkou,$enpc1sx,$enpc1sy
!picarea 20,$npc1anime,$npc1houkou,$enpc1sx,$enpc1sy
$npc1houkou=n
$enemyturn=2
!godown #back
!endif
!picarea 120,$npc1anime,$npc1houkou,$enpc1sx,$enpc1sy
!picarea 20,$npc1anime,$npc1houkou,$enpc1sx,$enpc1sy
!picpos 120,$120x,$120y
!picpos 20,$120x,$120y

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




































































