IceDragon200

StopPopSnippet

Jun 9th, 2011
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.70 KB | None | 0 0
  1. # // Place this below Global Text Pop
  2. class Game_Event
  3.  
  4.   attr_accessor :nopop_event
  5.  
  6.   alias pop_stop_setup setup unless $@
  7.   def setup( new_page )
  8.     @nopop_event = @event.name.scan(/\[nopop\]/i).size > 0
  9.     pop_stop_setup( new_page )
  10.   end
  11.  
  12. end
  13.  
  14. class Sprite_Character < Sprite_Base
  15.  
  16.   def update()
  17.     iex_yggdrasil_text_pop_patch_update()
  18.     unless @ixtp_text_pop.empty?
  19.       if $scene.is_a?( Scene_Map )
  20.         if @character.is_a?( Game_Event )
  21.       $scene.iex_ygg_global_text_pops += @ixtp_text_pop unless @character.nopop_event
  22.     else  
  23.       $scene.iex_ygg_global_text_pops += @ixtp_text_pop
  24.     end  
  25.     @ixtp_text_pop.clear
  26.     @ixtp_text_pop = []
  27.       end
  28.     end    
  29.   end
  30.  
  31. end
Advertisement
Add Comment
Please, Sign In to add comment