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

112 lines
6.4 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
[eval exp="sprite.inverseMode = true"]
[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]
[iscript]
mp.rescueFlag = false;
if(sprite.damageFrom !== void && isvalid sprite.damageFrom){
mp.damageFromKind = sprite.damageFrom.kind;
if((sprite.lastSpriteId==stClinching || sprite.lastSpriteId==stBackClinch) && mp.clinchPlayer !== void && isvalid mp.clinchPlayer){
if(mp.damageFromKind != mp.clinchPlayer.kind && sprite.damageFrom === bao.nowSelectingPlayer){
mp.rescueFlag = true;
}
}
}
[endscript]
[if exp="mp.rescueFlag"]
[eval exp="sf.clinchedRescueCount++"]
[if exp="sf.clinchedRescueCount >= 5"]
[eval exp="bao.checkMission('抱き付き救助')"]
[endif]
[endif]
[image num=1]
[dispsize width=90 height=74 centerpos=45 baseline=0]
[state enablemove=false enableattack=false]
[ontrigger name=landing target=*landing1]
[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="(8,1,82,59)"][wait frame=10]
[image num=2]
[dispsize width=94 height=30 centerpos=47 baseline=0]
[disp left=0 top=0 opacity=255][hit rect="(0,0,94,26)"]
[wait frame=1]
[s cond="sprite.altitude>0"]
*landing1
[image num=2]
[dispsize width=94 height=30 centerpos=47 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="(0,29,94,30)"][wait frame=4]
[disp left=0 top=0 opacity=255][hit rect="(0,29,94,30)"]
[wait frame=1]
[s cond="sprite.altitude>0"]
*landing2
[image num=2]
[dispsize width=94 height=30 centerpos=47 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=1 opacity=255][hit rect="(0,29,94,30)"][wait frame=4]
[disp left=0 top=2 opacity=255][hit rect="(0,29,94,30)"]
[wait frame=1]
[s cond="sprite.altitude>0"]
*landing3
[disp left=0 top=1 opacity=255][hit rect="(0,29,94,30)"]
[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=1 opacity=235][wait frame=3]
[disp left=0 top=1 opacity=215][wait frame=3]
[disp left=0 top=1 opacity=195][wait frame=3]
[disp left=0 top=1 opacity=175][wait frame=3]
[disp left=0 top=1 opacity=155][wait frame=3]
[disp left=0 top=1 opacity=135][wait frame=3]
[disp left=0 top=1 opacity=115][wait frame=3]
[disp left=0 top=1 opacity= 95][wait frame=3]
[disp left=0 top=1 opacity= 75][wait frame=3]
[disp left=0 top=1 opacity= 55][wait frame=3]
[disp left=0 top=1 opacity= 35][wait frame=3]
[disp left=0 top=1 opacity= 15][wait frame=3]
[disp left=0 top=1 opacity= 0][wait frame=3]