Advertisement
TheSixth

Tool Graphic Z Mod for Falcao's ABS by Sixth

Jan 5th, 2016
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 3.17 KB | None | 0 0
  1. #===============================================================================
  2. # * [ACE] Tool Graphic Z Mod for Falcao's Pearl ABS Liquid v3
  3. #===============================================================================
  4. # * Made by: Sixth (www.rpgmakervxace.net, www.forums.rpgmakerweb.com)
  5. # * Version: 1.0
  6. # * Updated: 06/01/2016
  7. # * Requires: Falcao's Pearl ABS Liquid v3
  8. #-------------------------------------------------------------------------------
  9. # * < Change Log >
  10. #-------------------------------------------------------------------------------
  11. # * Version 1.0 (06/01/2016)
  12. #   - Initial release.
  13. #-------------------------------------------------------------------------------
  14. # * < Description >
  15. #-------------------------------------------------------------------------------
  16. # * This script will set the Z value of the tool graphics below the user if the
  17. #   user is facing up. It might be easier to make your tool graphics that way.
  18. #-------------------------------------------------------------------------------
  19. # * < Installation >
  20. #-------------------------------------------------------------------------------
  21. # * Place this scipt below the last script from Falcao's Pearl ABS Liquid v3
  22. #   script series but above Main!
  23. #-------------------------------------------------------------------------------
  24. # * < Compatibility Info >
  25. #-------------------------------------------------------------------------------
  26. # * No known incompatibilities.
  27. #-------------------------------------------------------------------------------
  28. # * < Known Issues >
  29. #-------------------------------------------------------------------------------
  30. # * No known issues.
  31. #-------------------------------------------------------------------------------
  32. # * < Terms of Use >
  33. #-------------------------------------------------------------------------------
  34. # * Free to use for whatever purposes you want.
  35. # * Credit me (Sixth) in your game, pretty please! :P
  36. # * Posting modified versions of this script is allowed as long as you notice me
  37. #   about it with a link to it!
  38. #===============================================================================
  39. $imported = {} if $imported.nil?
  40. $imported["SixthABSToolGraphicZMod"] = true
  41. #===============================================================================
  42. # No settings! O.o
  43. #===============================================================================
  44. class Game_CharacterBase
  45.  
  46.   alias set_newz4444 screen_z
  47.   def screen_z
  48.     if !self.nil? && (self.is_a?(Game_Player) || self.is_a?(Game_Follower))
  49.       return set_newz4444 unless self.actor
  50.       return set_newz4444 + self.actor.index + 1
  51.     end
  52.     return set_newz4444
  53.   end
  54.  
  55. end
  56.  
  57. class Sprite_Character < Sprite_Base
  58.  
  59.   alias add_z_change9922 update_anime_object_pos
  60.   def update_anime_object_pos
  61.     add_z_change9922
  62.     if @character.is_a?(Anime_Obj)
  63.       if @character.direction == 8
  64.         self.z = @character.user.screen_z - 1
  65.       end
  66.     end
  67.   end
  68.  
  69. end
  70. #==============================================================================
  71. # !!END OF SCRIPT - OHH, NOES!!
  72. #==============================================================================
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement