76 lines
4.1 KiB
Common Lisp
76 lines
4.1 KiB
Common Lisp
|
||
[image storage=magiccircle01]
|
||
[dispsize width=192 height=80 centerpos=96 baseline=40]
|
||
[state enablemove=false enableAttack=false nogravity=false ignoremovablerect=true]
|
||
[wait frame=1]
|
||
[effect storage="magiceffect01a" xoffset=0 yoffset=18 follow=false return='mp.e2']
|
||
[effect storage="magiceffect01b" xoffset=0 yoffset=-4 follow=false return='mp.e3']
|
||
|
||
;[addlayer storage="magiccircle01sub"]
|
||
|
||
[playse storage=se028]
|
||
[eval exp="sprite.type=objExplode"]
|
||
|
||
[disp left=0 top=0 opacity=255][wait frame=1]
|
||
[disp left=1 top=0 opacity=255][wait frame=1]
|
||
[disp left=2 top=0 opacity=255][wait frame=1]
|
||
[disp left=3 top=0 opacity=255][wait frame=1]
|
||
|
||
[disp left=0 top=1 opacity=255][wait frame=1]
|
||
[disp left=1 top=1 opacity=255][wait frame=1]
|
||
[disp left=2 top=1 opacity=255][wait frame=1]
|
||
|
||
[eval exp="mp.count = 0"]
|
||
*loop1
|
||
|
||
[disp left=3 top=1 opacity=255][wait frame=1]
|
||
|
||
;[if exp="sprite.parentSprite.state>=stDamage"]
|
||
; [jump target=*erace]
|
||
;[endif]
|
||
|
||
[eval exp="mp.count++"]
|
||
[jump target=*loop1 cond="mp.count<10"]
|
||
|
||
|
||
|
||
*check
|
||
[iscript]
|
||
{
|
||
for(var i=0;i<bao.players.count;i++){
|
||
var p = bao.players[i];
|
||
//dm(p);
|
||
var d = getDistance(sprite, p);
|
||
if(p.nowSpriteId == stDown) continue;
|
||
if(sf.adjSinglePlayMode && bao.notSelectingPlayer === p) continue;
|
||
if(d < 900){
|
||
//dm("!!!!");
|
||
bao.enemies[0].MP += 4;
|
||
p.locked();
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
[endscript]
|
||
|
||
[wait frame=10]
|
||
|
||
*erase
|
||
[eval exp="mp.e2.layer.trigger('erase')" cond="mp.e2 !== void && isvalid mp.e2"]
|
||
[eval exp="mp.e3.layer.trigger('erase')" cond="mp.e3 !== void && isvalid mp.e3"]
|
||
[eval exp="sprite.type=objNormal"]
|
||
|
||
[disp left=3 top=1 opacity=224][wait frame=2]
|
||
[disp left=3 top=1 opacity=192][wait frame=2]
|
||
[disp left=3 top=1 opacity=160][wait frame=2]
|
||
[disp left=3 top=1 opacity=128][wait frame=2]
|
||
[disp left=3 top=1 opacity=96] [wait frame=2]
|
||
[disp left=3 top=1 opacity=64 ][wait frame=2]
|
||
[disp left=3 top=1 opacity=32 ][wait frame=2]
|
||
[disp left=3 top=1 opacity=0]
|
||
[del]
|
||
[s]
|
||
|
||
|
||
|
||
;bao.setObject(%['storage'=>'magiccircle04','x'=>p0.rootX,'y'=>p0.rootY,'shadow'=>false])
|