for 100 if runeIn for if runeConnected runeIn 100000 x1 x2 y1 y2 with

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
for (i = 0; i < 100; i += 1) {
if (runeIn[i] != 0) {
for (j = 0; j < 5; j += 1) {
if (runeConnected[runeIn[i] - 100000, j] > 0) {
x1 = 0;
x2 = 0;
y1 = 0;
y2 = 0;
with (runeIn[i]) {
x1 = x;
y1 = y;
}
with (runeConnected[runeIn[i] - 100000, j]) {
x2 = x;
y2 = y;
}
draw_line(x1, y1, x2, y2);
}
}
}
}