改名角色的武器,是指把攻击变成武器名字吗?
变成武器名字可以在插件里找到 Window_ActorCommand
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 = [s1, s2, s3, s4] @item_max = 4 refresh self.index = 0 end
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 = [s1, s2, s3, s4]
@item_max = 4
refresh
self.index = 0
end
这段的 @commands 上面插一段
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 if (actor.equips[0] != nil) s1 = actor.equips[0].name else s1 = "空手" end @commands = [s1, s2, s3, s4] @item_max = 4 refresh self.index = 0 end
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
if (actor.equips[0] != nil)
s1 = actor.equips[0].name
else
s1 = "空手"
end
@commands = [s1, s2, s3, s4]
@item_max = 4
refresh
self.index = 0
end
|