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

502 lines
10 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
L0_1 = {}
L0_1.group_id = 155005072
L1_1 = {}
L1_1.pointarryRot = 500500002
L1_1.pointarryRott = 500500003
L2_1 = {}
L3_1 = 72003
L4_1 = 72004
L2_1[1] = L3_1
L2_1[2] = L4_1
L3_1 = {}
L4_1 = {}
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 72001
L6_1.gadget_id = 70290170
L7_1 = {}
L7_1.x = 559.38
L7_1.y = 217.438
L7_1.z = 860.408
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 270.0
L7_1.z = 359.858
L6_1.rot = L7_1
L6_1.level = 36
L6_1.persistent = true
L6_1.is_use_point_array = true
L6_1.area_id = 200
L7_1 = {}
L7_1.config_id = 72002
L7_1.gadget_id = 70211101
L8_1 = {}
L8_1.x = 566.809
L8_1.y = 217.97
L8_1.z = 860.475
L7_1.pos = L8_1
L8_1 = {}
L8_1.x = 0.0
L8_1.y = 269.981
L8_1.z = 0.0
L7_1.rot = L8_1
L7_1.level = 16
L7_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L7_1.isOneoff = true
L7_1.persistent = true
L8_1 = {}
L8_1.name = "chest"
L8_1.exp = 1
L7_1.explore = L8_1
L7_1.area_id = 200
L8_1 = {}
L8_1.config_id = 72003
L8_1.gadget_id = 70360305
L9_1 = {}
L9_1.x = 545.494
L9_1.y = 217.382
L9_1.z = 857.626
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 90.952
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 36
L8_1.area_id = 200
L9_1 = {}
L9_1.config_id = 72004
L9_1.gadget_id = 70360309
L10_1 = {}
L10_1.x = 561.303
L10_1.y = 218.02
L10_1.z = 873.728
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 90.199
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 36
L9_1.area_id = 200
L10_1 = {}
L10_1.config_id = 72005
L10_1.gadget_id = 70211101
L11_1 = {}
L11_1.x = 566.141
L11_1.y = 217.944
L11_1.z = 850.356
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 91.178
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 16
L10_1.drop_tag = "\232\167\163\232\176\156\228\189\142\231\186\167\231\168\187\229\166\187"
L10_1.isOneoff = true
L10_1.persistent = true
L11_1 = {}
L11_1.name = "chest"
L11_1.exp = 1
L10_1.explore = L11_1
L10_1.area_id = 200
L11_1 = {}
L11_1.config_id = 72006
L11_1.gadget_id = 70290170
L12_1 = {}
L12_1.x = 573.906
L12_1.y = 217.6
L12_1.z = 865.509
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 359.317
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 36
L11_1.persistent = true
L11_1.is_use_point_array = true
L11_1.area_id = 200
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
L5_1[6] = L11_1
gadgets = L5_1
L5_1 = {}
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1072007
L6_1.name = "GADGET_STATE_CHANGE_72007"
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_72007"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_72007"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1072008
L7_1.name = "GADGET_STATE_CHANGE_72008"
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_72008"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_72008"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1072009
L8_1.name = "GROUP_LOAD_72009"
L9_1 = EventType
L9_1 = L9_1.EVENT_GROUP_LOAD
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = ""
L8_1.action = "action_EVENT_GROUP_LOAD_72009"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1072010
L9_1.name = "GROUP_LOAD_72010"
L10_1 = EventType
L10_1 = L10_1.EVENT_GROUP_LOAD
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_GROUP_LOAD_72010"
L9_1.action = "action_EVENT_GROUP_LOAD_72010"
L9_1.trigger_count = 0
L10_1 = {}
L10_1.config_id = 1072011
L10_1.name = "GROUP_LOAD_72011"
L11_1 = EventType
L11_1 = L11_1.EVENT_GROUP_LOAD
L10_1.event = L11_1
L10_1.source = ""
L10_1.condition = "condition_EVENT_GROUP_LOAD_72011"
L10_1.action = "action_EVENT_GROUP_LOAD_72011"
L10_1.trigger_count = 0
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
L5_1[5] = L10_1
triggers = L5_1
L5_1 = {}
L6_1 = {}
L6_1.configId = 1
L6_1.name = "Door01"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 2
L7_1.name = "Door02"
L7_1.value = 0
L7_1.no_refresh = true
L5_1[1] = L6_1
L5_1[2] = L7_1
variables = L5_1
L5_1 = {}
L5_1.suite = 1
L5_1.end_suite = 0
L5_1.rand_suite = false
init_config = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 72001
L9_1 = 72002
L10_1 = 72003
L11_1 = 72004
L12_1 = 72005
L13_1 = 72006
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
L7_1[6] = L13_1
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GADGET_STATE_CHANGE_72007"
L9_1 = "GADGET_STATE_CHANGE_72008"
L10_1 = "GROUP_LOAD_72009"
L11_1 = "GROUP_LOAD_72010"
L12_1 = "GROUP_LOAD_72011"
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
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L5_1[1] = L6_1
suites = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 155005072
L5_2 = 72003
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 222 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_72007 = L5_1
function L5_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.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 72001
L5_2 = L1_1.pointarryRot
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = {}
L2_2.x = 559.38
L2_2.y = 220.4384
L2_2.z = 860.4082
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 2
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupVariableValue
L5_2 = A0_2
L6_2 = "Door01"
L7_2 = 1
L4_2 = L4_2(L5_2, L6_2, L7_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : set_groupVariable"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_GADGET_STATE_CHANGE_72007 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 155005072
L5_2 = 72004
L2_2 = L2_2(L3_2, L4_2, L5_2)
if 322 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_72008 = L5_1
function L5_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.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 72006
L5_2 = L1_1.pointarryRott
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = {}
L2_2.x = 573.9063
L2_2.y = 220.4384
L2_2.z = 865.5082
L3_2 = {}
L3_2.x = 0
L3_2.y = 0
L3_2.z = 0
L4_2 = ScriptLib
L4_2 = L4_2.BeginCameraSceneLook
L5_2 = A0_2
L6_2 = {}
L6_2.look_pos = L2_2
L6_2.is_allow_input = false
L6_2.duration = 2
L6_2.is_force = true
L6_2.is_broadcast = false
L6_2.is_recover_keep_current = true
L6_2.delay = 0
L6_2.is_set_follow_pos = false
L6_2.follow_pos = L3_2
L6_2.is_force_walk = false
L6_2.is_change_play_mode = false
L6_2.is_set_screen_XY = false
L6_2.screen_x = 0
L6_2.screen_y = 0
L4_2 = L4_2(L5_2, L6_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : active_cameraLook_Begin"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = ScriptLib
L4_2 = L4_2.SetGroupVariableValue
L5_2 = A0_2
L6_2 = "Door02"
L7_2 = 1
L4_2 = L4_2(L5_2, L6_2, L7_2)
if 0 ~= L4_2 then
L4_2 = ScriptLib
L4_2 = L4_2.PrintContextLog
L5_2 = A0_2
L6_2 = "@@ LUA_WARNING : set_groupVariable"
L4_2(L5_2, L6_2)
L4_2 = -1
return L4_2
end
L4_2 = 0
return L4_2
end
action_EVENT_GADGET_STATE_CHANGE_72008 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = DayNight_Gadget_Unlock
L3_2 = A0_2
L4_2 = 72003
L2_2(L3_2, L4_2)
L2_2 = DayNight_Gadget_Unlock
L3_2 = A0_2
L4_2 = 72004
L2_2(L3_2, L4_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_72009 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Door01"
L5_2 = 155005072
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GROUP_LOAD_72010 = L5_1
function L5_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.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 72001
L5_2 = L1_1.pointarryRot
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_72010 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGroupVariableValueByGroup
L3_2 = A0_2
L4_2 = "Door02"
L5_2 = 155005072
L2_2 = L2_2(L3_2, L4_2, L5_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GROUP_LOAD_72011 = L5_1
function L5_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.SetPlatformPointArray
L3_2 = A0_2
L4_2 = 72006
L5_2 = L1_1.pointarryRott
L6_2 = {}
L7_2 = 1
L6_2[1] = L7_2
L7_2 = {}
L7_2.route_type = 0
L7_2.turn_mode = true
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_72011 = L5_1
L5_1 = require
L6_1 = "V2_4/EnvState"
L5_1(L6_1)