鍛冶シミュレーション

「鍛冶シミュレーション」の編集履歴(バックアップ)一覧はこちら

鍛冶シミュレーション」(2007/10/08 (月) 23:05:09) の最新版変更点

追加された行は緑色になります。

削除された行は赤色になります。

#javascript(){{ function calc(dmg,wei,ele){ var damage = Math.floor(dmg) + Math.floor(Math.random() * dmg * 4) - Math.floor(Math.random() * (wei/2)); damage = damage + Math.floor(Math.random() * (ele * 50 - 45)); var weight = damage; if(document.fm1.prpweilim.checked && eval(damage + unescape("%3E") + 200)){ weight -= Math.floor(wei) + Math.floor(Math.random() * wei * 3); weight -= Math.floor(Math.random() * (ele * 30 + 25)); }else{ weight -= Math.floor(wei * 2) + Math.floor(Math.random() * wei * 5); weight -= Math.floor(Math.random() * (ele * 30 + 25)); } document.getElementById("damage").innerHTML = "威力:" + damage; if(eval(weight+unescape(" %3C ")+"-100")) document.getElementById("weight").innerHTML = "重量:" + unescape("%3Cfont"+"%20color=red%3E" + weight+"%3C/font%3E" ); else document.getElementById("weight").innerHTML = "重量:" + weight; } function oncalc(){ var ele = parseFloat(document.fm1.elem.value); var dmg = parseInt(document.fm1.dmg1.value)*ele; var wei = parseInt(document.fm1.wei1.value)*ele; calc(Math.sqrt(dmg),Math.sqrt(wei),ele); } window.onload=function(){ document.fm1.btncalc.onclick=oncalc; } }} #html2(){ <form name="fm1"> 威力費:<INPUT type="text" name="dmg1" />0000G<br /> 重量費:<INPUT type="text" name="wei1" />0000G<br /> 属性補正:<INPUT type="text" name="elem" value=1.2 /><br /> <input type="checkbox" name="prpweilim" value="weilim" cecked=true /> 重量に補正 <input type="button" value="親父に頼む" id="btncalc" /> <div id="damage">威力:0</div> <div id="weight">重量:0</div> </form> }
#javascript(){{ function calc(dmg,wei,ele){ var damage = Math.floor(dmg) + Math.floor(Math.random() * dmg * 4) - Math.floor(Math.random() * (wei/2)); damage = damage + Math.floor(Math.random() * (ele * 50 - 45)); var weight = damage; if(document.fm1.prpweilim.checked && eval(damage + unescape("%3E") + 200)){ weight -= Math.floor(wei) + Math.floor(Math.random() * wei * 3); weight -= Math.floor(Math.random() * (ele * 30 + 25)); }else{ weight -= Math.floor(wei * 2) + Math.floor(Math.random() * wei * 5); weight -= Math.floor(Math.random() * (ele * 30 + 25)); } document.getElementById("damage").innerHTML = "威力:" + damage; if(eval(weight+unescape(" %3C ")+"-100")) document.getElementById("weight").innerHTML = "重量:" + unescape("%3Cfont"+"%20color=red%3E" + weight+"%3C/font%3E" ); else document.getElementById("weight").innerHTML = "重量:" + weight; } function oncalc(){ var ele = parseFloat(document.fm1.elem.value); var dmg = parseInt(document.fm1.dmg1.value)*ele; var wei = parseInt(document.fm1.wei1.value)*ele; calc(Math.sqrt(dmg),Math.sqrt(wei),ele); } window.onload=function(){ document.fm1.btncalc.onclick=oncalc; } }} 本鯖の方なので注意・・・ #html2(){ <form name="fm1"> 威力費:<INPUT type="text" name="dmg1" />0000G<br /> 重量費:<INPUT type="text" name="wei1" />0000G<br /> 属性補正:<INPUT type="text" name="elem" value=1.2 /><br /> <input type="checkbox" name="prpweilim" value="weilim" cecked=true /> 重量に補正 <input type="button" value="親父に頼む" id="btncalc" /> <div id="damage">威力:0</div> <div id="weight">重量:0</div> </form> }

表示オプション

横に並べて表示:
変化行の前後のみ表示: