☆ベルトアクション作成 Beats of rageスレッド☆ (656レス)
上下前次1-新
223: 2021/12/31(金)00:27 ID:YNzMAPth(1/2)調 AAS
ある程度、ステータスを調整するスリプト
これをEntityのヘッダーの一番下(初期HPやスピードを設定した後)に
記述すると、そのキャラがスポーンした時にスクリプトの内容の計算で調整されるというもの
onspawnscript @script
void main() {
void self = getlocalvar("self");
void c = openborvariant("count_players");
void mh = getentityproperty(self,"maxhealth");
int lv = openborvariant("current_stage");
int level = openborvariant("current_set");
float spd = getentityproperty((self),"speed");
mh = mh*(0.4+level*0.2+lv*0.07+0.1*c);
spd += (c-1)*0.04+(lv)*0.02;
changeentityproperty(self,"maxhealth",mh);
changeentityproperty(self,"health",mh);
changeentityproperty(self,"aggression",-100+lv*5 + 10*c + level*25);
changeentityproperty(self,"speed",spd);
}
@end_script
助っ人NPCに設定しておけば少しは頼もしくなるかも?
上下前次1-新書関写板覧索設栞歴
あと 433 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.017s