举个例子,先定义“任务奖励”,如何在Scene_Battle类中引用我定义的这个“任务奖励”?
class Game_Interpreter
def 任务奖励
$game_variables[42] += 5
a = $data_items[52]
$game_party.gain_item(a,1)
show_gain_window(1,1,a)
a = $data_items[290]
$game_party.gain_item(a,1)
show_gain_window(1,1,a)
a = $data_items[16]
$game_party.gain_item(a,1)
show_gain_window(1,1,a)
end
end