$game_party.actors.map { |a| a.hp }
# 不想去给 Game_Actors 定义接口了,就这么凑合着看吧 actors = $game_actors.instance_variable_get(:@data) result = {} actors.each_with_index do |actor, id| result[id] = actor.hp if actor end p result
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |