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

669 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, L11_1, L12_1, L13_1, L14_1, L15_1, L16_1, L17_1, L18_1
L0_1 = {}
L0_1.group_id = 155006200
L1_1 = {}
L1_1.group_ID = 155006200
L1_1.gadget_pattern = 200001
L1_1.gadget_mark_01 = 200002
L1_1.gadget_mark_02 = 200003
L1_1.gadget_mark_03 = 200004
L1_1.gadget_mark_04 = 200005
L1_1.gadget_mark_05 = 200006
L2_1 = {}
L3_1 = 2
L4_1 = 1
L5_1 = 3
L6_1 = 4
L7_1 = 5
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
L1_1.solution = L2_1
L1_1.solutionListIndex = 4
L1_1.altarGroupID = 155008010
L1_1.gadget_worktop = 200007
L1_1.gadget_mask = 200008
L2_1 = {}
L3_1 = {}
L4_1 = {}
L5_1 = {}
L6_1 = L1_1.gadget_mask
L5_1[1] = L6_1
L6_1 = {}
L7_1 = L1_1.gadget_worktop
L8_1 = L1_1.gadget_pattern
L9_1 = L1_1.gadget_mark_01
L10_1 = L1_1.gadget_mark_02
L11_1 = L1_1.gadget_mark_03
L12_1 = L1_1.gadget_mark_04
L13_1 = L1_1.gadget_mark_05
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L6_1[4] = L10_1
L6_1[5] = L11_1
L6_1[6] = L12_1
L6_1[7] = L13_1
L7_1 = {}
L8_1 = L1_1.gadget_mark_01
L9_1 = L1_1.gadget_mark_02
L10_1 = L1_1.gadget_mark_03
L11_1 = L1_1.gadget_mark_04
L12_1 = L1_1.gadget_mark_05
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_1
L7_1[5] = L12_1
marklist = L7_1
L7_1 = {}
function L8_1(A0_2)
local L1_2, L2_2, L3_2, L4_2
L1_2 = ScriptLib
L1_2 = L1_2.SetGroupVariableValue
L2_2 = A0_2
L3_2 = "is_daynight_finish"
L4_2 = 1
L1_2(L2_2, L3_2, L4_2)
end
L7_1["0"] = L8_1
function L8_1(A0_2)
local L1_2, L2_2, L3_2, L4_2
L1_2 = ScriptLib
L1_2 = L1_2.SetGroupVariableValue
L2_2 = A0_2
L3_2 = "is_daynight_finish"
L4_2 = 0
L1_2(L2_2, L3_2, L4_2)
L1_2 = ScriptLib
L1_2 = L1_2.AddExtraGroupSuite
L2_2 = A0_2
L3_2 = L1_1.group_ID
L4_2 = 2
L1_2(L2_2, L3_2, L4_2)
end
L7_1["1"] = L8_1
function L8_1(A0_2)
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2
L1_2 = ScriptLib
L1_2 = L1_2.SetGroupVariableValue
L2_2 = A0_2
L3_2 = "is_daynight_finish"
L4_2 = 1
L1_2(L2_2, L3_2, L4_2)
L1_2 = ScriptLib
L1_2 = L1_2.AddExtraGroupSuite
L2_2 = A0_2
L3_2 = L1_1.group_ID
L4_2 = 3
L1_2(L2_2, L3_2, L4_2)
L1_2 = "solution_state_"
L2_2 = L1_1.solutionListIndex
L1_2 = L1_2 .. L2_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = L1_2
L5_2 = L1_1.altarGroupID
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 == 0 then
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = L1_2
L5_2 = 1
L6_2 = L1_1.altarGroupID
L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_ID
L5_2 = L1_1.gadget_pattern
L6_2 = 201
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = 1
L3_2 = marklist
L3_2 = #L3_2
L4_2 = 1
for L5_2 = L2_2, L3_2, L4_2 do
L6_2 = ScriptLib
L6_2 = L6_2.SetGroupGadgetStateByConfigId
L7_2 = A0_2
L8_2 = L1_1.group_ID
L9_2 = marklist
L9_2 = L9_2[L5_2]
L10_2 = 201
L6_2(L7_2, L8_2, L9_2, L10_2)
end
end
L7_1["2"] = L8_1
function L8_1(A0_2)
local L1_2, L2_2, L3_2
L1_2 = ScriptLib
L1_2 = L1_2.GetGroupVariableValue
L2_2 = A0_2
L3_2 = "gameplayState"
L1_2 = L1_2(L2_2, L3_2)
L2_2 = tostring
L3_2 = L1_2
L2_2 = L2_2(L3_2)
L2_2 = L7_1[L2_2]
L3_2 = A0_2
L2_2(L3_2)
end
UpdateGamePlayState = L8_1
L8_1 = {}
monsters = L8_1
L8_1 = {}
npcs = L8_1
L8_1 = {}
L9_1 = {}
L9_1.config_id = 200001
L9_1.gadget_id = 70230074
L10_1 = {}
L10_1.x = 460.444
L10_1.y = 170.996
L10_1.z = -226.117
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 356.88
L10_1.y = 51.742
L10_1.z = 2.774
L9_1.rot = L10_1
L9_1.level = 36
L9_1.area_id = 200
L10_1 = {}
L10_1.config_id = 200002
L10_1.gadget_id = 70230075
L11_1 = {}
L11_1.x = 461.017
L11_1.y = 171.036
L11_1.z = -226.847
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 356.881
L11_1.y = 51.742
L11_1.z = 260.953
L10_1.rot = L11_1
L10_1.level = 36
L10_1.area_id = 200
L11_1 = {}
L11_1.config_id = 200003
L11_1.gadget_id = 70230076
L12_1 = {}
L12_1.x = 460.753
L12_1.y = 171.798
L12_1.z = -226.627
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 8.174
L12_1.y = 59.459
L12_1.z = 322.54
L11_1.rot = L12_1
L11_1.level = 36
L11_1.area_id = 200
L12_1 = {}
L12_1.config_id = 200004
L12_1.gadget_id = 70230077
L13_1 = {}
L13_1.x = 460.53
L13_1.y = 170.15
L13_1.z = -226.152
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 356.88
L13_1.y = 51.742
L13_1.z = 189.207
L12_1.rot = L13_1
L12_1.level = 36
L12_1.area_id = 200
L13_1 = {}
L13_1.config_id = 200005
L13_1.gadget_id = 70230078
L14_1 = {}
L14_1.x = 459.941
L14_1.y = 170.757
L14_1.z = -225.457
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 356.88
L14_1.y = 51.742
L14_1.z = 110.877
L13_1.rot = L14_1
L13_1.level = 36
L13_1.area_id = 200
L14_1 = {}
L14_1.config_id = 200006
L14_1.gadget_id = 70230079
L15_1 = {}
L15_1.x = 459.916
L15_1.y = 171.769
L15_1.z = -225.657
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 356.88
L15_1.y = 51.742
L15_1.z = 43.898
L14_1.rot = L15_1
L14_1.level = 36
L14_1.area_id = 200
L15_1 = {}
L15_1.config_id = 200007
L15_1.gadget_id = 70360001
L16_1 = {}
L16_1.x = 460.326
L16_1.y = 171.134
L16_1.z = -226.179
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 359.0
L16_1.y = 0.017
L16_1.z = 358.04
L15_1.rot = L16_1
L15_1.level = 36
L15_1.area_id = 200
L16_1 = {}
L16_1.config_id = 200008
L16_1.gadget_id = 70290229
L17_1 = {}
L17_1.x = 460.496
L17_1.y = 171.116
L17_1.z = -226.139
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 357.682
L17_1.y = 359.994
L17_1.z = 0.307
L16_1.rot = L17_1
L16_1.level = 36
L16_1.area_id = 200
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
L8_1[5] = L13_1
L8_1[6] = L14_1
L8_1[7] = L15_1
L8_1[8] = L16_1
gadgets = L8_1
L8_1 = {}
regions = L8_1
L8_1 = {}
L9_1 = {}
L9_1.config_id = 1200009
L9_1.name = "GROUP_LOAD_200009"
L10_1 = EventType
L10_1 = L10_1.EVENT_GROUP_LOAD
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = ""
L9_1.action = "action_EVENT_GROUP_LOAD_200009"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1200010
L10_1.name = "VARIABLE_CHANGE_200010"
L11_1 = EventType
L11_1 = L11_1.EVENT_VARIABLE_CHANGE
L10_1.event = L11_1
L10_1.source = "gameplayState"
L10_1.condition = "condition_EVENT_VARIABLE_CHANGE_200010"
L10_1.action = "action_EVENT_VARIABLE_CHANGE_200010"
L10_1.trigger_count = 0
L11_1 = {}
L11_1.config_id = 1200011
L11_1.name = "SELECT_OPTION_200011"
L12_1 = EventType
L12_1 = L12_1.EVENT_SELECT_OPTION
L11_1.event = L12_1
L11_1.source = ""
L11_1.condition = "condition_EVENT_SELECT_OPTION_200011"
L11_1.action = "action_EVENT_SELECT_OPTION_200011"
L11_1.trigger_count = 0
L12_1 = {}
L12_1.config_id = 1200012
L12_1.name = "TIME_AXIS_PASS_200012"
L13_1 = EventType
L13_1 = L13_1.EVENT_TIME_AXIS_PASS
L12_1.event = L13_1
L12_1.source = "activeSolution"
L12_1.condition = ""
L12_1.action = "action_EVENT_TIME_AXIS_PASS_200012"
L12_1.trigger_count = 0
L13_1 = {}
L13_1.config_id = 1200013
L13_1.name = "GADGET_CREATE_200013"
L14_1 = EventType
L14_1 = L14_1.EVENT_GADGET_CREATE
L13_1.event = L14_1
L13_1.source = ""
L13_1.condition = "condition_EVENT_GADGET_CREATE_200013"
L13_1.action = "action_EVENT_GADGET_CREATE_200013"
L13_1.trigger_count = 0
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
L8_1[5] = L13_1
triggers = L8_1
L8_1 = {}
L9_1 = {}
L9_1.configId = 1
L9_1.name = "gameplayState"
L9_1.value = 1
L9_1.no_refresh = true
L8_1[1] = L9_1
variables = L8_1
L8_1 = {}
L8_1.suite = 1
L8_1.end_suite = 0
L8_1.rand_suite = false
init_config = L8_1
L8_1 = {}
L9_1 = {}
L10_1 = {}
L9_1.monsters = L10_1
L10_1 = {}
L9_1.gadgets = L10_1
L10_1 = {}
L9_1.regions = L10_1
L10_1 = {}
L11_1 = "GROUP_LOAD_200009"
L12_1 = "VARIABLE_CHANGE_200010"
L13_1 = "GADGET_CREATE_200013"
L10_1[1] = L11_1
L10_1[2] = L12_1
L10_1[3] = L13_1
L9_1.triggers = L10_1
L9_1.rand_weight = 100
L10_1 = {}
L11_1 = {}
L10_1.monsters = L11_1
L11_1 = {}
L12_1 = 200001
L13_1 = 200002
L14_1 = 200003
L15_1 = 200004
L16_1 = 200005
L17_1 = 200006
L11_1[1] = L12_1
L11_1[2] = L13_1
L11_1[3] = L14_1
L11_1[4] = L15_1
L11_1[5] = L16_1
L11_1[6] = L17_1
L10_1.gadgets = L11_1
L11_1 = {}
L10_1.regions = L11_1
L11_1 = {}
L12_1 = "SELECT_OPTION_200011"
L13_1 = "TIME_AXIS_PASS_200012"
L11_1[1] = L12_1
L11_1[2] = L13_1
L10_1.triggers = L11_1
L10_1.rand_weight = 100
L11_1 = {}
L12_1 = {}
L11_1.monsters = L12_1
L12_1 = {}
L13_1 = 200001
L14_1 = 200002
L15_1 = 200003
L16_1 = 200004
L17_1 = 200005
L18_1 = 200006
L12_1[1] = L13_1
L12_1[2] = L14_1
L12_1[3] = L15_1
L12_1[4] = L16_1
L12_1[5] = L17_1
L12_1[6] = L18_1
L11_1.gadgets = L12_1
L12_1 = {}
L11_1.regions = L12_1
L12_1 = {}
L11_1.triggers = L12_1
L11_1.rand_weight = 100
L12_1 = {}
L13_1 = {}
L12_1.monsters = L13_1
L13_1 = {}
L12_1.gadgets = L13_1
L13_1 = {}
L12_1.regions = L13_1
L13_1 = {}
L12_1.triggers = L13_1
L12_1.rand_weight = 100
L8_1[1] = L9_1
L8_1[2] = L10_1
L8_1[3] = L11_1
L8_1[4] = L12_1
suites = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = UpdateGamePlayState
L3_2 = A0_2
L2_2(L3_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_200009 = L8_1
function L8_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 = "gameplayState"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 == 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_200010 = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = UpdateGamePlayState
L3_2 = A0_2
L2_2(L3_2)
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_200010 = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "evt.param1 = "
L5_2 = A1_2.param1
L6_2 = " | evt.param2 = "
L7_2 = A1_2.param2
L8_2 = " | evt.param3 = "
L9_2 = A1_2.param3
L4_2 = L4_2 .. L5_2 .. L6_2 .. L7_2 .. L8_2 .. L9_2
L2_2(L3_2, L4_2)
L2_2 = A1_2.param1
if 200007 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "option gadget id ~= 109011"
L2_2(L3_2, L4_2)
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if 65 ~= L2_2 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "option index ~= 65"
L2_2(L3_2, L4_2)
L2_2 = false
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValue
L3_2 = A0_2
L4_2 = "gameplayState"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "gameplayState ~= 1"
L2_2(L3_2, L4_2)
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_200011 = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2
L2_2 = ScriptLib
L2_2 = L2_2.DelWorktopOptionByGroupId
L3_2 = A0_2
L4_2 = L1_1.group_ID
L5_2 = L1_1.gadget_worktop
L6_2 = 65
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "---Initial Time Axis---"
L2_2(L3_2, L4_2)
L2_2 = ScriptLib
L2_2 = L2_2.InitTimeAxis
L3_2 = A0_2
L4_2 = "activeSolution"
L5_2 = {}
L6_2 = 1
L7_2 = 2
L8_2 = 3
L9_2 = 4
L10_2 = 5
L11_2 = 6
L5_2[1] = L6_2
L5_2[2] = L7_2
L5_2[3] = L8_2
L5_2[4] = L9_2
L5_2[5] = L10_2
L5_2[6] = L11_2
L6_2 = false
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_200011 = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "---Start Time Axis---"
L2_2(L3_2, L4_2)
L2_2 = A1_2.param1
if L2_2 == 6 then
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "Show pattern["
L5_2 = A1_2.param1
L6_2 = "] : "
L7_2 = L1_1.gadget_pattern
L4_2 = L4_2 .. L5_2 .. L6_2 .. L7_2
L2_2(L3_2, L4_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_ID
L5_2 = L1_1.gadget_pattern
L6_2 = 201
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "gameplayState"
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
else
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "Show mark["
L5_2 = A1_2.param1
L6_2 = "] : "
L7_2 = marklist
L8_2 = A1_2.param1
L7_2 = L7_2[L8_2]
L4_2 = L4_2 .. L5_2 .. L6_2 .. L7_2
L2_2(L3_2, L4_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = L1_1.group_ID
L5_2 = marklist
L6_2 = A1_2.param1
L5_2 = L5_2[L6_2]
L6_2 = 201
L2_2(L3_2, L4_2, L5_2, L6_2)
end
L2_2 = 0
return L2_2
end
action_EVENT_TIME_AXIS_PASS_200012 = L8_1
function L8_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 200007 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_200013 = L8_1
function L8_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
L2_2 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 155006200
L5_2 = 200007
L6_2 = {}
L7_2 = 65
L6_2[1] = L7_2
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_wok_options_by_configid"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_CREATE_200013 = L8_1
L8_1 = require
L9_1 = "V2_4/EnvState"
L8_1(L9_1)
L8_1 = require
L9_1 = "V2_4/EnvStateWorktop"
L8_1(L9_1)