Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. class Window_baru<Window_Base
  2. def initialize
  3. super(0,0,100,50)
  4. refresh
  5. end
  6.  
  7. def refresh
  8. contents.clear
  9. @nilai = 1
  10. draw_actor_hp($game_actors[1], 0, 0)if $game_party.members.include?($game_actors[1])
  11. end
  12.  
  13. def value
  14. $game_variables[1]
  15. end
  16.  
  17. def update
  18. super
  19. refresh
  20. if @nilai == value
  21. self.visible = false
  22. elsif
  23. self.visible = true
  24. end
  25.  
  26. end
  27.  
  28. end
  29.  
  30.  
  31. class Scene_Map<Scene_Base
  32.  
  33. alias belajar_window start
  34. def start
  35. belajar_window
  36. @vhud = Window_baru.new
  37. end
  38. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement