赞 | 0 |
VIP | 157 |
好人卡 | 6 |
积分 | 1 |
经验 | 113829 |
最后登录 | 2014-1-16 |
在线时间 | 26 小时 |
Lv1.梦旅人 B
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 26 小时
- 注册时间
- 2007-8-26
- 帖子
- 3693
|
- #==============================================================================
- # ■ 特定战斗中不能使用物品
- #------------------------------------------------------------------------------
- # by ONEWateR
- #==============================================================================
- $开关编号 = 1
- class Window_ActorCommand < Window_Command
- #--------------------------------------------------------------------------
- # ● 初始化对象
- #--------------------------------------------------------------------------
- def initialize
- @s1 = Vocab::attack
- @s2 = Vocab::skill
- @s3 = Vocab::guard
- @s4 = Vocab::item
- super(128, [@s1, @s2, @s3, @s4], 1, 4)
- self.active = false
- refresh
- end
- #--------------------------------------------------------------------------
- # ● 设置
- # actor : 角色
- #--------------------------------------------------------------------------
- def setup(actor)
- if actor.class.skill_name_valid # 特技指令名是否有效
- @s2 = actor.class.skill_name # 替换指令名
- end
- self.index = 0
- end
- end
- class Scene_Battle < Scene_Base
- #--------------------------------------------------------------------------
- # ● 生成显示信息视区
- #--------------------------------------------------------------------------
- def create_info_viewport
- @info_viewport = Viewport.new(0, 288, 544, 128)
- @info_viewport.z = 100
- @status_window = Window_BattleStatus.new
- @party_command_window = Window_PartyCommand.new
- @actor_command_window = Window_ActorCommand.new
- @actor_command_window.draw_item(3, false) if $game_switches[$开关编号] == true
- @status_window.viewport = @info_viewport
- @party_command_window.viewport = @info_viewport
- @actor_command_window.viewport = @info_viewport
- @status_window.x = 128
- @actor_command_window.x = 544
- @info_viewport.visible = false
- end
- #--------------------------------------------------------------------------
- # ● 更新选择角色指令
- #--------------------------------------------------------------------------
- def update_actor_command_selection
- if Input.trigger?(Input::B)
- Sound.play_cancel
- prior_actor
- elsif Input.trigger?(Input::C)
- case @actor_command_window.index
- when 0 # 攻击
- Sound.play_decision
- @active_battler.action.set_attack
- start_target_enemy_selection
- when 1 # 特技
- Sound.play_decision
- start_skill_selection
- when 2 # 防御
- Sound.play_decision
- @active_battler.action.set_guard
- next_actor
- when 3 # 物品
- if $game_switches[$开关编号] == true
- Sound.play_buzzer
- return
- else
- Sound.play_decision
- start_item_selection
- end
- end
- end
- end
- end
复制代码 系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |
|