Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Dump
- def self.Write
- txt = "SWITCHES: \n"
- $data_system.switches.each.with_index do |v,i|
- txt += "\n[Switch " + i.to_s + "] " + v.to_s + " = "
- txt += $game_switches[i] ? "[ON]" : "[OFF]"
- end
- txt += "\n\n====================\n\n"
- txt += "VARIABLES: \n"
- $data_system.variables.each.with_index do |v,i|
- txt += "\n[Variable " + i.to_s + "] " + v.to_s + " = "
- txt += $game_variables[i].to_s
- end
- open('dump.txt', 'w') { |f|
- f.puts txt
- }
- end
- end
Add Comment
Please, Sign In to add comment