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

82 lines
5 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.


[image storage=item02]
[dispsize width=26 height=28]
[eval exp="sprite.type= objItem"]
[disp left= 0 top=0 opacity=0][wait frame=1]
[iscript]
if(sf.adjItemInScreen){
if(sprite.rootX<30){
sprite.rootX = 50;
}
if(sprite.rootX>bao.internalWidth-30){
sprite.rootX = bao.internalWidth - 50;
}
}
[endscript]
[eval exp="sprite.shadow=true"]
[disp left=0 top=0 opacity=0][wait frame=1]
[disp left=0 top=0 opacity=32][wait frame=1]
[disp left=0 top=0 opacity=64][wait frame=1]
[disp left=0 top=0 opacity=96][wait frame=1]
[disp left=0 top=0 opacity=128][wait frame=1]
[disp left=0 top=0 opacity=160][wait frame=1]
[disp left=0 top=0 opacity=192][wait frame=1]
[disp left=0 top=0 opacity=224][wait frame=1]
[eval exp="sprite.name='item02'"]
[ontrigger name=poverlap target=*overlap]
*loop
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=4]
[disp left=0 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=1 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=2 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=3 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=4 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=5 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=6 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=7 top=0 opacity=255][call target=*check][wait frame=2]
[disp left=8 top=0 opacity=255][call target=*check][wait frame=2]
[jump target=*loop]
[s]
*overlap
[jump target=*noGet cond="sprite.triggeredBy.pc!==void && !sprite.triggeredBy.pc.nowManualControl && !sprite.triggeredBy.pc.nowTryingGetItem"]
[playse storage="se015" buf=9]
;[eval exp="mp.p=sprite.triggeredBy"]
;[eval exp="mp.p.HP+=300"]
;[eval exp="mp.p.HP=(mp.p.HP>=mp.p.maxHP)?mp.p.maxHP:mp.p.HP"]
[eval exp="sprite.triggeredBy.MP=sprite.triggeredBy.maxMP"]
[del]
[s]
*noGet
[ontrigger name=poverlap target=*overlap]
[jump target=*loop]
*check
[iscript]
{
if(bao.enemies.count == 0){
sprite.type = objItem2;
}else{
sprite.type = objItem;
}
}
[endscript]
[return]