☆ベルトアクション作成 Beats of rageスレッド☆at GAMEDEV☆ベルトアクション作成 Beats of rageスレッド☆ - 暇つぶし2ch■コピペモード□スレを通常表示□オプションモード□このスレッドのURL■項目テキスト21:名前は開発中のものです。 21/02/19 00:31:11.85 kAXiPLiE.net anim special2 @script void self = getlocalvar("self"); if(frame==0){ float MHealth = getentityproperty(self,"maxhealth"); float Health = getentityproperty(self,"health"); if(Health <= MHealth/2){ changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL2")); } } @end_script スクリプトを使うと結構いろんなことが出来ますが なかでも結構便利なのが上で、スペシャル2(レバー入れ必殺ボタン)の 動作に「プレイヤーが最大体力の2分の1なら、FreeSpecial2を実行する」というもの DCマニュアルの「ANI_xxx」を見れば色々と変えられるので 英語で判らんチンでも一度は覗いて見てはいかがでしょうか。 22:名前は開発中のものです。 21/02/21 22:41:48.70 ke3KkwTC.net 便利なスクリプト、敵との距離によって技の変化とか anim runattack loop 0 @script void self = getlocalvar("self"); void target = findtarget(self); int x1 = getentityproperty(target, "x"); int x2 = getentityproperty(self, "x"); int z1 = getentityproperty(target, "z"); int z2 = getentityproperty(self, "z"); if(frame == 0){ if(z1-z2<20 && z1-z2>-20 && x1-x2>-80 && x1-x2<80){ changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL4")); }else if(z1-z2<20 && z1-z2>-20 && x1-x2>-160 && x1-x2<160){ changeentityproperty(self, "animation", openborconstant("ANI_FREESPECIAL")); } } @end_script ダッシュ(→x2)中に攻撃した場合、敵との距離を測ってFREESPECIAL4と FREESPECIALを距離によって発動するというもの。 毎度おなじ動作ばかりだと飽きやすくなるので、アクセントにどうぞ。 次ページ最新レス表示レスジャンプ類似スレ一覧スレッドの検索話題のニュースおまかせリストオプションしおりを挟むスレッドに書込スレッドの一覧暇つぶし2ch