赞 | 1 |
VIP | 5 |
好人卡 | 4 |
积分 | 1 |
经验 | 23670 |
最后登录 | 2014-11-20 |
在线时间 | 378 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 378 小时
- 注册时间
- 2013-10-14
- 帖子
- 215
|
本帖最后由 batfjtn 于 2014-7-9 21:50 编辑
- if actor.level >= 99
- for bat in 0...$data_skills.size
- actor.learn_skill(bat)
- end
- end
复制代码 这样不就可以了~~!!
直接添加到刷新下面~~!!!
修改好的~~!!- #==============================================================================
- # ■ Window_MShopStatus
- #------------------------------------------------------------------------------
- # 特技商店画面、显示物品所持数与角色装备的窗口。
- #==============================================================================
- class Window_MShopStatus < Window_Selectable
- #--------------------------------------------------------------------------
- # ● 初始化对像
- #--------------------------------------------------------------------------
- def initialize
- super(368, 64, 272, 352)
- self.contents = Bitmap.new(width - 32, height - 32)
- self.contents.font.size = 18
- [url=home.php?mod=space&uid=260100]@skill[/url] = nil
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 刷新
- #--------------------------------------------------------------------------
- def refresh
- self.contents.clear
- for i in 0...$game_party.actors.size
- actor = $game_party.actors[i]
- # 判断角色等级到了99学会所有技能 自己添加提示~~!!
- if actor.level >= 99
- for bat in 0...$data_skills.size
- actor.learn_skill(bat)
- end
- end
- # 判断结束
- draw_actor_graphic(actor,12,80*i+64)
- self.contents.font.color = system_color
- self.contents.draw_text(44, 80*i, 240, 32, actor.name)
- self.contents.draw_text(0, 80*i , 240-20,32,"等级",2)
- self.contents.font.color = normal_color
- self.contents.draw_text(0, 80*i, 240, 32, actor.level.to_s , 2)
- self.contents.font.color = system_color
- self.contents.draw_text(44, 80*i+22, 45, 32, $data_system.words.hp)
- self.contents.font.color = normal_color
- self.contents.draw_text(44, 80*i+22, 90, 32, actor.maxhp.to_s,2)
- self.contents.font.color = system_color
- self.contents.draw_text(150, 80*i+22, 45, 32, $data_system.words.sp)
- self.contents.font.color = normal_color
- self.contents.draw_text(150, 80*i+22, 90, 32, actor.maxsp.to_s,2)
- if actor.skill_learn?(@skill.id)
- self.contents.font.color = Color.new(255,255,255,128)
- self.contents.draw_text(44, 80*i+44, 196, 32, "⊙此项特技已经学习⊙",2)
- else
- self.contents.font.color = Color.new(255,255,0,255)
- self.contents.draw_text(44, 80*i+44, 240, 32, "★此项特技尚未学习★")
- end
- end
- @item_max = $game_party.actors.size
- end
- #--------------------------------------------------------------------------
- # ● 设置物品
- # item : 新的物品
- #--------------------------------------------------------------------------
- def skill=(skill)
- if [url=home.php?mod=space&uid=260100]@skill[/url] != skill
- [url=home.php?mod=space&uid=260100]@skill[/url] = skill
- refresh
- end
- end
- #--------------------------------------------------------------------------
- # ● 刷新光标矩形
- #--------------------------------------------------------------------------
- def update_cursor_rect
- if @index < 0
- self.cursor_rect.empty
- else
- self.cursor_rect.set(0, @index * 80, self.width - 32, 80)
- end
- end
- end
复制代码 补充一下`~!!
如果不是学全部技能那就要想别的办法~~!!
|
|