-
Notifications
You must be signed in to change notification settings - Fork 0
/
4-6轨互换_v1.1.lua
32 lines (30 loc) · 899 Bytes
/
4-6轨互换_v1.1.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
PluginName='46互换-Wipe'
PluginMode=9
PluginType=0
PluginRequire='6.0.0'
function Run()
Editor:ShowMessage("已开始,请检查谱面以防止出现bug")
local array = Editor:GetSelectNotes()
Editor:StartBatch()
for i = 0, array.Length-1 do
local column = Editor:GetNoteX(array[i])
if column == 3 then
Editor:SetNoteX(array[i], 5)
elseif column == 5 then
Editor:SetNoteX(array[i], 3)
end
end
for j = 0, array.Length-1 do
local column = Editor:GetNoteX(array[j])
if column >= 3 and column <=5 then
local flag = Editor:GetNoteFlag(array[j])
if flag == 2 then
Editor:SetNoteFlag(array[j], 8)
elseif flag == 8 then
Editor:SetNoteFlag(array[j], 2)
end
end
end
Editor:FinishBatch()
end
--Made by SystemKr