きのこたけのこ大戦@wiki - スキル判定(仮)ver1.2
ページ番号:95
ページ名:スキル判定(仮)ver1.2
タグ:
編集モード番号:0

---------------------------

下のボタンを押して、入力フォームにコピーしたIDを貼り付けてください。

ページが飛んで、略称のスキルとそれぞれのスキルの効果が表示されます。

「ID:」これを抜いてコピペしてください。
現在、紛争用にID左から6文字対応中

java scriptで運用。

※現在、Opera,Firefox,IEでの運用を確認。

#javascript(){{
<SCRIPT language="JavaScript">
<!--
function myEnter(){
OP = prompt("あなたのIDを入力してください",""); //文字列を入力、OPを文字列の変数とする。
str = OP.substring(0, 6);  //substring関数を使って、変数OPの左から四文字のみを抽出。それを変数strに代入。
document.write("1. あなたの使用可能なスキルは<br>");
if(str.match(".*[A-Ba-b].*")){ stra = "【マルチ】";
document.write(""+stra+"");
}if(str.match(".*[C-Dc-d].*")) {strb = "【ポイフル】";
document.write(""+strb+"");
}if(str.match(".*[E-Fe-f].*")){ strc = "【キャノン】";
document.write(""+strc+"");
}if(str.match(".*[G-Hg-h].*")){ strd = " 【アポロ】";
document.write(""+strd+"");
}if(str.match(".*[I-Ji-j].*")){ stre = " 【アグロ】";
document.write(""+stre+"");
}if(str.match(".*[K-Lk-l].*")) {strf = " 【バリア】";
document.write(""+strf+"");
}if(str.match(".*[M-Nm-n].*")){ strg = "【セット】";
document.write(""+strg+"");
}if(str.match(".*[O-Po-p].*")){ strh = " 【ファイア】";
document.write(""+strh+"");
}if(str.match(".*[Q-Rq-r].*")){ stri = " 【メルト】";
document.write(""+stri+"");
}if(str.match(".*[S-Ts-t].*")) {strj = " 【プッカ】";
document.write(""+strj+"");
}if(str.match(".*[U-Vu-v].*")){ strk = " 【ブレイク】";
document.write(""+strk+"");
}if(str.match(".*[W-Xw-x].*")){ strl = "【キシリフ】";
document.write(""+strl+"");
}if(str.match(".*[Y-Zy-z].*")){ strm = " 【キュン】";
document.write(""+strm+"");
}
document.write("<br>です。<br>");
document.write("<br><br><br>・別表記(【】ではなく[]を使用)<br>");
document.write("1-1. あなたの使用可能なスキルは<br>");
if(str.match(".*[A-Ba-b].*")){ stra = "[マルチ]";
document.write(""+stra+"");
}if(str.match(".*[C-Dc-d].*")) {strb = "[ポイフル]";
document.write(""+strb+"");
}if(str.match(".*[E-Fe-f].*")){ strc = "[キャノン]";
document.write(""+strc+"");
}if(str.match(".*[G-Hg-h].*")){ strd = " [アポロ]";
document.write(""+strd+"");
}if(str.match(".*[I-Ji-j].*")){ stre = " [アグロ]";
document.write(""+stre+"");
}if(str.match(".*[K-Lk-l].*")) {strf = " [バリア]";
document.write(""+strf+"");
}if(str.match(".*[M-Nm-n].*")){ strg = "[ヨーグ]";
document.write(""+strg+"");
}if(str.match(".*[O-Po-p].*")){ strh = " [ファイア]";
document.write(""+strh+"");
}if(str.match(".*[Q-Rq-r].*")){ stri = " [メルト]";
document.write(""+stri+"");
}if(str.match(".*[S-Ts-t].*")) {strj = " [プッカ]";
document.write(""+strj+"");
}if(str.match(".*[U-Vu-v].*")){ strk = " [ブレイク]";
document.write(""+strk+"");
}if(str.match(".*[W-Xw-x].*")){ strl = "[キシリフ]";
document.write(""+strl+"");
}if(str.match(".*[Y-Zy-z].*")){ strm = " [キュン]";
document.write(""+strm+"");
}
document.write("<br>です。<br><br>");
document.write("<br>これらはメ欄などに記載しておくといいでしょう。<br><br>");

document.write("<br><br><br><br>2. 使用可能なスキルについて効果を説明します。<br><br>");
if(str.match(".*[A-Ba-b].*")){ stra = "・【マルチ】:【Åマルチブルランチャー】<br>⇒≪ 上4レス中の敵軍のレス×2撃破 ≫<br><br>";
document.write(""+stra+"");
}if(str.match(".*[C-Dc-d].*")) {strb = "・【ポイフル】:【Åポイフルバースト】<br>⇒≪ 自分と、その下に連続する自軍のレス×2撃破 ≫<br><br>";
document.write(""+strb+"");
}if(str.match(".*[E-Fe-f].*")){ strc = "【キャノン】:【Åチェルシーキャノン】<br>⇒≪ コンマ十の位が偶数⇒8撃破 奇数⇒0撃破 ≫<br><br>";
document.write(""+strc+"");
}if(str.match(".*[G-Hg-h].*")){ strd = " 【アポロ】:【Åアポロソーラーレイ】<br>⇒≪ 現在のminute(分)が50分台の時のみ使える 6撃破 ≫<br><br>";
document.write(""+strd+"");
}if(str.match(".*[I-Ji-j].*")){ stre = " 【アグロ】:【◇アグロフォートレス】 <br>⇒≪ 自軍の「Å」スキルのクリティカルの撃破を+6 重ねがけできる ≫<br><br>";
document.write(""+stre+"");
}if(str.match(".*[K-Lk-l].*")) {strf = " 【バリア】:【◇スーパーカップバリア】<br>⇒≪ 敵軍の「Å」スキルのクリティカルを永久に無効化 ≫<br><br>";
document.write(""+strf+"");
}if(str.match(".*[M-Nm-n].*")){ strg = "【ヨーグ】:【◇ヨーグセット】<br>⇒≪ 砲弾を仕掛ける 重ね掛けできない ≫<br><br>";
document.write(""+strg+"");
}if(str.match(".*[O-Po-p].*")){ strh = " 【ファイア】:【Åファイアレモン】<br>⇒≪ セットした砲弾を消費して放てる 10撃破 ≫<br><br>";
document.write(""+strh+"");
}if(str.match(".*[Q-Rq-r].*")){ stri = " 【メルト】:【*メルティカース】<br>⇒≪ 50の倍数レスごとに敵兵力を-1 重ねがけできる ≫<br><br>";
document.write(""+stri+"");
}if(str.match(".*[S-Ts-t].*")) {strj = " 【プッカ】:【*プッカライトニング】 <br>⇒≪ 【◎キシリフレッシュ】以外の敵軍のスキルはコンマ一の位が4なら失敗 ≫<br><br>";
document.write(""+strj+"");
}if(str.match(".*[U-Vu-v].*")){ strk = " 【ブレイク】:【◎ブレイクパンチ】<br>⇒≪ 敵軍の「◇」スキルの効果を全て解除 ≫<br><br>";
document.write(""+strk+"");
}if(str.match(".*[W-Xw-x].*")){ strl = "【キシリフ】:【◎キシリフレッシュ】<br>⇒≪ 敵軍の「*」スキルの効果を全て解除 ≫<br><br>";
document.write(""+strl+"");
}if(str.match(".*[Y-Zy-z].*")){ strm = " 【キュン】:【◎キュンキュア】<br>⇒≪ 自軍兵力を4回復 ≫<br><br>";
document.write(""+strm+"");
}
}
</SCRIPT>
<form>
<input type="button" value="スキル判定へ" onclick="myEnter()"style="WIDTH: 400px; HEIGHT: 40px">
</form>
}}












<更新履歴>
ver1.2 全ID対応、ボタンのサイズ変更

ver1.1 限定ID(左から4文字)対応、スキルの効果文追加
ver1.0 試験的に公開

.