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

36 lines
2.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.


[image storage=item01]
[dispsize width=32 height=24]
[eval exp="sprite.type= objItem"]
[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]
[ontrigger name=poverlap target=*overlap]
[disp left= 0 top=0 opacity=255]
;[hit rect="(0,0,32,24)"]
[eval exp="sprite.name='item01'"]
[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.HP=sprite.triggeredBy.maxHP"]
[del]
[s]
*noGet
[ontrigger name=poverlap target=*overlap]
[s]