Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Window_baru<Window_Base
- def initialize
- super(0,0,100,50)
- refresh
- end
- def refresh
- contents.clear
- @nilai = 1
- draw_actor_hp($game_actors[1], 0, 0)if $game_party.members.include?($game_actors[1])
- end
- def value
- $game_variables[1]
- end
- def update
- super
- refresh
- if @nilai == value
- self.visible = false
- elsif
- self.visible = true
- end
- end
- end
- class Scene_Map<Scene_Base
- alias belajar_window start
- def start
- belajar_window
- @vhud = Window_baru.new
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement