Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Interpreter
- def get_picture_name(name, emotion)
- a = Dir.entries("Graphics/Pictures").select {|i| i =~ /%\[(\d+),?\s*?(\d*?)\]#{name}-#{emotion}/}
- return !a.empty? ? a[0] : nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement