when "gameover" call_gameover
when "gameover"
class Window_Variabel < Window_Base def initialize(x,y) super(x, y, 160, WLH + 50) refresh end #--------------------------------------------------------- def refresh if $game_variables[1] > 999999 $game_variables[1] = 999999 end text = $game_variables[1] @punkte = $game_variables[1] #------------------------------------------------------------ self.contents.clear self.contents.draw_text(30, 0, 160, WLH, "Punkte: ") self.contents.draw_text(22, 20, 160, WLH, " " + "#{text}") #------------------------------------------------------------ def update if $game_variables[1] != @punkte refresh end end end end
class Game_Interpreter def command_311 value = operate_value(@params[1], @params[2], @params[3]) iterate_actor_id(@params[0]) do |actor| next if actor.dead? if @params[4] == false and actor.hp + value <= 0 actor.hp = 1 # If incapacitation is not allowed, make 1 else actor.hp += value end actor.perform_collapse end return true endend