jy02375436 发表于 2010-4-24 01:29:40

如何把戰鬥中的 ”攻擊" 欄刪去???

http://image.projectnext.eu/444446.JPG

我在腳本window_actorCommand中找到:

#==============================================================================
# ■ Window_ActorCommand
#------------------------------------------------------------------------------
#選擇角色命令(如「攻擊」或「技能」)的窗口。
#==============================================================================

class Window_ActorCommand < Window_Command
#--------------------------------------------------------------------------
# ● 初始化對像
#--------------------------------------------------------------------------
def initialize
    super(128, [], 1, 4)
    self.active = false
end
#--------------------------------------------------------------------------
# ● 設置
#   actor : 角色
#--------------------------------------------------------------------------
def setup(actor)
    s1 = Vocab::attack
    s2 = Vocab::skill
    s3 = Vocab::guard
    s4 = Vocab::item
    if actor.class.skill_name_valid   # 是否指定職業技能文字
      s2 = actor.class.skill_name       # 替換「技能」命令文字
    end
    @commands =
    @item_max = 4
    refresh
    self.index = 0
end
end

我試過幫紅字修改...進遊戲後"攻擊"名字換了其他字...可按下去還是攻擊...要修改腳本那里才可以刪去"攻擊"一欄

secondsen 发表于 2010-4-24 08:50:45

@commands =
    @item_max = 4

改成

    @commands = [ s2, s3, s4]
    @item_max = 3

对了。。。这样该会有问题。。。这样的话。。。技能的文字 实际上 是普通攻击。。。也就是说 串位了。。。还要改 其他的地方的

jy02375436 发表于 2010-4-24 10:43:05

回 1楼(secondsen) 的帖子

改了...位是轉了...但按下去還是攻擊效果

secondsen 发表于 2010-4-24 20:11:54

因为有一个

self.index = 0
的判断啊。。。
页: [1]
查看完整版本: 如何把戰鬥中的 ”攻擊" 欄刪去???