this is my repetitive script. It slows down the processing.
b = $data_system.party_members[0]
a1 = $game_actors[b].skills[0] == nil ? 99 : $game_actors[b].skills[0]
a2 = $game_actors[b].skills[1] == nil ? 99 : $game_actors[b].skills[1]
a3 = $game_actors[b].skills[2] == nil ? 99 : $game_actors[b].skills[2]
a4 = $game_actors[b].skills[3] == nil ? 99 : $game_actors[b].skills[3]
a5 = $game_actors[b].skills[4] == nil ? 99 : $game_actors[b].skills[4]
a6 = $game_actors[b].skills[5] == nil ? 99 : $game_actors[b].skills[5]
a7 = $game_actors[b].skills[6] == nil ? 99 : $game_actors[b].skills[6]
a8 = $game_actors[b].skills[7] == nil ? 99 : $game_actors[b].skills[7]
a9 = $game_actors[b].skills[8] == nil ? 99 : $game_actors[b].skills[8]
a10 = $game_actors[b].skills[9] == nil ? 99 : $game_actors[b].skills[9]
a11 = $game_actors[b].skills[10] == nil ? 99 : $game_actors[b].skills[10]
a12 = $game_actors[b].skills[11] == nil ? 99 : $game_actors[b].skills[11]
a13 = $game_actors[b].skills[12] == nil ? 99 : $game_actors[b].skills[12]
a14 = $game_actors[b].skills[13] == nil ? 99 : $game_actors[b].skills[13]
a15 = $game_actors[b].skills[14] == nil ? 99 : $game_actors[b].skills[14]
a16 = $game_actors[b].skills[15] == nil ? 99 : $game_actors[b].skills[15]
a17 = $game_actors[b].skills[16] == nil ? 99 : $game_actors[b].skills[16]
a18 = $game_actors[b].skills[17] == nil ? 99 : $game_actors[b].skills[17]
a19 = $game_actors[b].skills[18] == nil ? 99 : $game_actors[b].skills[18]
a20 = $game_actors[b].skills[19] == nil ? 99 : $game_actors[b].skills[19]
b1 = $data_skills[a1].name
b2 = $data_skills[a2].name
b3 = $data_skills[a3].name
b4 = $data_skills[a4].name
b5 = $data_skills[a5].name
b6 = $data_skills[a6].name
b7 = $data_skills[a7].name
b8 = $data_skills[a8].name
b9 = $data_skills[a9].name
b10 = $data_skills[a10].name
b11 = $data_skills[a11].name
b12 = $data_skills[a12].name
b13 = $data_skills[a13].name
b14 = $data_skills[a14].name
b15 = $data_skills[a15].name
b16 = $data_skills[a16].name
b17 = $data_skills[a17].name
b18 = $data_skills[a18].name
b19 = $data_skills[a19].name
b20 = $data_skills[a20].name
$skillz1 = b1 + "," + b2 + "," + b3
$skillz2 = b4 + "," + b5 + "," + b6
$skillz3 = b7 + "," + b8 + "," + b9
$skillz4 = b10 + "," + b11 + "," + b12
$skillz5 = b13 + "," + b14 + "," + b15
$skillz6 = b16 + "," + b17 + "," + b18
$skillz7 = b19 + "," + b20
#BLOCK 2
self.contents.font.color = text_color(0)
self.contents.draw_text(100, 218, 200, 32, $skillz1.to_s)
self.contents.draw_text(100, 250, 200, 32, $skillz2.to_s)
self.contents.draw_text(100, 282, 200, 32, $skillz3.to_s)
self.contents.draw_text(100, 314, 200, 32, $skillz4.to_s)
self.contents.draw_text(100, 346, 200, 32, $skillz5.to_s)
self.contents.draw_text(100, 378, 200, 32, $skillz6.to_s)
self.contents.draw_text(100, 410, 200, 32, $skillz7.to_s)
I tried a for loop but it crashed because of "a" when I tried
a[i] = $game_actors[b].skills[i]...