Project1
标题: 请问战斗中的攻击指令可不可以改为改名角色武器的名字? [打印本页]
作者: 求救啊 时间: 2021-7-5 15:54
标题: 请问战斗中的攻击指令可不可以改为改名角色武器的名字?
请问战斗中的攻击指令可不可以改为改名角色武器的名字?
脚本小白,希望有大神能够稍微详细的说一下...十分感谢
作者: QChan 时间: 2021-7-6 03:29
改名角色的武器,是指把攻击变成武器名字吗?
变成武器名字可以在插件里找到 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
欢迎光临 Project1 (https://rpg.blue/) |
Powered by Discuz! X3.1 |