27 lines
2 KiB
Common Lisp
27 lines
2 KiB
Common Lisp
*start
|
||
|
||
|
||
[state enablemove=false enableAttack=false]
|
||
|
||
[dispsize width=110 height=132 centerpos=52 baseline=0]
|
||
[disp left=0 top=0 opacity=255][wait frame=4]
|
||
[disp left=0 top=0 opacity=255][hit rect="(21,12,86,124)"][wait frame=3]
|
||
|
||
[playse storage=se218]
|
||
[if exp="mp.noMove"]
|
||
[eval exp="sprite.faceToPlayer(sprite.targetPlayer)"]
|
||
[eval exp="mp.d = int(Math.sqrt(getDistance(sprite, sprite.targetPlayer))) * 0.5"]
|
||
[eval exp="mp.path = '(' + mp.d + ',0,0)'"]
|
||
[move path=&mp.path xaccel=-1 frame=12]
|
||
[else]
|
||
[move path=(100,0,0) xaccel=-1 frame=12]
|
||
[endif]
|
||
|
||
[disp left=1 top=0 opacity=255][hit rect="(21,12,86,124)"][attack rect="(-13,25,75,87)" strength=200 kind=atkHold depth=(12,12)][wait frame=3]
|
||
[disp left=2 top=0 opacity=255][hit rect="(21,12,86,124)"][attack rect="(-13,25,75,87)" strength=200 kind=atkHold depth=(12,12)][wait frame=2]
|
||
[disp left=2 top=0 opacity=255][hit rect="(21,12,86,124)"][wait frame=7]
|
||
[disp left=3 top=0 opacity=255][hit rect="(21,12,86,124)"][wait frame=10]
|
||
|
||
|
||
[load id=stStanding]
|
||
|