Advertisement
Dekita

Battle Weather

Jan 8th, 2013
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. =begin =========================================================================
  2. Dekita's v1.0
  3. ★ Battle Weather Effects™ ★
  4.  
  5. ================================================================================
  6. Script Information:
  7. ====================
  8. This script is VERY simple, it creates current game weather in battle.
  9.  
  10. ================================================================================
  11. ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  12. ================================================================================
  13. 1. You must give credit to "Dekita"
  14. 2. You are NOT allowed to repost this script.(or modified versions)
  15. 3. You are NOT allowed to convert this script.(into other game engines e.g RGSS2)
  16. 4. You are NOT allowed to use this script for Commercial games.
  17. 5. ENJOY!
  18.  
  19. "FINE PRINT"
  20. By using this script you hereby agree to the above terms and conditions,
  21. if any violation of the above terms occurs "legal action" may be taken.
  22. Not understanding the above terms and conditions does NOT mean that
  23. they do not apply to you.
  24. If you wish to discuss the terms and conditions in further detail you can
  25. contact me at http://dekitarpg.wordpress.com/ or DekitaRPG@gmail.com
  26.  
  27. ================================================================================
  28. History:
  29. =========
  30. D /M /Y
  31. 06/01/2o13 - started && finished,
  32.  
  33. ================================================================================
  34. INSTRUCTIONS:
  35. ==============
  36. Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
  37.  
  38. =end #==========================================================================#
  39. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  40. # #
  41. # http://dekitarpg.wordpress.com/ #
  42. # #
  43. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  44. #===============================================================================#
  45. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  46. # YES?\.\. #
  47. # OMG, REALLY? \| #
  48. # WELL SLAP MY FACE AND CALL ME A DITTO.\..\.. #
  49. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  50. #===============================================================================#
  51.  
  52. $imported = {} if $imported.nil?
  53. $imported[:Dekita_Battle_Weather] = true
  54.  
  55. #==============================================================================
  56. class Spriteset_Battle
  57. #==============================================================================
  58.  
  59. alias :i_battle_weather :initialize
  60. alias :d_battle_weather :dispose
  61. alias :u_battle_weather :update
  62.  
  63. def initialize
  64. i_battle_weather
  65. create_weather
  66. end
  67.  
  68. def dispose
  69. d_battle_weather
  70. dispose_weather if @weather != nil
  71. end
  72.  
  73. def update
  74. u_battle_weather
  75. update_weather if @weather != nil
  76. end
  77.  
  78. def create_weather
  79. return if $game_map.screen.weather_type == :none
  80. @weather = Spriteset_Weather.new(@viewport2)
  81. end
  82.  
  83. def dispose_weather
  84. @weather.dispose
  85. end
  86.  
  87. def update_weather
  88. @weather.type = $game_map.screen.weather_type
  89. @weather.power = $game_map.screen.weather_power
  90. @weather.ox = $game_map.display_x * 32
  91. @weather.oy = $game_map.display_y * 32
  92. @weather.update
  93. end
  94.  
  95. end
  96.  
  97. #==============================================================================#
  98. # - SCRIPT END - #
  99. #==============================================================================#
  100. # http://dekitarpg.wordpress.com/ #
  101. #==============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement