mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
361 lines
6.9 KiB
Lua
361 lines
6.9 KiB
Lua
local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1
|
|
L0_1 = {}
|
|
L0_1.group_id = 133212233
|
|
L1_1 = {}
|
|
L1_1.groupID = 133212052
|
|
L1_1.shooter = 52001
|
|
L2_1 = {}
|
|
L3_1 = 52001
|
|
L4_1 = 52002
|
|
L5_1 = 52003
|
|
L6_1 = 52005
|
|
L7_1 = 52006
|
|
L8_1 = 52007
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L2_1[5] = L7_1
|
|
L2_1[6] = L8_1
|
|
L1_1.repeater = L2_1
|
|
L1_1.target = 52010
|
|
function L2_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52001
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 203 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52002
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 101 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52003
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 303 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52005
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 303 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52006
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 204 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGadgetStateByConfigId
|
|
L2_2 = A0_2
|
|
L3_2 = 133212052
|
|
L4_2 = 52007
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 203 ~= L1_2 then
|
|
L1_2 = false
|
|
return L1_2
|
|
end
|
|
L1_2 = true
|
|
return L1_2
|
|
end
|
|
CheckSuccess02 = L2_1
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 233010
|
|
L3_1.gadget_id = 70950143
|
|
L4_1 = {}
|
|
L4_1.x = -3696.066
|
|
L4_1.y = 200.0
|
|
L4_1.z = -1757.787
|
|
L3_1.pos = L4_1
|
|
L4_1 = {}
|
|
L4_1.x = 0.0
|
|
L4_1.y = 0.0
|
|
L4_1.z = 0.0
|
|
L3_1.rot = L4_1
|
|
L3_1.level = 27
|
|
L3_1.area_id = 13
|
|
L4_1 = {}
|
|
L4_1.config_id = 233011
|
|
L4_1.gadget_id = 70500000
|
|
L5_1 = {}
|
|
L5_1.x = -3695.882
|
|
L5_1.y = 205.628
|
|
L5_1.z = -1759.189
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 344.571
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 27
|
|
L4_1.point_type = 9171
|
|
L4_1.isOneoff = true
|
|
L4_1.persistent = true
|
|
L4_1.area_id = 13
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1233012
|
|
L3_1.name = "ANY_GADGET_DIE_233012"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_ANY_GADGET_DIE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_ANY_GADGET_DIE_233012"
|
|
L3_1.action = "action_EVENT_ANY_GADGET_DIE_233012"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1233013
|
|
L4_1.name = "VARIABLE_CHANGE_233013"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_VARIABLE_CHANGE
|
|
L4_1.event = L5_1
|
|
L4_1.source = "ShootTrigger"
|
|
L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_233013"
|
|
L4_1.action = "action_EVENT_VARIABLE_CHANGE_233013"
|
|
L4_1.trigger_count = 0
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 2
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "ANY_GADGET_DIE_233012"
|
|
L6_1 = "VARIABLE_CHANGE_233013"
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L3_1.triggers = L4_1
|
|
L3_1.rand_weight = 100
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L4_1.monsters = L5_1
|
|
L5_1 = {}
|
|
L6_1 = 233010
|
|
L7_1 = 233011
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L4_1.gadgets = L5_1
|
|
L5_1 = {}
|
|
L4_1.regions = L5_1
|
|
L5_1 = {}
|
|
L6_1 = "ANY_GADGET_DIE_233012"
|
|
L7_1 = "VARIABLE_CHANGE_233013"
|
|
L5_1[1] = L6_1
|
|
L5_1[2] = L7_1
|
|
L4_1.triggers = L5_1
|
|
L4_1.rand_weight = 100
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2
|
|
L2_2 = A1_2.param1
|
|
if 233010 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_ANY_GADGET_DIE_233012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.AddQuestProgress
|
|
L3_2 = A0_2
|
|
L4_2 = "7213202_finish"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : add_quest_progress"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ShowReminder
|
|
L3_2 = A0_2
|
|
L4_2 = 321234031
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : active_reminder_ui"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.RefreshGroup
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L4_2.group_id = 133212022
|
|
L4_2.suite = 3
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : refresh_group_to_suite"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_ANY_GADGET_DIE_233012 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = A1_2.param1
|
|
L3_2 = A1_2.param2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233001
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 203 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233002
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 101 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233003
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 203 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233005
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 304 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233006
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 203 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGadgetStateByConfigId
|
|
L3_2 = A0_2
|
|
L4_2 = 133212052
|
|
L5_2 = 233007
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 203 ~= L2_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_VARIABLE_CHANGE_233013 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PlayCutScene
|
|
L3_2 = A0_2
|
|
L4_2 = 321205201
|
|
L5_2 = 0
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : play_cutscene"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_VARIABLE_CHANGE_233013 = L2_1
|
|
L2_1 = require
|
|
L3_1 = "BlackBoxPlay/EnergyAmplifier"
|
|
L2_1(L3_1)
|