Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #===============================================================================
- # * [ACE] Tool Graphic Z Mod for Falcao's Pearl ABS Liquid v3
- #===============================================================================
- # * Made by: Sixth (www.rpgmakervxace.net, www.forums.rpgmakerweb.com)
- # * Version: 1.0
- # * Updated: 06/01/2016
- # * Requires: Falcao's Pearl ABS Liquid v3
- #-------------------------------------------------------------------------------
- # * < Change Log >
- #-------------------------------------------------------------------------------
- # * Version 1.0 (06/01/2016)
- # - Initial release.
- #-------------------------------------------------------------------------------
- # * < Description >
- #-------------------------------------------------------------------------------
- # * This script will set the Z value of the tool graphics below the user if the
- # user is facing up. It might be easier to make your tool graphics that way.
- #-------------------------------------------------------------------------------
- # * < Installation >
- #-------------------------------------------------------------------------------
- # * Place this scipt below the last script from Falcao's Pearl ABS Liquid v3
- # script series but above Main!
- #-------------------------------------------------------------------------------
- # * < Compatibility Info >
- #-------------------------------------------------------------------------------
- # * No known incompatibilities.
- #-------------------------------------------------------------------------------
- # * < Known Issues >
- #-------------------------------------------------------------------------------
- # * No known issues.
- #-------------------------------------------------------------------------------
- # * < Terms of Use >
- #-------------------------------------------------------------------------------
- # * Free to use for whatever purposes you want.
- # * Credit me (Sixth) in your game, pretty please! :P
- # * Posting modified versions of this script is allowed as long as you notice me
- # about it with a link to it!
- #===============================================================================
- $imported = {} if $imported.nil?
- $imported["SixthABSToolGraphicZMod"] = true
- #===============================================================================
- # No settings! O.o
- #===============================================================================
- class Game_CharacterBase
- alias set_newz4444 screen_z
- def screen_z
- if !self.nil? && (self.is_a?(Game_Player) || self.is_a?(Game_Follower))
- return set_newz4444 unless self.actor
- return set_newz4444 + self.actor.index + 1
- end
- return set_newz4444
- end
- end
- class Sprite_Character < Sprite_Base
- alias add_z_change9922 update_anime_object_pos
- def update_anime_object_pos
- add_z_change9922
- if @character.is_a?(Anime_Obj)
- if @character.direction == 8
- self.z = @character.user.screen_z - 1
- end
- end
- end
- end
- #==============================================================================
- # !!END OF SCRIPT - OHH, NOES!!
- #==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement