改造・制作スレ part2 (1000レス)
改造・制作スレ part2 http://jbbs.shitaraba.net/bbs/read.cgi/computer/42292/1282244590/
上
下
前
次
1-
新
通常表示
512バイト分割
レス栞
このスレッドは1000を超えました。
次スレ検索
歴削→次スレ
栞削→次スレ
452: 名無しさん [sage] >>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) } http://jbbs.shitaraba.net/bbs/read.cgi/computer/42292/1282244590/452
メモ帳
(0/65535文字)
上
下
前
次
1-
新
書
関
写
板
覧
索
設
栞
歴
あと 548 レスあります
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.011s