Project1
标题: 帮我看看我的脚本为什么不显示EXP? [打印本页]
作者: 黑之翅膀 时间: 2011-10-19 02:20
标题: 帮我看看我的脚本为什么不显示EXP?
本帖最后由 黑之翅膀 于 2011-10-21 01:08 编辑
- class Scene_Map < Scene_Base
- alias hpmpexpwindow_start start
- def start
- hpmpexpwindow_start
- @hpmpexpwindow = Window_Base.new(0, 336, 152, 80)
- end
- alias hpmpexpwindow_update update
- def update
- actor = $game_party.members[0]
- if @temp_hp != actor.hp or @temp_mp != actor.mp or @temp_exp != actor.exp
- @hpmpexpwindow.contents.clear
- @hpmpexpwindow.draw_actor_hp(actor, 0, 0)
- @hpmpexpwindow.draw_actor_mp(actor, 0, 24)
- @hpmpexpwindow.draw_actor_exp(actor, 0, 48)
- @temp_hp = actor.hp
- @temp_mp = actor.mp
- @temp_exp = actor.exp
- end
- @hpmpexpwindow.update
- hpmpexpwindow_update
- end
- alias hpmpexpwindow_terminate terminate
- def terminate
- @hpmpexpwindow.dispose
- hpmpexpwindow_terminate
- end
- end
复制代码