Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =begin
- Fix for Yami's Overlay Mapping script
- Made by: Sixth
- This is a fix for Yami's Overlay script.
- Using this, the overlay images will work even in encrypted projects.
- Note that this requires you to setup the layer settings for your maps!
- So, before you test it, you must add a layer setting for all of your maps in
- the setting area! Maps without a setting here will NOT show ANY overlay images!
- Also, there will be no check for missing files anymore, so if you miss an
- image file for a map, your game WILL crash if the player enters that map!
- The check for missing files was the reason it didn't work in encrypted projects,
- so it had to be removed. The setting area of this script is made to allow
- control of which maps should use which overlay images, and your settings alone
- will be the substitutes for the removed file checks.
- Bottom line:
- Make sure to set your settings up correctly!
- Installation:
- This huge script (:D) goes below Yami's Overlay Mapping script!
- =end
- module OLFix
- # Setting format:
- #
- # map_id => ["layerX","layerY",...],
- #
- # The "layerX", "layerY", etc can be replaced by any of the followings:
- #
- # - "ground" # Enables the ground overlay image for the map.
- # - "light" # Enables the light overlay image for the map.
- # - "shadow" # Enables the shadow overlay image for the map.
- # - "par" # Enables the... I don't really know, but you should, if you use
- # Yami's Overlay script, right? :D
- #
- # So, add these into the array settings for your maps to enable the specified
- # overlay images for your maps.
- # Only the included overlay images will show up for the maps!
- #
- Setup = {
- # map_id => ["layerX","layerY",...],
- 1 => ["ground","light","shadow","par"],
- 2 => ["ground","shadow"],
- # <-- Add more map settings here!
- }
- end
- # End of settings! O_O
- class Spriteset_Map
- def check_file(type)
- return false unless OLFix::Setup[$game_map.map_id]
- return OLFix::Setup[$game_map.map_id].include?(type)
- end
- end
- # End of script! I know, it was huge! :D
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement