Advertisement
Dekita

battle weather1.1

Jan 10th, 2013
1,890
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.61 KB | None | 0 0
  1. =begin =========================================================================
  2. Dekita's v1.1
  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. 09/01/2o13 - fixed "delay on battle start" bug,
  32. 06/01/2o13 - started && finished,
  33.  
  34. ================================================================================
  35. INSTRUCTIONS:
  36. ==============
  37. Place this script UNDER "▼ Materials" and ABOVE "▼ Main" in your script editor.
  38.  
  39. =end #==========================================================================#
  40. module Battle_Weather
  41.  
  42. Use_Script = true
  43.  
  44. end #####################
  45. # CUSTOMISATION END #
  46. #####################
  47. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  48. # #
  49. # http://dekitarpg.wordpress.com/ #
  50. # #
  51. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  52. #===============================================================================#
  53. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  54. # YES?\.\. #
  55. # OMG, REALLY? \| #
  56. # WELL SLAP MY FACE AND CALL ME A DITTO.\..\.. #
  57. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  58. #===============================================================================#
  59.  
  60. $imported = {} if $imported.nil?
  61. $imported[:Dekita_Battle_Weather] = true
  62.  
  63. #==============================================================================
  64. class Spriteset_Battle
  65. #==============================================================================
  66.  
  67. alias :i_battle_weather :create_viewports
  68. alias :d_battle_weather :dispose
  69. alias :u_battle_weather :update
  70.  
  71. def create_viewports
  72. i_battle_weather
  73. create_weather if Battle_Weather::Use_Script
  74. end
  75.  
  76. def dispose
  77. d_battle_weather
  78. dispose_weather if @weather != nil
  79. end
  80.  
  81. def update
  82. u_battle_weather
  83. update_weather if @weather != nil
  84. end
  85.  
  86. def create_weather
  87. return if $game_map.screen.weather_type == :none
  88. @weather = Spriteset_Weather.new(@viewport2)
  89. @weather.type = $game_map.screen.weather_type
  90. @weather.power = $game_map.screen.weather_power
  91. @weather.ox = $game_map.display_x * 32
  92. @weather.oy = $game_map.display_y * 32
  93. end
  94.  
  95. def update_weather
  96. @weather.update
  97. end
  98.  
  99. def dispose_weather
  100. @weather.dispose
  101. end
  102.  
  103. end
  104.  
  105. #==============================================================================#
  106. # - SCRIPT END - #
  107. #==============================================================================#
  108. # http://dekitarpg.wordpress.com/ #
  109. #==============================================================================#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement