shiny-cuty-excel-chiffon/data/e020_damage2.asd

119 lines
6.2 KiB
Common Lisp
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

*start
[if exp="sprite.lastSpriteId==stDamage2"]
[eval exp="mp.damageHeight = int(mp.damageHeight*0.9)"]
[else]
[eval exp="mp.damageHeight = 34"]
[endif]
[eval exp="mp.damageHeight = 15" cond="mp.damageHeight < 15"]
[eval exp="mp.path1='(-51,0,'+mp.damageHeight+')'"]
[eval exp="mp.path2='(-25,0,-'+mp.damageHeight+')'"]
[playdamagese]
[if exp="sprite.HP<=0"]
[voice storage="i9008"]
[eval exp="mp.flag = intrandom(0,4) < 1"]
[else]
[if exp="sprite.lastSpriteId!=stDamage2"]
[voice storage="i9007"]
[endif]
[eval exp="mp.flag = false"]
[endif]
[if exp="mp.flag"]
[image id=stDamage3 num=1]
[else]
[image num=1]
[endif]
[dispsize width=106 height=92]
[state enablemove=false enableattack=false]
[ontrigger name=landing target=*landing1]
;[if exp="sprite.HP>0"]
; [playse storage="c9103"]
;[else]
; [playse storage="c9104"]
;[endif]
[move path=&mp.path1 haccel=-1 frame=10]
[move path=&mp.path2 xaccel=-0.2 frame=5]
[disp left= 0 top=0 opacity=255][hit rect=(2,2,104,80)][wait frame=10]
[if exp="mp.flag"]
[image id=stDamage3 num=2]
[else]
[image num=2]
[endif]
[dispsize width=122 height=36 centerpos=61 baseline=0]
[foot rect="(10, 24, 112, 27)"]
[disp left=0 top=0 opacity=255][hit rect=(2,35,120,36)]
[s cond="sprite.altitude>0"]
*landing1
[if exp="mp.flag"]
[image id=stDamage3 num=2]
[else]
[image num=2]
[endif]
[dispsize width=122 height=36 centerpos=61 baseline=0]
[ontrigger name=landing target=*landing2]
[playse storage=se211]
[move path=(-17,0,17) haccel=-1 frame=5]
[move path=(-17,0,-17) haccel=1 frame=5]
[disp left=0 top=1 opacity=255][hit rect="(2,35,120,36)"][wait frame=5]
[disp left=0 top=3 opacity=255][hit rect="(2,35,120,36)"]
[s]
*landing2
[if exp="mp.flag"]
[image id=stDamage3 num=2]
[else]
[image num=2]
[endif]
[dispsize width=122 height=36 centerpos=61 baseline=0]
[ontrigger name=landing target=*landing3]
[move path=(-4,0,5) haccel=-1 frame=5]
[move path=(-4,0,-5) haccel=1 frame=5]
[disp left=0 top=2 opacity=255][hit rect="(2,35,120,36)"][wait frame=5]
[disp left=0 top=3 opacity=255][hit rect="(2,35,120,36)"][wait frame=5]
[disp left=0 top=4 opacity=255][hit rect="(2,35,120,36)"]
[s]
*landing3
[if exp="sprite.HP > 0"]
[wait frame=15]
[load id="stStandUp"]
[endif]
[eval exp="sprite.scriptQueue=[]"]
[wait frame=20]
[eval exp="sf.enemyKillCount++"]
[if exp="f.inBattleMode && sf.bmEnemyHPInfinite"]
[eval exp="sprite.HP = sprite.maxHP"]
[load id="stStandUp"]
[endif]
[del]
[disp left=0 top=4 opacity=235][wait frame=3]
[disp left=0 top=4 opacity=215][wait frame=3]
[disp left=0 top=4 opacity=195][wait frame=3]
[disp left=0 top=4 opacity=175][wait frame=3]
[disp left=0 top=4 opacity=155][wait frame=3]
[disp left=0 top=4 opacity=135][wait frame=3]
[disp left=0 top=4 opacity=115][wait frame=3]
[disp left=0 top=4 opacity= 95][wait frame=3]
[disp left=0 top=4 opacity= 75][wait frame=3]
[disp left=0 top=4 opacity= 55][wait frame=3]
[disp left=0 top=4 opacity= 35][wait frame=3]
[disp left=0 top=4 opacity= 15][wait frame=3]
[disp left=0 top=4 opacity= 0][wait frame=3]