mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
289 lines
5.5 KiB
Lua
289 lines
5.5 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 = 111101044
|
|
L1_1 = {}
|
|
L1_1.gadget_id = 44004
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 44001
|
|
L3_1.gadget_id = 70900051
|
|
L4_1 = {}
|
|
L4_1.x = 2366.951
|
|
L4_1.y = 258.481
|
|
L4_1.z = -1436.664
|
|
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 = 1
|
|
L3_1.persistent = true
|
|
L4_1 = {}
|
|
L4_1.config_id = 44002
|
|
L4_1.gadget_id = 70900039
|
|
L5_1 = {}
|
|
L5_1.x = 2367.218
|
|
L5_1.y = 264.477
|
|
L5_1.z = -1440.719
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 0.0
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 1
|
|
L4_1.persistent = true
|
|
L5_1 = {}
|
|
L5_1.config_id = 44003
|
|
L5_1.gadget_id = 70900051
|
|
L6_1 = {}
|
|
L6_1.x = 2355.394
|
|
L6_1.y = 255.588
|
|
L6_1.z = -1437.744
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 0.0
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L5_1.persistent = true
|
|
L6_1 = {}
|
|
L6_1.config_id = 44004
|
|
L6_1.gadget_id = 70211111
|
|
L7_1 = {}
|
|
L7_1.x = 2360.344
|
|
L7_1.y = 262.375
|
|
L7_1.z = -1443.877
|
|
L6_1.pos = L7_1
|
|
L7_1 = {}
|
|
L7_1.x = 0.0
|
|
L7_1.y = 0.0
|
|
L7_1.z = 0.0
|
|
L6_1.rot = L7_1
|
|
L6_1.level = 6
|
|
L6_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\232\146\153\229\190\183"
|
|
L6_1.showcutscene = true
|
|
L6_1.isOneoff = true
|
|
L6_1.persistent = true
|
|
L7_1 = {}
|
|
L7_1.config_id = 44008
|
|
L7_1.gadget_id = 70900039
|
|
L8_1 = {}
|
|
L8_1.x = 2357.012
|
|
L8_1.y = 261.791
|
|
L8_1.z = -1443.033
|
|
L7_1.pos = L8_1
|
|
L8_1 = {}
|
|
L8_1.x = 0.0
|
|
L8_1.y = 0.0
|
|
L8_1.z = 0.0
|
|
L7_1.rot = L8_1
|
|
L7_1.level = 1
|
|
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
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.config_id = 1044005
|
|
L3_1.name = "GADGET_STATE_CHANGE_44005"
|
|
L4_1 = EventType
|
|
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
|
|
L3_1.event = L4_1
|
|
L3_1.source = ""
|
|
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_44005"
|
|
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_44005"
|
|
L3_1.trigger_count = 0
|
|
L4_1 = {}
|
|
L4_1.config_id = 1044006
|
|
L4_1.name = "GADGET_STATE_CHANGE_44006"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_GADGET_STATE_CHANGE
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = ""
|
|
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_44006"
|
|
L5_1 = {}
|
|
L5_1.config_id = 1044007
|
|
L5_1.name = "GADGET_CREATE_44007"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_GADGET_CREATE
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_GADGET_CREATE_44007"
|
|
L5_1.action = "action_EVENT_GADGET_CREATE_44007"
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "start"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = true
|
|
L2_1[1] = L3_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.suite = 1
|
|
L2_1.end_suite = 0
|
|
L2_1.rand_suite = false
|
|
init_config = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L5_1 = 44001
|
|
L6_1 = 44002
|
|
L7_1 = 44003
|
|
L8_1 = 44008
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L4_1[4] = L8_1
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L5_1 = "GADGET_STATE_CHANGE_44005"
|
|
L6_1 = "GADGET_STATE_CHANGE_44006"
|
|
L7_1 = "GADGET_CREATE_44007"
|
|
L4_1[1] = L5_1
|
|
L4_1[2] = L6_1
|
|
L4_1[3] = L7_1
|
|
L3_1.triggers = L4_1
|
|
L3_1.rand_weight = 100
|
|
L2_1[1] = L3_1
|
|
suites = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "start"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
L3_2 = suites
|
|
L3_2 = L3_2[1]
|
|
L3_2 = L3_2.gadgets
|
|
L3_2 = #L3_2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_STATE_CHANGE_44005 = 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 = GadgetState
|
|
L3_2 = L3_2.GearStart
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "start"
|
|
L5_2 = 1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
else
|
|
L2_2 = A1_2.param1
|
|
L3_2 = GadgetState
|
|
L3_2 = L3_2.Default
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.ChangeGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "start"
|
|
L5_2 = -1
|
|
L2_2(L3_2, L4_2, L5_2)
|
|
end
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "start"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
L3_2 = suites
|
|
L3_2 = L3_2[1]
|
|
L3_2 = L3_2.gadgets
|
|
L3_2 = #L3_2
|
|
if L2_2 == L3_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.CreateGadget
|
|
L3_2 = A0_2
|
|
L4_2 = {}
|
|
L5_2 = L1_1.gadget_id
|
|
L4_2.config_id = L5_2
|
|
L2_2(L3_2, L4_2)
|
|
end
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_44005 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1008
|
|
L5_2 = 1
|
|
L6_2 = 1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_STATE_CHANGE_44006 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2
|
|
L2_2 = L1_1.gadget_id
|
|
L3_2 = A1_2.param1
|
|
if L2_2 ~= L3_2 then
|
|
L2_2 = false
|
|
return L2_2
|
|
end
|
|
L2_2 = true
|
|
return L2_2
|
|
end
|
|
condition_EVENT_GADGET_CREATE_44007 = L2_1
|
|
function L2_1(A0_2, A1_2)
|
|
local L2_2, L3_2, L4_2, L5_2, L6_2
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.MarkPlayerAction
|
|
L3_2 = A0_2
|
|
L4_2 = 1008
|
|
L5_2 = 3
|
|
L6_2 = 1
|
|
L2_2 = L2_2(L3_2, L4_2, L5_2, L6_2)
|
|
if 0 ~= L2_2 then
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintContextLog
|
|
L3_2 = A0_2
|
|
L4_2 = "@@ LUA_WARNING : mark_playerAction"
|
|
L2_2(L3_2, L4_2)
|
|
L2_2 = -1
|
|
return L2_2
|
|
end
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
action_EVENT_GADGET_CREATE_44007 = L2_1
|