赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 0 |
经验 | 713 |
最后登录 | 2012-2-15 |
在线时间 | 678 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 48
- 在线时间
- 678 小时
- 注册时间
- 2010-8-11
- 帖子
- 1533
|
本帖最后由 RPGmaster 于 2011-7-15 18:00 编辑
建议加上经验值,要不然就不能升级了……囧
再加上状态脚本,放上两个(本人写的……捂脸……)
- class Window_1 < Window_Base
- def initialize(actor = $game_party.members[0])
- super(376, 317, 170, 100)
- self.opacity = 130
- @actor = actor
- @actor_id = @actor.index
- refresh
- end
- def refresh
- self.contents.clear
- draw_actor_hp(@actor, 11, 20)
- draw_actor_mp(@actor, 12, 42)
- draw_actor_name(@actor, 7, 2)
- draw_actor_level(@actor, 76, 3)
- end
- end
- class Scene_Map
-
- alias window8045_start start unless $@
- def start(*args)
- window8045_start(*args)
- @window8045 = Window_1.new
- end
-
- alias window8046_update update unless $@
- def update(*args)
- window8046_update(*args)
- @window8045.refresh
- end
-
- alias window8047_terminate terminate unless $@
- def terminate(*args)
- @window8045.dispose
- window8047_terminate(*args)
- end
- end
复制代码 另一个
- class Window_2 < Window_Base
- def initialize(actor = $game_party.members[0])
- super(0, 0, 280, 150)
- self.opacity = 100
- @actor = actor
- @actor_id = @actor.index
- refresh
- end
- def refresh
- self.contents.clear
- draw_actor_face(@actor, 2, 8)
- draw_actor_graphic(@actor, 130, 42)
- draw_actor_hp(@actor, 107, 60)
- draw_actor_mp(@actor, 94, 87)
- draw_actor_name(@actor, 151, 8)
- draw_actor_level(@actor, 169, 38)
- end
- end
- class Scene_Map
-
- alias window2847_start start unless $@
- def start(*args)
- window2847_start(*args)
- @window2847 = Window_2.new
- end
-
- alias window2848_update update unless $@
- def update(*args)
- window2848_update(*args)
- @window2847.refresh
- end
-
- alias window2849_terminate terminate unless $@
- def terminate(*args)
- @window2847.dispose
- window2849_terminate(*args)
- end
- end
复制代码 |
|