Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Scene_Battle < Scene_Base
- def store_character_data( actor )
- @character_stored_data = {} if @character_stored_data.nil?()
- @character_stored_data[actor] = [ actor.character_name, actor.character_index,
- actor.face_name, actor.face_index ]
- end
- alias cg_rest_battle_end battle_end unless $@
- def battle_end( result )
- cg_rest_battle_end( result )
- restore_graphics()
- end
- def restore_graphics()
- @character_stored_data = {} if @character_stored_data.nil?()
- @character_stored_data.keys.each { |a|
- cn, ci, fn, fi = *@character_stored_data[a]
- a.set_graphic( cn, ci, fn, fi )
- }
- @character_stored_data.clear
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment