var point_a;
var point_b;
var a = new Array();
var b = new Array();
var power = new Array();
var number_a, number_b;
var mon_a = new Array();
var mon_b = new Array();
var life_a = new Array();
var life_b = new Array();
var n_a, n_b;
function sample() {
point_a = 8000;
point_b = 8000;
for(s=1;s<31;s++){
a[s] = 1;
}
for (s = 1; s < 31; s++) {
b[s] = 2;
}
power[1] = 500;
power[2] = 800;
n_b=0;
mode = 1;
number_a = 1;
number_b = 1;
n_a = 1;
mon_a[n_a] = a[number_a];
life_a[n_a] = 100;
maxpoint=0;
for (s = 1; s < n_a + 1; s++) {
h=0;
if (life_a[s] > 50) h = h + 1;
sx = mon_a[s];
sx = a[sx];
if (power[sx] >maxpoint) h = h + 1;
if (h == 2) sxs = s;
if (h == 2) maxpoint = power[sx];
}
fight = sxs;
sxs = 0;
minpoint = 1000;
for (s = 1; s < n_b + 1; s++) {
h = 0;
if (life_b[s] > 50) h = h + 1;
sx = mon_b[s];
sx = b[sx];
if (power[sx] < minpoint) h = h + 1;
if (h == 2) sxs = s;
if (h == 2) minpoint = power[sx];
}
def = sxs;
h=0;
if (maxpoint > minpoint) h = h + 1;
if (def > 0) h = h + 1;
if (h == 2) point_b = point_b - (maxpoint - minpoint);
if (h == 2) life_b[def]=0;
h = 0;
if (minpoint > maxpoint) h = h + 1;
if (def > 0) h = h + 1;
if (h == 2) point_a = point_a + (maxpoint - minpoint);
if (h == 2) life_a[fight] = 0;
if (def == 0) point_b = point_b - maxpoint;
}
最終更新:2015年06月26日 16:19