Advertisement
Dekita

pops2

Aug 13th, 2014
1,317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.73 KB | None | 0 0
  1. if true # << Make true to use this script, false to disable.
  2. #===============================================================================
  3. #
  4. # ☆ $D13x - Epic Data Popups
  5. # -- Author : Dekita
  6. # -- Version : 1.1
  7. # -- Level : Easy / Normal
  8. # -- Requires : N/A
  9. # -- Engine : RPG Maker VX Ace.
  10. #
  11. #===============================================================================
  12. # ☆ Import
  13. #-------------------------------------------------------------------------------
  14. $D13x={}if$D13x==nil
  15. $D13x[:Epic_Popups]=1.1
  16. #===============================================================================
  17. # ☆ Updates
  18. #-------------------------------------------------------------------------------
  19. # D /M /Y
  20. # 13/o8/2o14 - Bugfix (ISPDS, Skill Lvs, TP Control errors)
  21. # ??/??/2o13 - Started, Finished,
  22. #
  23. #===============================================================================
  24. # ☆ Introduction
  25. #-------------------------------------------------------------------------------
  26. # This script creates some cool popups for the main party leader.
  27. #
  28. # Pops shows are things like; exp gained, level up, SP pts gained, DP pts gained,
  29. # mhp, mmp and params.
  30. #
  31. # VERY helpful for any ABS.
  32. #
  33. #===============================================================================
  34. # ★☆★☆★☆★☆★☆★☆★☆★ TERMS AND CONDITIONS: ☆★☆★☆★☆★☆★☆★☆★☆★☆
  35. #===============================================================================
  36. # 1. You MUST give credit to "Dekita" !!
  37. # 2. You are NOT allowed to repost this script.(or modified versions)
  38. # 3. You are NOT allowed to convert this script.
  39. # 4. You are NOT allowed to use this script for Commercial games.
  40. # 5. ENJOY!
  41. #
  42. # "FINE PRINT"
  43. # By using this script you hereby agree to the above terms and conditions,
  44. # if any violation of the above terms occurs "legal action" may be taken.
  45. # Not understanding the above terms and conditions does NOT mean that
  46. # they do not apply to you.
  47. # If you wish to discuss the terms and conditions in further detail you can
  48. # contact me at http://dekitarpg.wordpress.com/
  49. #
  50. #===============================================================================
  51. # ☆ Instructions
  52. #-------------------------------------------------------------------------------
  53. # Place Below " ▼ Materials " and Above " ▼ Main " in your script editor.
  54. #
  55. #===============================================================================
  56. # ☆ Script Calls
  57. #-------------------------------------------------------------------------------
  58. # $game_temp.show_data_pops
  59. # ^- Ensures data popups are shown.
  60. #
  61. # $game_temp.hide_data_pops
  62. # ^- Ensures data popups are now shown.
  63. #
  64. # $game_temp.alt_data_pops
  65. # ^- alternates hide / show data pops
  66. #
  67. # $game_temp.data_pops_on?
  68. # ^- Returns true / false depending on whether data pops are being shown.
  69. #
  70. #===============================================================================
  71. # ☆ Notetags ( default )
  72. #-------------------------------------------------------------------------------
  73. # N/A
  74. #
  75. #===============================================================================
  76. # ☆ HELP
  77. #-------------------------------------------------------------------------------
  78. # N/A
  79. #
  80. #===============================================================================
  81. module Data_Popups
  82. #===============================================================================
  83. #-----------------------------------------------------------------------------
  84. #
  85. #-----------------------------------------------------------------------------
  86. Show_on_Map = true
  87. Show_in_Battle = true
  88. #-----------------------------------------------------------------------------
  89. # Position after offset slide.
  90. #-----------------------------------------------------------------------------
  91. X_Pos = 542 # X Position
  92. Y_Pos = 360 # Y Position
  93. #-----------------------------------------------------------------------------
  94. # Offset Slide happens before the item fadeout
  95. #-----------------------------------------------------------------------------
  96. X_Offset = -60 # X Slide
  97. Y_Offset = -40 # Y Slide
  98. #-----------------------------------------------------------------------------
  99. # Move happens during the item fadeout
  100. #-----------------------------------------------------------------------------
  101. X_Move = 0 # X Move Speed
  102. Y_Move = -1 # Y Move Speed
  103. #-----------------------------------------------------------------------------
  104. #
  105. #-----------------------------------------------------------------------------
  106. Init_Opacity = 0
  107. Fade_Speed = 2.5
  108. #-----------------------------------------------------------------------------
  109. # Z Value
  110. #-----------------------------------------------------------------------------
  111. Authority = 100
  112. #-----------------------------------------------------------------------------
  113. #
  114. #-----------------------------------------------------------------------------
  115. Font = ["Gabrielle", "VL Gothic", "Arial"]
  116. Font_Size = 16
  117. Font_Bold = true
  118. Font_Italic = false
  119. Value_Size = 12
  120. #-----------------------------------------------------------------------------
  121. #
  122. #-----------------------------------------------------------------------------
  123. Gold_Icon = [361,0] # [icon index, hue]
  124. Gold_Color = Text_Color::Gold
  125. #-----------------------------------------------------------------------------
  126. # :data => [show]
  127. #-----------------------------------------------------------------------------
  128. Settings ={
  129. :exp => [true],
  130. :level => [true],
  131. :dp => [true],
  132. :sp => [true],
  133. :mhp => [true],
  134. :mmp => [true],
  135. :mtp => [true],
  136. :params => [true],
  137. }
  138. #-----------------------------------------------------------------------------
  139. # = ['Name' , icon, hue, Text Color::Color , show_gain]
  140. #-----------------------------------------------------------------------------
  141. Level = ['Level', 97, 0, Text_Color::Green , true]
  142. DP = ['DP' , 97, 0, Text_Color::Gold , true]
  143. SP = ['SP' , 97, 0, Text_Color::Turquoise , true]
  144. #####################
  145. # CUSTOMISATION END #
  146. end #####################
  147. #☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★#
  148. # #
  149. # http://dekitarpg.wordpress.com/ #
  150. # #
  151. #★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆#
  152. #===============================================================================#
  153. # ARE YOU MODIFYING BEYOND THIS POINT? \.\. #
  154. # YES?\.\. #
  155. # OMG, REALLY? \| #
  156. # WELL SLAP MY FACE AND CALL ME A DRAGONITE.\..\.. #
  157. # I REALLY DIDN'T THINK YOU HAD IT IN YOU.\..\.. #
  158. #===============================================================================#
  159. class Game_Temp
  160. #===============================================================================
  161. #-----------------------------------------------------------------------------
  162. #
  163. #-----------------------------------------------------------------------------
  164. alias :init_datapops :initialize
  165. #-----------------------------------------------------------------------------
  166. #
  167. #-----------------------------------------------------------------------------
  168. def initialize
  169. @can_data_pop = true
  170. init_datapops
  171. end
  172. #-----------------------------------------------------------------------------
  173. #
  174. #-----------------------------------------------------------------------------
  175. def data_pops_on?
  176. @can_data_pop
  177. end
  178. #-----------------------------------------------------------------------------
  179. #
  180. #-----------------------------------------------------------------------------
  181. def show_data_pops
  182. @can_data_pop = true
  183. end
  184. #-----------------------------------------------------------------------------
  185. #
  186. #-----------------------------------------------------------------------------
  187. def hide_data_pops
  188. @can_data_pop = false
  189. end
  190. #-----------------------------------------------------------------------------
  191. #
  192. #-----------------------------------------------------------------------------
  193. def alt_data_pops
  194. @can_data_pop = !@can_data_pop
  195. end
  196. end
  197. #===============================================================================
  198. class All_De_Pops
  199. #===============================================================================
  200. #-----------------------------------------------------------------------------
  201. #
  202. #-----------------------------------------------------------------------------
  203. attr_reader :name
  204. attr_reader :icon_hue
  205. attr_reader :icon_index
  206. attr_reader :item_disp_color
  207. end
  208. #===============================================================================
  209. class Popup_Level < All_De_Pops
  210. #===============================================================================
  211. #-----------------------------------------------------------------------------
  212. #
  213. #-----------------------------------------------------------------------------
  214. def initialize
  215. @name = Data_Popups::Level[0]
  216. @icon_hue = Data_Popups::Level[2]
  217. @icon_index = Data_Popups::Level[1]
  218. @item_disp_color = Data_Popups::Level[3]
  219. end
  220. end
  221. #===============================================================================
  222. class Popup_DP < All_De_Pops
  223. #===============================================================================
  224. #-----------------------------------------------------------------------------
  225. #
  226. #-----------------------------------------------------------------------------
  227. def initialize
  228. @name = Data_Popups::DP[0]
  229. @icon_hue = Data_Popups::DP[2]
  230. @icon_index = Data_Popups::DP[1]
  231. @item_disp_color = Data_Popups::DP[3]
  232. end
  233. end
  234. #===============================================================================
  235. class Popup_SP < All_De_Pops
  236. #===============================================================================
  237. #-----------------------------------------------------------------------------
  238. #
  239. #-----------------------------------------------------------------------------
  240. def initialize
  241. @name = Data_Popups::SP[0]
  242. @icon_hue = Data_Popups::SP[2]
  243. @icon_index = Data_Popups::SP[1]
  244. @item_disp_color = Data_Popups::SP[3]
  245. end
  246. end
  247. #===============================================================================
  248. class Popup_Statistic < All_De_Pops
  249. #===============================================================================
  250. #-----------------------------------------------------------------------------
  251. #
  252. #-----------------------------------------------------------------------------
  253. def initialize(type,id)
  254. case type
  255. when :params then stat = Vocanicon.param(id)
  256. when :xparams then stat = Vocanicon.xparam(id)
  257. when :sparams then stat = Vocanicon.sparam(id)
  258. when :max_tp then stat = Vocanicon::TP
  259. when :exp then stat = Vocanicon::Exp
  260. end
  261. @name = stat[0]
  262. if (type == :params) && (id == 0 || 1 || 2 ) || (type == :max_tp)
  263. @name = "Max " + stat[0]
  264. end
  265. @icon_hue = stat[3]
  266. @icon_index = stat[2]
  267. @item_disp_color = stat[1]
  268. end
  269. end
  270. #===============================================================================
  271. class Epic_Pop_Data
  272. #===============================================================================
  273. #-----------------------------------------------------------------------------
  274. #
  275. #-----------------------------------------------------------------------------
  276. def initialize
  277. @timer_d = 24
  278. @timer = 0
  279. @actor = $game_party.leader
  280. @exp = @actor.exp
  281. @level = @actor.level
  282. @points = @actor.points if $D13x[:ISPDS]
  283. @sklpts = @actor.skill_points if $D13x[:Skill_Lv]
  284. @mhp = @actor.mhp
  285. @mmp = @actor.mmp
  286. @mtp = $D13x[:TP_Control] ? @actor.maximum_tp : 100
  287. @params = []
  288. 6.times do |i|
  289. @params[i] = @actor.param(i+2)
  290. end
  291. end
  292. #-----------------------------------------------------------------------------
  293. #
  294. #-----------------------------------------------------------------------------
  295. def update
  296. @timer -= 1
  297. return if @timer > 0
  298. @timer = @timer_d
  299. if Data_Popups::Settings[:exp][0]
  300. return if update_exp
  301. end
  302. if Data_Popups::Settings[:level][0]
  303. return if update_level
  304. end
  305. if Data_Popups::Settings[:dp][0]
  306. return if update_points
  307. end
  308. if Data_Popups::Settings[:sp][0]
  309. return if update_sklpts
  310. end
  311. if Data_Popups::Settings[:mhp][0]
  312. return if update_mhp
  313. end
  314. if Data_Popups::Settings[:mmp][0]
  315. return if update_mmp
  316. end
  317. if Data_Popups::Settings[:mtp][0]
  318. return if update_mtp
  319. end
  320. if Data_Popups::Settings[:params][0]
  321. return if update_params
  322. end
  323. end
  324. #-----------------------------------------------------------------------------
  325. #
  326. #-----------------------------------------------------------------------------
  327. def update_exp
  328. return false unless @exp != @actor.exp
  329. gain = @actor.exp-@exp
  330. # gain = nil unless Data_Popups::Level[4]
  331. make_popup(:exp,nil,gain.to_i)
  332. @exp = @actor.exp
  333. return true
  334. end
  335. #-----------------------------------------------------------------------------
  336. #
  337. #-----------------------------------------------------------------------------
  338. def update_level
  339. return false unless @level != @actor.level
  340. gain = @actor.level-@level
  341. gain = nil unless Data_Popups::Level[4]
  342. make_popup(:level,nil,gain.to_i)
  343. @level = @actor.level
  344. @exp = @actor.exp
  345. return true
  346. end
  347. #-----------------------------------------------------------------------------
  348. #
  349. #-----------------------------------------------------------------------------
  350. def update_points
  351. return unless $D13x[:ISPDS]
  352. return false unless @points != @actor.points
  353. gain = @actor.points-@points
  354. gain = nil unless Data_Popups::DP[4]
  355. make_popup(:points,nil,gain.to_i)
  356. @points = @actor.points
  357. return true
  358. end
  359. #-----------------------------------------------------------------------------
  360. #
  361. #-----------------------------------------------------------------------------
  362. def update_sklpts
  363. return unless $D13x[:Skill_Lv]
  364. return false unless @sklpts != @actor.skill_points
  365. gain = @actor.skill_points-@sklpts
  366. make_popup(:sklpts,nil,gain.to_i)
  367. @sklpts = @actor.skill_points
  368. return true
  369. end
  370. #-----------------------------------------------------------------------------
  371. #
  372. #-----------------------------------------------------------------------------
  373. def update_mhp
  374. return false unless @mhp != @actor.mhp
  375. gain = @actor.mhp-@mhp
  376. make_popup(:params,0,gain.to_i)
  377. @mhp = @actor.mhp
  378. return true
  379. end
  380. #-----------------------------------------------------------------------------
  381. #
  382. #-----------------------------------------------------------------------------
  383. def update_mmp
  384. return false unless @mmp != @actor.mmp
  385. gain = @actor.mmp-@mmp
  386. make_popup(:params,1,gain.to_i)
  387. @mmp = @actor.mmp
  388. return true
  389. end
  390. #-----------------------------------------------------------------------------
  391. #
  392. #-----------------------------------------------------------------------------
  393. def update_mtp
  394. return unless $D13x[:TP_Control]
  395. return false unless @mtp != @actor.maximum_tp
  396. gain = @actor.maximum_tp-@mtp
  397. make_popup(:max_tp,0,gain.to_i)
  398. @mtp = @actor.maximum_tp
  399. return true
  400. end
  401. #-----------------------------------------------------------------------------
  402. #
  403. #-----------------------------------------------------------------------------
  404. def update_params
  405. return_val = true
  406. 6.times do |i|
  407. next unless return_val
  408. next unless @params[i] != @actor.param(i+2)
  409. gain = @actor.param(i+2)-@params[i]
  410. make_popup(:params,i+2,gain.to_i)
  411. @params[i] = @actor.param(i+2)
  412. return_val = false
  413. end
  414. return return_val
  415. end
  416. #-----------------------------------------------------------------------------
  417. #
  418. #-----------------------------------------------------------------------------
  419. def make_popup(type,id,value)
  420. return unless $game_temp.item_pops_on?
  421. case type
  422. when :level then item = Popup_Level.new
  423. when :points then item = Popup_DP.new
  424. when :sklpts then item = Popup_SP.new
  425. when :params, :max_tp, :exp
  426. item = Popup_Statistic.new(type,id)
  427. end
  428. return unless item
  429. # play_pop_noise(type)
  430. display_popup(item,value)
  431. end
  432. #-----------------------------------------------------------------------------
  433. #
  434. #-----------------------------------------------------------------------------
  435. def play_pop_noise(type)
  436. v = Item_Popping::Sound_Fx[type]
  437. Audio.se_play("Audio\\SE\\#{v[0]}",v[1],v[2])
  438. end
  439. #-----------------------------------------------------------------------------
  440. #
  441. #-----------------------------------------------------------------------------
  442. def display_popup(item,value)
  443. SceneManager.scene.spriteset.init_data_popups(item,value)
  444. end
  445. end
  446. #===============================================================================
  447. class Sprite_PopData < Sprite
  448. #===============================================================================
  449. #-----------------------------------------------------------------------------
  450. #
  451. #-----------------------------------------------------------------------------
  452. attr_reader :finished
  453. #-----------------------------------------------------------------------------
  454. # Initialize
  455. #-----------------------------------------------------------------------------
  456. def initialize(vp=nil,item=nil,amo=0)
  457. super(vp)
  458. self.x = Data_Popups::X_Pos - Data_Popups::X_Offset
  459. self.y = Data_Popups::Y_Pos - Data_Popups::Y_Offset
  460. self.opacity = Data_Popups::Init_Opacity
  461. self.bitmap = Bitmap.new(152,24)
  462. self.z = 300
  463. init_icon(item.icon_index,item.icon_hue)
  464. init_text(item)
  465. init_amount(item,amo)
  466. @starting = true
  467. @finished = false
  468. end
  469. #-----------------------------------------------------------------------------
  470. #
  471. #-----------------------------------------------------------------------------
  472. def init_icon(icon=0,hue=0)
  473. @icon = Cache.icon(IconEvents::Set,hue)
  474. rect = Rect.new(icon % 16 * 24, icon / 16 * 24, 24, 24)
  475. self.bitmap.blt(0, 0, @icon, rect)
  476. @icon.dispose
  477. @icon = nil
  478. end
  479. #-----------------------------------------------------------------------------
  480. #
  481. #-----------------------------------------------------------------------------
  482. def init_text(item)
  483. x = item.icon_index != 0 ? 24 : 0
  484. self.bitmap.font.name = Data_Popups::Font
  485. self.bitmap.font.size = Data_Popups::Font_Size
  486. self.bitmap.font.bold = Data_Popups::Font_Bold
  487. self.bitmap.font.italic = Data_Popups::Font_Italic
  488. self.bitmap.font.color = item.item_disp_color
  489. self.bitmap.draw_text(x,-2,128,24, item.name)
  490. end
  491. #-----------------------------------------------------------------------------
  492. #
  493. #-----------------------------------------------------------------------------
  494. def init_amount(item,amount)
  495. x = item.icon_index != 0 ? 20 : 0
  496. return unless amount
  497. self.bitmap.font.name = Data_Popups::Font
  498. self.bitmap.font.size = Data_Popups::Value_Size
  499. self.bitmap.font.bold = Data_Popups::Font_Bold
  500. self.bitmap.font.italic = Data_Popups::Font_Italic
  501. self.bitmap.font.color = item.item_disp_color
  502. amount > 0 ? amount = "+#{amount}" : "-#{amount}"
  503. self.bitmap.draw_text(x,8,128,24,amount)
  504. end
  505. #-----------------------------------------------------------------------------
  506. # Dispose
  507. #-----------------------------------------------------------------------------
  508. def dispose
  509. super
  510. if self.bitmap != nil
  511. self.bitmap.dispose
  512. end
  513. end
  514. #-----------------------------------------------------------------------------
  515. # Update
  516. #-----------------------------------------------------------------------------
  517. def update
  518. super
  519. if @starting
  520. self.x += 1 if self.x < Data_Popups::X_Pos
  521. self.y += 1 if self.y < Data_Popups::Y_Pos
  522. self.x -= 1 if self.x > Data_Popups::X_Pos
  523. self.y -= 1 if self.y > Data_Popups::Y_Pos
  524. else
  525. self.x += Data_Popups::X_Move
  526. self.y += Data_Popups::Y_Move
  527. end
  528. if @starting
  529. self.opacity += (Data_Popups::Fade_Speed*2)
  530. @starting = false if self.opacity >= 255
  531. else
  532. self.opacity -= Data_Popups::Fade_Speed
  533. if self.opacity <= 0
  534. @finished = true
  535. end
  536. end
  537. end
  538. end
  539. #===============================================================================
  540. module Spriteset_DataPopup
  541. #===============================================================================
  542. #-----------------------------------------------------------------------------
  543. #
  544. #-----------------------------------------------------------------------------
  545. def load_datapop_data
  546. disp_data_popups
  547. @data_pops = []
  548. @datapopup_vp = Viewport.new(0,0,152, Graphics.height)
  549. @datapopup_vp.z = Data_Popups::Authority
  550. end
  551. #-----------------------------------------------------------------------------
  552. #
  553. #-----------------------------------------------------------------------------
  554. def init_data_popups(item,amo=0)
  555. return unless amo != 0
  556. @data_pops << Sprite_PopData.new(@datapopup_vp,item,amo)
  557. end
  558. #-----------------------------------------------------------------------------
  559. #
  560. #-----------------------------------------------------------------------------
  561. def disp_data_popups
  562. return unless @data_pops
  563. @data_pops.each do |i|
  564. next unless i.disposed?
  565. i.dispose
  566. @data_pops.delete(i)
  567. end
  568. @datapopup_vp.dispose
  569. end
  570. #-----------------------------------------------------------------------------
  571. #
  572. #-----------------------------------------------------------------------------
  573. def updt_data_popups
  574. return load_datapop_data unless @data_pops
  575. @data_pops.each do |i|
  576. next if i.disposed?
  577. i.update
  578. i.dispose if i.finished
  579. end
  580. end
  581. end
  582. #===============================================================================
  583. module Spriteset_DataPopup
  584. #===============================================================================
  585. def load_datapop_data
  586. disp_data_popups
  587. @data_pops = []
  588. # @datapopup_vp = Viewport.new(0,0,152, Graphics.height)
  589. # @datapopup_vp.z = Data_Popups::Authority
  590. end
  591. #-----------------------------------------------------------------------------
  592. #
  593. #-----------------------------------------------------------------------------
  594. def init_data_popups(item,amo=0)
  595. return unless amo != 0
  596. @data_pops << Sprite_PopData.new(@deki_vp,item,amo)
  597. end
  598. #-----------------------------------------------------------------------------
  599. #
  600. #-----------------------------------------------------------------------------
  601. def disp_data_popups
  602. return unless @data_pops
  603. @data_pops.each do |i|
  604. next unless i.disposed?
  605. i.dispose
  606. @data_pops.delete(i)
  607. end
  608. # @datapopup_vp.dispose
  609. end
  610. #-----------------------------------------------------------------------------
  611. #
  612. #-----------------------------------------------------------------------------
  613. def updt_data_popups
  614. return load_datapop_data unless @data_pops
  615. @data_pops.each do |i|
  616. next if i.disposed?
  617. i.update
  618. i.dispose if i.finished
  619. end
  620. end
  621. end
  622. #===============================================================================
  623. module Spriteset_DataPop
  624. #===============================================================================
  625. #-----------------------------------------------------------------------------
  626. #
  627. #-----------------------------------------------------------------------------
  628. include Spriteset_DataPopup
  629. #-----------------------------------------------------------------------------
  630. # Initialize
  631. #-----------------------------------------------------------------------------
  632. def init_datapop
  633. @data_pop = Epic_Pop_Data.new
  634. load_datapop_data
  635. end
  636. #-----------------------------------------------------------------------------
  637. # Dispose
  638. #-----------------------------------------------------------------------------
  639. def disp_datapop
  640. disp_data_popups
  641. end
  642. #-----------------------------------------------------------------------------
  643. # Update
  644. #-----------------------------------------------------------------------------
  645. def updt_datapop
  646. updt_data_popups
  647. @data_pop.update
  648. end
  649. end
  650. #===============================================================================
  651. class Spriteset_Map
  652. #===============================================================================
  653. #-----------------------------------------------------------------------------
  654. # Included Modules
  655. #-----------------------------------------------------------------------------
  656. include Spriteset_DataPop
  657. #-----------------------------------------------------------------------------
  658. # Alias List
  659. #-----------------------------------------------------------------------------
  660. alias :init_otherpop :initialize
  661. alias :disp_otherpop :dispose
  662. alias :updt_otherpop :update
  663. #-----------------------------------------------------------------------------
  664. # Initialize
  665. #-----------------------------------------------------------------------------
  666. def initialize
  667. init_datapop if Data_Popups::Show_on_Map
  668. init_otherpop
  669. end
  670. #-----------------------------------------------------------------------------
  671. # Dispose
  672. #-----------------------------------------------------------------------------
  673. def dispose
  674. disp_datapop if Data_Popups::Show_on_Map
  675. disp_otherpop
  676. end
  677. #-----------------------------------------------------------------------------
  678. # Update
  679. #-----------------------------------------------------------------------------
  680. def update
  681. updt_datapop if Data_Popups::Show_on_Map
  682. updt_otherpop
  683. end
  684. end
  685. #===============================================================================
  686. class Spriteset_Battle
  687. #===============================================================================
  688. #-----------------------------------------------------------------------------
  689. # Included Modules
  690. #-----------------------------------------------------------------------------
  691. include Spriteset_DataPop
  692. #-----------------------------------------------------------------------------
  693. # Alias List
  694. #-----------------------------------------------------------------------------
  695. alias :init_otherpop :initialize
  696. alias :disp_otherpop :dispose
  697. alias :updt_otherpop :update
  698. #-----------------------------------------------------------------------------
  699. # Initialize
  700. #-----------------------------------------------------------------------------
  701. def initialize
  702. init_datapop if Data_Popups::Show_in_Battle
  703. init_otherpop
  704. end
  705. #-----------------------------------------------------------------------------
  706. # Dispose
  707. #-----------------------------------------------------------------------------
  708. def dispose
  709. disp_datapop if Data_Popups::Show_in_Battle
  710. disp_otherpop
  711. end
  712. #-----------------------------------------------------------------------------
  713. # Update
  714. #-----------------------------------------------------------------------------
  715. def update
  716. updt_datapop if Data_Popups::Show_in_Battle
  717. updt_otherpop
  718. end
  719. end
  720. #==============================================================================#
  721. # http://dekitarpg.wordpress.com/ #
  722. #==============================================================================#
  723. end # if true # << Make true to use this script, false to disable.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement