☆ベルトアクション作成 Beats of rageスレッド☆ (658レス)
1-

473: 2023/08/15(火)10:20 ID:5qSS1H4z(2/2)調 AAS
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 を組み合わせると、プレイヤーが拾った時だけ効果が出ます。
1-
あと 185 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.005s