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

70 lines
3.8 KiB
Common Lisp
Raw 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
[state enablemove=false enableAttack=false nogravity=true ignoremovablerect=true]
[image storage="e014_attack2_1"]
[dispsize width=54 height=100 centerpos=27 baseline=0]
[disp left=0 top=0 opacity=255][wait frame=8]
[disp left=1 top=0 opacity=255][wait frame=7]
[playse storage="se216"]
[move path='(-20,0,300)' frame=8]
[disp left=2 top=0 opacity=255]
[wait frame=8]
[call target=*setTarget]
[wait frame=8]
[move path=&mp.path mode='absolute' frame=12]
[ontrigger name=landing target=*landing]
[state enablemove=false enableattack=false nogravity=false]
[image storage="e014_attack2_2"]
[playse storage="se312"]
[dispsize width=82 height=124 centerpos=41 baseline=0]
[disp left=0 top=0 opacity=255][hit rect="(10,9,75,123)"][attack rect="(-4,38,63,125)" strength=28 kind=2 depth=(12,12)]
[s]
*landing
[image storage='e013_landing']
[dispsize width=68 height=124]
[playse storage="se302"]
[disp left=1 top=0 opacity=255][hit rect="(7,13,62,115)"][attack rect="(6,30,62,123)" strength=28 kind=2][wait frame=2]
[disp left=1 top=0 opacity=255][hit rect="(7,13,62,115)"][wait frame=4]
[disp left=2 top=0 opacity=255][hit rect="(7,13,62,115)"][wait frame=6]
[load id=stStanding]
;[eval exp="mp.new=bao.setEnemy(%['kind'=>'e01','x'=>sprite.rootX,'y'=>sprite.rootY,'inverse'=>sprite.inverse,'maxhp'=>sprite.maxHP,'hp'=>sprite.HP])"]
;[eval exp="mp.new.adjustDisp()"]
;[disp left=0 top=0 opacity=0]
;[del]
;
;[s]
*setTarget
[iscript]
{
sprite.shadow = true;
var p = bao.players[intrandom(0, 1)];
if(sf.adjSinglePlayMode) p = bao.nowSelectingPlayer;
sprite.targetPlayer = p;
//dm("e010_attack4 ■■ target : " + ((p==bao.players[0])?bao.players[0].name:bao.players[1].name));
// sprite.rootX = (p.rootX + sprite.rootX) / 2;
sprite.rootY = bao.stageLayer.topLine;
mp.path = '(' + (p.rootX+intrandom(0,20)) + ',' + (p.rootY+intrandom(-10,10)) + ',0)';
}
[endscript]
[return]