☆ベルトアクション作成 Beats of rageスレッド☆ (654レス)
前次1-
抽出解除 レス栞

240
(1): 名前は開発中のものです。 [sage] 2022/01/09(日) 23:59:21.01 ID:jzItCxMh(2/2) AAS
なるほど、ありがとうございます。
AIチェックですか、確かに人のチェックじゃ捌ききれないですよね。
アップして保留あいて説明文書いてる最中だったので、AIさんなのかな。
166: 名前は開発中のものです。 [sage] 2021/06/17(木) 07:47:06.34 ID:1MwPeeuR(3/3) AAS
上の例は、こんなことできたらいいなで、ざっと記述し動作確認します。
動作確認できたら、同じ処理をフラグで簡略化したりして
@script
void self = getlocalvar("self");
setlocalvar("BT"+self, findtarget(self));
if(getlocalvar("BT"+self)!=NULL()) {
void target = getlocalvar("BT"+self);
int tx = getentityproperty(target, "x"), px = getentityproperty(self, "x");
int tz = getentityproperty(target, "z"), pz = getentityproperty(self, "z"), IR=0;
if(tz - pz < 10 && tz - pz >-10) {
if(getentityproperty(self, "direction")) {
if(tx - px > 30 && tx - px < 240) { IR = 1; }
} else {
if(tx - px >-240 && tx - px <-30) { IR = 1; }
}
}
if(IR) {
changeentityproperty(target, "lifespancountdown", 600);
changedrawmethod(target, "reset", 1);
setlocalvar("BT"+self, NULL());
changedrawmethod(target,"tintmode",3);
changedrawmethod(target,"tintcolor",rgbcolor(255, 64, 0));
}
}
@end_script
こんな感じに直します。動作は一緒なんで、別にやらなくても良いのですが、なんとなくw
前次1-
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル

ぬこの手 ぬこTOP 0.018s