3,314
回編集
編集の要約なし |
編集の要約なし |
||
9行目: | 9行目: | ||
n[1] = a[1] == 1 and "" or string.char(string.byte(frame.args[1],1,a[1]-1)) | n[1] = a[1] == 1 and "" or string.char(string.byte(frame.args[1],1,a[1]-1)) | ||
o[1] = b[#b] == #frame.args[1] and "" or string.char(string.byte(frame.args[1],b[#b]+1,#frame.args[1])) | o[1] = b[#b] == #frame.args[1] and "" or string.char(string.byte(frame.args[1],b[#b]+1,#frame.args[1])) | ||
g = n[1]..string.rep(m[1],100) | |||
if s >= 2 then | if s >= 2 then | ||
for i = 2,s do | for i = 2,s do | ||
15行目: | 16行目: | ||
n[i] = a[i] == b[i-1]+1 and "" or string.char(string.byte(frame.args[1],b[i-1]+1,a[i]-1)) | n[i] = a[i] == b[i-1]+1 and "" or string.char(string.byte(frame.args[1],b[i-1]+1,a[i]-1)) | ||
end | end | ||
for i = 2,s do | |||
-- | g = g..n[i]..string.rep(m[i],100) | ||
end | |||
end | |||
return g..o[1]--n[1]..string.rep(m[1],100)..n[2]..string.rep(m[2],100).. 「どうにかする」..n[s]..string.rep(m[s])..o[1]を返す処理 | |||
else | else | ||
m[1] = frame.args[1] | m[1] = frame.args[1] |
回編集