レス書き込み
スレへ戻る
写
レス栞
レス消
☆ベルトアクション作成 Beats of rageスレッド☆
PC,スマホ,PHSは
ULA
べっかんこ
公式(スマホ)
公式(PC)
で書き込んでください。
名前
メール
引用切替:
レスアンカーのみ
>>282 > script @script > void main() > { > void self = getlocalvar("self"); > void attacker = getentityproperty(self,"parent"); > void victim2 = getentityproperty(attacker, "opponent"); > void victim = getentityproperty(victim2, "playerindex"); > int HP = getentityproperty(self,"health"), HPmax = getentityproperty(self,"maxhealth"); > int x1 = getentityproperty(attacker,"x"), z1 = getentityproperty(attacker,"z"); > if(HP>=HPmax){ > changeentityproperty(victim2, "position", x1, z1); > performattack(victim2, openborconstant("ANI_FREESPECIAL")); > setidle(attacker, openborconstant("ANI_IDLE")); > bindentity(victim2, NULL()); > performattack(attacker, openborconstant("ANI_PAIN")); > setentityvar(self, "madjon", NULL()); > killentity(self); > } else if(playerkeys(victim, 2, "moveleft")){ // Left is pressed? > changeentityproperty(self, "health", HP+4); > } else if(playerkeys(victim, 2, "moveright")){ // Right is pressed? > changeentityproperty(self, "health", HP+4); > } else if(playerkeys(victim, 2, "attack")){ // Attack is pressed? > changeentityproperty(self, "health", HP+2); > } else if(playerkeys(victim, 2, "jump")){ // Jump is pressed? > changeentityproperty(self, "health", HP+6); > } > } > @end_script > これが心臓部で、レバガチャEntityのヘッダー部に記述すると、このEntityが存在しているあいだ実行され続けます。 > で、Anim Idleにレバガチャの画像を表示させればOK、上のスクリプトだと、Healthを増やしてMaxHealthまで行ったら脱出ですね。
ローカルルール
SETTING.TXT
他の携帯ブラウザのレス書き込みフォームはこちら。
書き込み設定
で書き込みサイトの設定ができます。
・
ULA
・
べっかんこ(身代わりの術)
・
べっかんこ(通常)
・
公式(スマホ)
・
公式(PC)[PC,スマホ,PHS可]
書き込み設定(板別)
で板別の名前とメールを設定できます。
メモ帳
(0/65535文字)
上
下
板
覧
索
設
栞
歴
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.008s