| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 12 |
| 经验 | |
| 最后登录 | 2025-12-31 |
| 在线时间 | 179 小时 |
- 梦石
- 0
- 星屑
- 1182
- 在线时间
- 179 小时
- 注册时间
- 2018-11-6
- 回帖
- 26
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 VIPArcher 于 2019-11-20 12:03 编辑
请教大佬,我用了状态回合数显示脚本后系统默认的属性提升的状态图标被更改了,求教如何修改?以下是脚本
- #==============================================================================
- # ■状态剩余回合数显示 for RGSS3 Ver1.01-β
- # □作成者 kure
- #==============================================================================
- #
- # 状态备注: <不显示剩余回合数> 则不会显示剩余回合数
- #
- #==============================================================================
- # ■ RPG::State(追加定義)
- #==============================================================================
- class RPG::State < RPG::BaseItem
- #--------------------------------------------------------------------------
- # ☆残りターン非表示の定義(追加定義)
- #--------------------------------------------------------------------------
- def view_turns?
- return true unless @note
- return false if @note.include?("<不显示剩余回合数>")
- return true
- end
- end
- #==============================================================================
- # ■ Window_Base
- #==============================================================================
- class Window_Base < Window
- #--------------------------------------------------------------------------
- # ● ステートおよび強化/弱体のアイコンを描画(再定義)
- #--------------------------------------------------------------------------
- def draw_actor_icons(actor, x, y, width = 96)
- icons = (actor.state_icons_adv + actor.buff_icons_adv)[0, width / 24]
-
- last = contents.font.size
- contents.font.size = 18
- change_color(crisis_color)
- icons.each_with_index {|n, i| draw_state_icon_turns(n, x + 24 * i, y) }
- change_color(normal_color)
- contents.font.size = last
-
- end
- #--------------------------------------------------------------------------
- # ● 残りのターンを加えたアイコンの描画(追加定義)
- #--------------------------------------------------------------------------
- def draw_state_icon_turns(data, x, y)
- draw_icon(data[0], x, y)
- draw_text(x + 12, y + 8, 12, 18, data[1],2)
- end
- end
- #==============================================================================
- # ■ Game_BattlerBase
- #==============================================================================
- class Game_BattlerBase
- #--------------------------------------------------------------------------
- # ● 現在のステートをアイコンINDEX、残りターン、ステートIDで取得(追加定義)
- #--------------------------------------------------------------------------
- def state_icons_adv
- icons = states.collect {|state| [state.icon_index, @state_turns[state.id], state.id] }
- for i in 0..icons.size - 1
- if icons[i][0] == 0
- icons[i] = nil
- else
- icons[i][1] = "" if $data_states[icons[i][2]].auto_removal_timing == 0
- icons[i][1] = "" unless $data_states[icons[i][2]].view_turns?
- end
- end
- icons.compact!
- return icons
- end
- #--------------------------------------------------------------------------
- # ● 現在の強化/弱体をアイコンINDEX、残りターンで取得(追加定義)
- #--------------------------------------------------------------------------
- def buff_icons_adv
- icons = []
- @buffs.each_with_index {|lv, i| [icons.push(buff_icon_index(lv, i)),@buff_turns[i]] }
- for i in 0..icons.size - 1
- icons[i] = nil if icons[i][0] == 0
- end
- icons.compact!
- return icons
- end
- end
复制代码 |
|