モーションの文字数が同じ場合は入れ替え可能(短くてもいけると思われ)
================================================================
[ENABLE]
{$lua}
local srcStr = 'BTL_DEADa'
local dstStr = 'LADDER_UP'
--local dstStr = 'HORSE_RUN'
local srcStrBt = stringToByteTable(srcStr)
srcStrBt[#srcStrBt + 1] = 0
local aobStr = ''
local i
for i = 1, #srcStrBt do
aobStr = aobStr .. string.format("%02X", srcStrBt[i]) .. ' '
end
local aobList = AOBScan(aobStr)
if (aobList) then
local dstStrBt = stringToByteTable(dstStr)
dstStrBt[#dstStrBt + 1] = 0
for i = 0, aobList.getCount() - 1 do
writeBytes(aobList[i], dstStrBt)
end
end
{$asm}
[DISABLE]
{$lua}
{$asm}
================================================================