舰R百科是靠无数自愿编辑者持续地建设更新完善的。编辑非常简单,请勇于更新页面!
编辑入门 | 资助百科 | 留言讨论页 | 微博@舰R百科 | 百科编辑讨论Q群:366818861

模块:台词:修订间差异

来自舰R百科
跳转到导航 跳转到搜索
(创建页面,内容为“local ships = mw.loadData("模块:特殊数据").ships return function(frame) local shipName = frame.args[1] local dialogue = frame.args[2] local force...”)
 
无编辑摘要
 
(未显示3个用户的7个中间版本)
第1行: 第1行:
local ships = mw.loadData("模块:特殊数据").ships
local ships = mw.loadData("模块:特殊数据/台词").dlgs


return function(frame)
local function getDialogue(shipName, dialogue, force)
    local shipName = frame.args[1]
    local dialogue = frame.args[2]
    local force = frame.args[3]
     if force ~= nil and force ~= '' then return force end
     if force ~= nil and force ~= '' then return force end
     local ship = ships[shipName]
     local ship = ships[shipName]
第12行: 第9行:
     return ret
     return ret
end
end
local p = { }
p['标题画面'] = function(frame) return getDialogue(frame.args[1], '标题画面', frame.args[2]) end
p['标题画面2'] = function(frame) return getDialogue(frame.args[1], '标题画面2', frame.args[2]) end
p['标题画面3'] = function(frame) return getDialogue(frame.args[1], '标题画面3', frame.args[2]) end
p['自荐'] = function(frame) return getDialogue(frame.args[1], '自荐', frame.args[2]) end
p['简介'] = function(frame) return getDialogue(frame.args[1], '简介', frame.args[2]) end
p['获得'] = function(frame) return getDialogue(frame.args[1], '获得', frame.args[2]) end
p['白天1'] = function(frame) return getDialogue(frame.args[1], '白天1', frame.args[2]) end
p['白天2'] = function(frame) return getDialogue(frame.args[1], '白天2', frame.args[2]) end
p['白天3'] = function(frame) return getDialogue(frame.args[1], '白天3', frame.args[2]) end
p['白天特殊1'] = function(frame) return getDialogue(frame.args[1], '白天特殊1', frame.args[2]) end
p['白天特殊2'] = function(frame) return getDialogue(frame.args[1], '白天特殊2', frame.args[2]) end
p['白天特殊3'] = function(frame) return getDialogue(frame.args[1], '白天特殊3', frame.args[2]) end
p['夜间1'] = function(frame) return getDialogue(frame.args[1], '夜间1', frame.args[2]) end
p['夜间2'] = function(frame) return getDialogue(frame.args[1], '夜间2', frame.args[2]) end
p['夜间3'] = function(frame) return getDialogue(frame.args[1], '夜间3', frame.args[2]) end
p['夜间特殊1'] = function(frame) return getDialogue(frame.args[1], '夜间特殊1', frame.args[2]) end
p['夜间特殊2'] = function(frame) return getDialogue(frame.args[1], '夜间特殊2', frame.args[2]) end
p['夜间特殊3'] = function(frame) return getDialogue(frame.args[1], '夜间特殊3', frame.args[2]) end
p['拜访好友'] = function(frame) return getDialogue(frame.args[1], '拜访好友', frame.args[2]) end
p['提督室'] = function(frame) return getDialogue(frame.args[1], '提督室', frame.args[2]) end
p['阵型'] = function(frame) return getDialogue(frame.args[1], '阵型', frame.args[2]) end
p['攻击'] = function(frame) return getDialogue(frame.args[1], '攻击', frame.args[2]) end
p['夜战'] = function(frame) return getDialogue(frame.args[1], '夜战', frame.args[2]) end
p['中破'] = function(frame) return getDialogue(frame.args[1], '中破', frame.args[2]) end
p['MVP'] = function(frame) return getDialogue(frame.args[1], 'MVP', frame.args[2]) end
p['誓约'] = function(frame) return getDialogue(frame.args[1], '誓约', frame.args[2]) end
return p

2020年6月22日 (一) 23:06的最新版本

{{#invoke:台词|获得|胡德}}

贵安,我是皇家海军的荣耀,胡德。指挥官,要来一杯红茶么。

{{#invoke:台词|MVP|胡德}}

皇家海军,无往不利。


local ships = mw.loadData("模块:特殊数据/台词").dlgs

local function getDialogue(shipName, dialogue, force)
    if force ~= nil and force ~= '' then return force end
    local ship = ships[shipName]
    if ship == nil then return '' end
    local ret = ship[dialogue]
    if ret == nil then return '' end
    return ret
end

local p = { }
p['标题画面'] = function(frame) return getDialogue(frame.args[1], '标题画面', frame.args[2]) end
p['标题画面2'] = function(frame) return getDialogue(frame.args[1], '标题画面2', frame.args[2]) end
p['标题画面3'] = function(frame) return getDialogue(frame.args[1], '标题画面3', frame.args[2]) end
p['自荐'] = function(frame) return getDialogue(frame.args[1], '自荐', frame.args[2]) end
p['简介'] = function(frame) return getDialogue(frame.args[1], '简介', frame.args[2]) end
p['获得'] = function(frame) return getDialogue(frame.args[1], '获得', frame.args[2]) end
p['白天1'] = function(frame) return getDialogue(frame.args[1], '白天1', frame.args[2]) end
p['白天2'] = function(frame) return getDialogue(frame.args[1], '白天2', frame.args[2]) end
p['白天3'] = function(frame) return getDialogue(frame.args[1], '白天3', frame.args[2]) end
p['白天特殊1'] = function(frame) return getDialogue(frame.args[1], '白天特殊1', frame.args[2]) end
p['白天特殊2'] = function(frame) return getDialogue(frame.args[1], '白天特殊2', frame.args[2]) end
p['白天特殊3'] = function(frame) return getDialogue(frame.args[1], '白天特殊3', frame.args[2]) end
p['夜间1'] = function(frame) return getDialogue(frame.args[1], '夜间1', frame.args[2]) end
p['夜间2'] = function(frame) return getDialogue(frame.args[1], '夜间2', frame.args[2]) end
p['夜间3'] = function(frame) return getDialogue(frame.args[1], '夜间3', frame.args[2]) end
p['夜间特殊1'] = function(frame) return getDialogue(frame.args[1], '夜间特殊1', frame.args[2]) end
p['夜间特殊2'] = function(frame) return getDialogue(frame.args[1], '夜间特殊2', frame.args[2]) end
p['夜间特殊3'] = function(frame) return getDialogue(frame.args[1], '夜间特殊3', frame.args[2]) end
p['拜访好友'] = function(frame) return getDialogue(frame.args[1], '拜访好友', frame.args[2]) end
p['提督室'] = function(frame) return getDialogue(frame.args[1], '提督室', frame.args[2]) end
p['阵型'] = function(frame) return getDialogue(frame.args[1], '阵型', frame.args[2]) end
p['攻击'] = function(frame) return getDialogue(frame.args[1], '攻击', frame.args[2]) end
p['夜战'] = function(frame) return getDialogue(frame.args[1], '夜战', frame.args[2]) end
p['中破'] = function(frame) return getDialogue(frame.args[1], '中破', frame.args[2]) end
p['MVP'] = function(frame) return getDialogue(frame.args[1], 'MVP', frame.args[2]) end
p['誓约'] = function(frame) return getDialogue(frame.args[1], '誓约', frame.args[2]) end
return p