赞 | 7 |
VIP | 866 |
好人卡 | 185 |
积分 | 32 |
经验 | 130059 |
最后登录 | 2024-10-29 |
在线时间 | 3618 小时 |
Lv3.寻梦者 双子人
- 梦石
- 0
- 星屑
- 3185
- 在线时间
- 3618 小时
- 注册时间
- 2009-4-4
- 帖子
- 4154
|
本帖最后由 hys111111 于 2012-4-24 18:03 编辑
- TITLE_ARMOR_ID = 1 #1号装饰品就回显示少校
- class Window_Title < Window_Base
- def initialize
- super(0,0,640,480)
- self.opacity = 0
- self.back_opacity = 0
- self.contents_opacity = 255
- refresh
- end
- def refresh
- @armor = $game_actors[$game_party.actors[0].id].armor4_id
- self.contents.clear
- self.contents.font.color = normal_color
- self.contents.draw_text($game_player.screen_x, $game_player.screen_y, 128, 32, "少校")
- end
- def judge
- return true if $game_actors[$game_party.actors[0].id].armor4_id
- return fales
- end
- end
- class Scene_Map
- alias title_main main
- def main
- @title_window = Window_Title.new
- title_main
- @title_window.dispose
- end
- alias title_update update
- def update
- title_update
- if $game_actors[$game_party.actors[0].id].armor4_id == TITLE_ARMOR_ID
- @title_window.visible = true
- @title_window.refresh if @title_window.judge
- else
- @title_window.visible = false
- end
- end
- end
复制代码 脚本已修正 |
评分
-
查看全部评分
|