改造・制作スレ part2 (1000レス)
上下前次1-新
このスレッドは1000を超えました。
次スレ検索 歴削→次スレ 栞削→次スレ
452(1): 名無しさん 2010/11/13(土)20:06 ID:??? AAS
>>448
以下のような形を提案いたします・・・
storeAllPower(@allpow)
storeLeaderOfPower(@allpow, @allunit)
clearVar(@choise)
set(idx, 0)
while (idx < countVar(@allunit)) {
storeIndexVar(@allunit, idx, @unit) allunitのidx番目の要素勢力をunitに代入する
pushLoyal(@unit, loyal)
if (loyal < 50) {
addVar(@choice, @unit) 忠誠度が50未満のユニットをchoiseに代入していく(非人材の忠誠は100固定です)
}
add(idx, 1) idxを+1する
}
shuffleVar(@choise) 文字変数choiseに代入された要素の順序をシャッフルする
pushRand(rand)
mod(rand, 10)
add(rand, 1) (0〜99)の乱数を10で剰余算をし1を加算する事で(1〜10)の数値を得てそれを放浪人数とする
set(idx, 0)
while (idx < countVar(@choise) && idx < rand) {
storeIndexVar(@choice, idx, @ch) allunitのidx番目の要素勢力をunitに代入する
roamUnit(@ch)
add(idx, 1)
}
上下前次1-新書関写板覧索設栞歴
あと 548 レスあります
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.020s