☆ベルトアクション作成 Beats of rageスレッド☆at GAMEDEV☆ベルトアクション作成 Beats of rageスレッド☆ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト473:名前は開発中のものです。 23/08/15 10:14:55.85 5qSS1H4z.net >>472 敵に Anim get がある場合、敵が拾っても発動することがあるので、 bbox 11 10 32 20 ここを itembox 11 10 32 20 とすることでcandamage player で設定しているようにplayer のみが拾えるようになります。 標準のcandamage コマンドとちょっと違って type Item 専用の動作になります。 type item のヘッダーにcredit と記入すればクレジットが増えるアイテムになりますが、 どうやら複数の効果はスクリプトを使わないと無理みたいです。 最後にlifescore はlevels.txt に記載することで機能してます(Ver.3_Rev.6391)。 credscore は検証中。 474:名前は開発中のものです。 23/08/15 10:20:05.70 5qSS1H4z.net name Hotdog type item health 100 candamage player didhitscript @script void main() { void tgt = getlocalvar("damagetaker"); if (getentityproperty(tgt,"type")==openborconstant("TYPE_PLAYER")) { int PIndex = getentityproperty(tgt,"playerindex"); changeplayerproperty(PIndex, "lives", 1); changeplayerproperty(PIndex, "credits", 1); } } @end_script anim idle attack 11 10 32 20 0 0 0 1 0 9 loop 1 delay 200 offset 25 25 itembox 11 10 32 20 frame data/chars/misc/Hotdog.gif こんな感じにcandamage player とitembox を組み合わせると、プレイヤーが拾った時だけ効果が出ます。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch