Project1

标题: 如何去掉战斗指令中的“攻击”和“防御” [打印本页]

作者: 1745236314    时间: 2014-11-9 20:34
标题: 如何去掉战斗指令中的“攻击”和“防御”
本帖最后由 RyanBern 于 2014-11-9 21:56 编辑

怎么才可以让对战时候攻击这个按键和防御这个按键消除啊,只留物品和技能,在问一下怎么把技能的文字名字改叫攻击类型啊
作者: 断电    时间: 2014-11-9 21:29
本帖最后由 断电 于 2014-11-9 22:44 编辑

如果你用的是默认战斗系统的话……
1.Scene_Battle 1 里面26-31行用下面的这个替换掉

  1.     s1 = $data_system.words.skill
  2.     s2 = $data_system.words.item
  3.     #s3 = $data_system.words.guard
  4.     #s4 = $data_system.words.item
  5.     @actor_command_window = Window_Command.new(160, [s1, s2])
  6.     @actor_command_window.y = 228
复制代码
然后Scene_Battle 3 里面122-151行用下面这个替换掉

  1.       # when 0  # 攻击
  2.       # 演奏确定 SE
  3.       #  $game_system.se_play($data_system.decision_se)
  4.       # 设置行动
  5.       # @active_battler.current_action.kind = 0
  6.       # @active_battler.current_action.basic = 0
  7.       # 开始选择敌人
  8.       # start_enemy_select
  9.       when 0  # 特技
  10.         # 演奏确定 SE
  11.         $game_system.se_play($data_system.decision_se)
  12.         # 设置行动
  13.         @active_battler.current_action.kind = 1
  14.         # 开始选择特技
  15.         start_skill_select
  16.       #when 2  # 防御
  17.         # 演奏确定 SE
  18.         # $game_system.se_play($data_system.decision_se)
  19.         # 设置行动
  20.         #@active_battler.current_action.kind = 0
  21.         #@active_battler.current_action.basic = 1
  22.         # 转向下一位角色的指令输入
  23.         #phase3_next_actor
  24.       when 1  # 物品
  25.         # 演奏确定 SE
  26.         #$game_system.se_play($data_system.decision_se)
  27.         # 设置行动
  28.         #@active_battler.current_action.kind = 2
  29.         # 开始选择物品
  30.         #start_item_select
复制代码
其实就是注释掉一些不用的东西而已。。

2.数据库-系统,用语这栏把“特技”改成攻击类型就行了。

有问题再说
作者: 1745236314    时间: 2014-11-9 21:50
你的脚本貌似错误了,本人脚本渣一个,顺便说一下,我弄了一个鼠标脚本
作者: 1745236314    时间: 2014-11-9 21:54
顺便问一下主界面的和进入游戏之后音乐文件在哪里,我要换
作者: 1745236314    时间: 2014-11-9 22:11
找到错误原因了是宠物系统。。。。
脚本Window_BattleStatus的第40行发生了NameError。
undefined local variable or mathod actor_x  for #<Window_BattleStatus:0x1774ff0>
是什么意思啊
作者: 1745236314    时间: 2014-11-9 22:12
#==============================================================================
# ■ Window_BattleStatus
#------------------------------------------------------------------------------
#  显示战斗画面同伴状态的窗口。
#==============================================================================

class Window_BattleStatus < Window_Base
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 160)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.back_opacity = 160
    @level_up_flags = [false, false]
    refresh
  end
  #--------------------------------------------------------------------------
  def dispose
    super
  end
  #--------------------------------------------------------------------------
  # ● 设置升级标志
  #     actor_index : 角色索引
  #--------------------------------------------------------------------------
  def level_up(actor_index)
    @level_up_flags[actor_index] = true
  end
  #--------------------------------------------------------------------------
  # ● 刷新
  #--------------------------------------------------------------------------
  def refresh
    self.contents.clear
    actor = $game_party.actors[0]
    return if actor == nil
    draw_actor_graphic(actor, 20, 40)
    draw_actor_name(actor, 0, 0)
    draw_actor_hp(actor, 80, 32, 120)
    draw_actor_sp(actor, 80, 64, 120)
    if @level_up_flags[0]
      self.contents.font.color = normal_color
      self.contents.draw_text(actor_x, 96, 120, 32, "LEVEL UP!")
    else
      draw_actor_state(actor, 80, 96)
    end
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面
  #--------------------------------------------------------------------------
  def update
    super
    # 主界面的不透明度下降
    if $game_temp.battle_main_phase
      self.contents_opacity -= 4 if self.contents_opacity > 191
    else
      self.contents_opacity += 4 if self.contents_opacity < 255
    end
  end
end

作者: myownroc    时间: 2014-11-10 00:50
建议楼主把宠物系统的脚本发上来。
根据楼主的情况,先试试在报错的那一行之前加一句actor_x = 0
最后,请楼主善用“编辑”功能
作者: 1745236314    时间: 2014-11-10 01:35
表示完全不懂
作者: 1745236314    时间: 2014-11-10 01:42
这个是什么,好像是错的关键

QPPEYM5(GD(N0[Y7%~72SQ7.jpg (473.67 KB, 下载次数: 2)

QPPEYM5(GD(N0[Y7%~72SQ7.jpg

作者: 1745236314    时间: 2014-11-10 12:35
我把宠物的脚本删了,错误就没了,我太机智了,哇哈哈哈哈哈
作者: 瓦林卡新    时间: 2014-11-10 13:31
学习下知识

作者: 1745236314    时间: 2014-11-10 19:09
瓦林卡新 发表于 2014-11-10 13:31
学习下知识

学吧= =(`・ω・´)反正我的bug没了




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1