Grasscutter_Resources/Resources/Scripts/Scene/3/scene3_group133225194.lua
2022-04-29 16:40:51 +02:00

626 lines
13 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1, L10_1
L0_1 = {}
L0_1.group_id = 133225194
L1_1 = {}
L1_1.group_id = 133225194
L1_1.gadget_riddle_hint = 194001
L2_1 = {}
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 194001
L3_1.gadget_id = 70310012
L4_1 = {}
L4_1.x = -6377.142
L4_1.y = 253.702
L4_1.z = -2573.926
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 350.71
L4_1.y = 186.464
L4_1.z = 0.572
L3_1.rot = L4_1
L3_1.level = 19
L3_1.persistent = true
L3_1.area_id = 18
L4_1 = {}
L4_1.config_id = 194002
L4_1.gadget_id = 70310147
L5_1 = {}
L5_1.x = -6396.454
L5_1.y = 253.123
L5_1.z = -2591.541
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 349.896
L5_1.y = 276.197
L5_1.z = 358.909
L4_1.rot = L5_1
L4_1.level = 19
L4_1.persistent = true
L4_1.area_id = 18
L5_1 = {}
L5_1.config_id = 194003
L5_1.gadget_id = 70310147
L6_1 = {}
L6_1.x = -6396.58
L6_1.y = 249.095
L6_1.z = -2569.874
L5_1.pos = L6_1
L6_1 = {}
L6_1.x = 350.943
L6_1.y = 327.755
L6_1.z = 355.182
L5_1.rot = L6_1
L5_1.level = 19
L5_1.persistent = true
L5_1.area_id = 18
L6_1 = {}
L6_1.config_id = 194004
L6_1.gadget_id = 70310147
L7_1 = {}
L7_1.x = -6374.801
L7_1.y = 249.702
L7_1.z = -2560.262
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 357.647
L7_1.y = 257.822
L7_1.z = 349.227
L6_1.rot = L7_1
L6_1.level = 19
L6_1.persistent = true
L6_1.area_id = 18
L7_1 = {}
L7_1.config_id = 194005
L7_1.gadget_id = 70310147
L8_1 = {}
L8_1.x = -6368.443
L8_1.y = 255.786
L8_1.z = -2580.668
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 17.014
L8_1.y = 14.1
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 19
L7_1.persistent = true
L7_1.area_id = 18
L8_1 = {}
L8_1.config_id = 194006
L8_1.gadget_id = 70211111
L9_1 = {}
L9_1.x = -6381.204
L9_1.y = 253.567
L9_1.z = -2573.378
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 98.521
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 26
L8_1.drop_tag = "\232\167\163\232\176\156\228\184\173\231\186\167\231\168\187\229\166\187"
L8_1.isOneoff = true
L8_1.persistent = true
L9_1 = {}
L9_1.name = "chest"
L9_1.exp = 1
L8_1.explore = L9_1
L8_1.area_id = 18
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
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1194007
L3_1.name = "GADGET_STATE_CHANGE_194007"
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_194007"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_194007"
L4_1 = {}
L4_1.config_id = 1194008
L4_1.name = "VARIABLE_CHANGE_194008"
L5_1 = EventType
L5_1 = L5_1.EVENT_VARIABLE_CHANGE
L4_1.event = L5_1
L4_1.source = "State_Flag"
L4_1.condition = "condition_EVENT_VARIABLE_CHANGE_194008"
L4_1.action = "action_EVENT_VARIABLE_CHANGE_194008"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1194009
L5_1.name = "VARIABLE_CHANGE_194009"
L6_1 = EventType
L6_1 = L6_1.EVENT_VARIABLE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_VARIABLE_CHANGE_194009"
L5_1.action = "action_EVENT_VARIABLE_CHANGE_194009"
L6_1 = {}
L6_1.config_id = 1194010
L6_1.name = "GADGET_STATE_CHANGE_194010"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_STATE_CHANGE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_194010"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_194010"
L7_1 = {}
L7_1.config_id = 1194011
L7_1.name = "GADGET_STATE_CHANGE_194011"
L8_1 = EventType
L8_1 = L8_1.EVENT_GADGET_STATE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_194011"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_194011"
L8_1 = {}
L8_1.config_id = 1194012
L8_1.name = "GADGET_STATE_CHANGE_194012"
L9_1 = EventType
L9_1 = L9_1.EVENT_GADGET_STATE_CHANGE
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_194012"
L8_1.action = "action_EVENT_GADGET_STATE_CHANGE_194012"
L9_1 = {}
L9_1.config_id = 1194013
L9_1.name = "GADGET_STATE_CHANGE_194013"
L10_1 = EventType
L10_1 = L10_1.EVENT_GADGET_STATE_CHANGE
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_194013"
L9_1.action = "action_EVENT_GADGET_STATE_CHANGE_194013"
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
L2_1[7] = L9_1
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "State_Flag"
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 = 194001
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "VARIABLE_CHANGE_194008"
L6_1 = "VARIABLE_CHANGE_194009"
L7_1 = "GADGET_STATE_CHANGE_194013"
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
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L6_1 = 194002
L7_1 = 194003
L8_1 = 194004
L9_1 = 194005
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L6_1 = "GADGET_STATE_CHANGE_194007"
L7_1 = "GADGET_STATE_CHANGE_194010"
L8_1 = "GADGET_STATE_CHANGE_194011"
L9_1 = "GADGET_STATE_CHANGE_194012"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_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, L3_2
L2_2 = A1_2.param2
if 194002 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_194007 = 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.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
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 : change_GroupVariable"
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_194007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_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
if not (L2_2 < 0) then
L2_2 = A1_2.param1
if not (4 < L2_2) then
goto lbl_15
end
end
L2_2 = false
do return L2_2 end
::lbl_15::
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_194008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = A1_2.param1
if L2_2 == 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Default
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 1 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action01
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 2
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 2 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action02
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 3
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 3 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.Action03
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 2
L6_2 = 4
L2_2(L3_2, L4_2, L5_2, L6_2)
else
L2_2 = A1_2.param1
if L2_2 == 4 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_id
L5_2 = L1_1.gadget_riddle_hint
L6_2 = GadgetState
L6_2 = L6_2.GearStart
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 1003
L5_2 = 3
L6_2 = 5
L2_2(L3_2, L4_2, L5_2, L6_2)
end
end
end
end
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_194008 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2, L4_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 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 4 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_194009 = 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.CreateGadget
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 194006
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 : create_gadget"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.ChangeGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "progress"
L5_2 = 1
L6_2 = 133225273
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 : change_GroupVariable_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_194009 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 194003 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_194010 = 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.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
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 : change_GroupVariable"
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_194010 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 194004 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_194011 = 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.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
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 : change_GroupVariable"
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_194011 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 194005 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_194012 = 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.ChangeGroupVariableValue
L3_2 = A0_2
L4_2 = "State_Flag"
L5_2 = 1
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 : change_GroupVariable"
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_194012 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 194006 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.ChestOpened
L3_2 = A1_2.param1
if L2_2 == L3_2 then
goto lbl_11
end
end
L2_2 = false
do return L2_2 end
::lbl_11::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_194013 = 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.SetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Finish"
L5_2 = 1
L6_2 = 133225195
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 : set_groupVariable_by_group"
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_194013 = L2_1