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


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

!endif

;!godown #back

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

!endif

;!godown #back

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

!endif

;!godown #back

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

!endif

;!godown #back

!godown #movego
;----------------------------
#movego
;
$npc4anime+$enpc4sx

$rnd=$enpc4sx
$rnd*3
$rnd-1

!if $npc4anime>$rnd
$npc4anime=0
!picarea 127,$npc4anime,$npc4houkou,$enpc4sx,$enpc4sy
!picarea 27,$npc4anime,$npc4houkou,$enpc4sx,$enpc4sy
$npc4houkou=n
$enemyturn=5
!godown #back
!endif
!picarea 127,$npc4anime,$npc4houkou,$enpc4sx,$enpc4sy
!picarea 27,$npc4anime,$npc4houkou,$enpc4sx,$enpc4sy

!picpos 127,$127x,$127y
!picpos 27,$127x,$127y
;--------------------------------------------------------------
#back
!freturn2




































































