luistop12Miér Ene 16, 2013 6:19 pm
SUPER MODERADOR
este simpatico script nos da una simple ventana de resultado no como el aftermath ya que este es mas simple y mas compatible
credito:woratana
- Código:
#===============================================================
# ? [VX] ? Battle Result Window ? ?
#--------------------------------------------------------------
# ? by Woratana [woratana@hotmail.com]
# ? Thaiware RPG Maker Community
# ? Released on: 03/08/2008
# ? Version: 1.0
#--------------------------------------------------------------
class Window_Battle_Result < Window_Base
def initialize(result_data)
super(0, 0, 516, 32 + (WLH * ($game_party.members.size + 2)) )
self.z = 10001
contents.font.color = normal_color
contents.draw_text(0, 0, contents.width, WLH, result_data[0])
contents.draw_text(0, WLH, contents.width, WLH, result_data[1])
$game_party.members.each_index do |i|
actor = $game_party.members[i]
ty = WLH * (i + 2)
draw_actor_name(actor, 0, ty)
draw_actor_hp(actor, 140, ty)
contents.font.color = system_color
text = sprintf(Vocab::ExpNext, Vocab::level)
tw = contents.text_size(text).width
contents.draw_text(292, ty, contents.width, WLH, text)
contents.font.color = normal_color
contents.draw_text(292 + tw + 16, ty, contents.width, WLH, actor.next_exp_s)
end
end
end
class Scene_Battle < Scene_Base
alias wora_batreswin_scebat_batend battle_end
alias wora_batreswin_scebat_disexpgold display_exp_and_gold
def battle_end(result)
@result_window.dispose if result == 0
wora_batreswin_scebat_batend(result)
end
def display_exp_and_gold
result_data = [sprintf(Vocab::ObtainExp, $game_troop.exp_total),
sprintf(Vocab::ObtainGold, $game_troop.gold_total, Vocab::gold)]
@result_window = Window_Battle_Result.new(result_data)
wora_batreswin_scebat_disexpgold
end
end
credito:woratana
Última edición por luistop12 el Miér Ene 16, 2013 8:04 pm, editado 1 vez