罪と罰++二律背反
罪罰国データリセット
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
] [
リンク元
]
開始行:
[[罪罰ファイル]]
*ore_sub-main_reset.cgi [#ca57902f]
-固定モードとランダムモードで初期値を設定するだけ~
**民統治$ctなら以下のような感じ [#fed8986f]
$ct1=int(rand(20))+40;
$ct2=int(rand(20))+40;
$ct3=int(rand(20))+40;
$ct4=int(rand(20))+40;
$ct5=int(rand(20))+40;
**友好度初期化 [#j5ec5519]
# 友好度 初期化
for ($self=1; $self<6;$self++){
for ($other=1; $other<6;$other++){
$cfs[$self.$other] = $CP{'cfs'.$self.$other};
if ($other<$self){
# ランダム
$cfs[$self.$other] = int(rand(30)+40);
# 固定値
# $cfs[$self.$other] = 50;
} elsif ($other>$self) {
$cfs[$self.$other] = 0;
}
# clear
#$cfs[$self.$other] = "";
}
}
終了行:
[[罪罰ファイル]]
*ore_sub-main_reset.cgi [#ca57902f]
-固定モードとランダムモードで初期値を設定するだけ~
**民統治$ctなら以下のような感じ [#fed8986f]
$ct1=int(rand(20))+40;
$ct2=int(rand(20))+40;
$ct3=int(rand(20))+40;
$ct4=int(rand(20))+40;
$ct5=int(rand(20))+40;
**友好度初期化 [#j5ec5519]
# 友好度 初期化
for ($self=1; $self<6;$self++){
for ($other=1; $other<6;$other++){
$cfs[$self.$other] = $CP{'cfs'.$self.$other};
if ($other<$self){
# ランダム
$cfs[$self.$other] = int(rand(30)+40);
# 固定値
# $cfs[$self.$other] = 50;
} elsif ($other>$self) {
$cfs[$self.$other] = 0;
}
# clear
#$cfs[$self.$other] = "";
}
}
ページ名: