- 472 名前:名前は開発中のものです。 mailto:sage [2023/08/14(月) 22:01:18.65 ID:bpKPl4N+.net]
- name Hotdog
type item subtype touch candamage player didhitscript @script void main() { void target = getlocalvar("damagetaker"); int PIndex = getentityproperty(target,"playerindex"); changeplayerproperty(PIndex, "lives", 0); changeplayerproperty(PIndex, "credits", 0); } @end_script anim idle attack 11 10 32 20 0 0 0 1 0 9 loop 1 delay 300 offset 25 25 bbox 11 10 32 20 frame data/chars/misc/Hotdog.gif こんな感じで設定すれば、アイテムに近づき攻撃判定に触れると didhitscriptが実行されて、残機とクレジットが0になります。 この仕組みだとType Itemである必要は特に無いのですが、何かの参考になれば。
|

|