>>766
Rubyなら
$game_variables[$game_variables[1]] += 5
だけでイケた処理。JavaScriptだとどうしても冗長になる