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

1108 lines
22 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, L19_1, L20_1, L21_1, L22_1, L23_1, L24_1, L25_1, L26_1, L27_1, L28_1, L29_1
L0_1 = {}
L0_1.group_id = 111101239
L1_1 = {}
L1_1.pointarray_route = 110100045
L1_1.gadget_controller_1 = 239014
L1_1.gadget_controller_2 = 239017
L1_1.gadget_controller_3 = 239015
L1_1.gadget_controller_4 = 239016
L1_1.gadget_wall_1 = 239002
L1_1.gadget_wall_2 = 239001
L1_1.gadget_wall_3 = 239004
L1_1.gadget_wall_4 = 239003
L1_1.blocker_1 = 239020
L1_1.blocker_2 = 239019
L2_1 = {}
L3_1 = 239014
L4_1 = 239015
L5_1 = 239016
L6_1 = 239017
L7_1 = 239021
L8_1 = 239022
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
L3_1 = {}
L4_1 = {}
MaxSize = 12
L5_1 = {}
L6_1 = {}
L7_1 = L1_1.gadget_controller_1
L8_1 = {}
L9_1 = {}
L10_1 = L1_1.gadget_wall_1
L11_1 = {}
L12_1 = 2
L13_1 = 7
L14_1 = 12
L11_1[1] = L12_1
L11_1[2] = L13_1
L11_1[3] = L14_1
L9_1[1] = L10_1
L9_1[2] = L11_1
L10_1 = {}
L11_1 = L1_1.gadget_wall_2
L12_1 = {}
L13_1 = 1
L14_1 = 6
L15_1 = 11
L12_1[1] = L13_1
L12_1[2] = L14_1
L12_1[3] = L15_1
L10_1[1] = L11_1
L10_1[2] = L12_1
L8_1[1] = L9_1
L8_1[2] = L10_1
L6_1[1] = L7_1
L6_1[2] = L8_1
L7_1 = {}
L8_1 = L1_1.gadget_controller_2
L9_1 = {}
L10_1 = {}
L11_1 = L1_1.gadget_wall_1
L12_1 = {}
L13_1 = 12
L14_1 = 7
L15_1 = 2
L12_1[1] = L13_1
L12_1[2] = L14_1
L12_1[3] = L15_1
L10_1[1] = L11_1
L10_1[2] = L12_1
L11_1 = {}
L12_1 = L1_1.gadget_wall_2
L13_1 = {}
L14_1 = 11
L15_1 = 6
L16_1 = 1
L13_1[1] = L14_1
L13_1[2] = L15_1
L13_1[3] = L16_1
L11_1[1] = L12_1
L11_1[2] = L13_1
L9_1[1] = L10_1
L9_1[2] = L11_1
L7_1[1] = L8_1
L7_1[2] = L9_1
L8_1 = {}
L9_1 = L1_1.gadget_controller_3
L10_1 = {}
L11_1 = {}
L12_1 = L1_1.gadget_wall_3
L13_1 = {}
L14_1 = 8
L15_1 = 9
L16_1 = 10
L13_1[1] = L14_1
L13_1[2] = L15_1
L13_1[3] = L16_1
L11_1[1] = L12_1
L11_1[2] = L13_1
L12_1 = {}
L13_1 = L1_1.gadget_wall_4
L14_1 = {}
L15_1 = 3
L16_1 = 4
L17_1 = 5
L14_1[1] = L15_1
L14_1[2] = L16_1
L14_1[3] = L17_1
L12_1[1] = L13_1
L12_1[2] = L14_1
L10_1[1] = L11_1
L10_1[2] = L12_1
L8_1[1] = L9_1
L8_1[2] = L10_1
L9_1 = {}
L10_1 = L1_1.gadget_controller_4
L11_1 = {}
L12_1 = {}
L13_1 = L1_1.gadget_wall_3
L14_1 = {}
L15_1 = 10
L16_1 = 9
L17_1 = 8
L14_1[1] = L15_1
L14_1[2] = L16_1
L14_1[3] = L17_1
L12_1[1] = L13_1
L12_1[2] = L14_1
L13_1 = {}
L14_1 = L1_1.gadget_wall_4
L15_1 = {}
L16_1 = 5
L17_1 = 4
L18_1 = 3
L15_1[1] = L16_1
L15_1[2] = L17_1
L15_1[3] = L18_1
L13_1[1] = L14_1
L13_1[2] = L15_1
L11_1[1] = L12_1
L11_1[2] = L13_1
L9_1[1] = L10_1
L9_1[2] = L11_1
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
ControllerWallMap = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = L1_1.gadget_wall_1
L8_1 = 7
L6_1[1] = L7_1
L6_1[2] = L8_1
L7_1 = {}
L8_1 = L1_1.gadget_wall_2
L9_1 = 6
L7_1[1] = L8_1
L7_1[2] = L9_1
L8_1 = {}
L9_1 = L1_1.gadget_wall_3
L10_1 = 9
L8_1[1] = L9_1
L8_1[2] = L10_1
L9_1 = {}
L10_1 = L1_1.gadget_wall_4
L11_1 = 4
L9_1[1] = L10_1
L9_1[2] = L11_1
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
StartWallMap = L5_1
L5_1 = {}
L6_1 = {}
L7_1 = L1_1.blocker_1
L8_1 = 1
L9_1 = 0
L6_1[1] = L7_1
L6_1[2] = L8_1
L6_1[3] = L9_1
L7_1 = {}
L8_1 = L1_1.blocker_2
L9_1 = 12
L10_1 = 0
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L5_1[1] = L6_1
L5_1[2] = L7_1
StartBlockerMap = L5_1
L5_1 = {}
L6_1 = 12
L7_1 = 11
L8_1 = 10
L9_1 = 5
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
TargetSolution = L5_1
L5_1 = {}
monsters = L5_1
L5_1 = {}
npcs = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 239001
L6_1.gadget_id = 70290170
L7_1 = {}
L7_1.x = 2799.48
L7_1.y = 271.371
L7_1.z = -1474.069
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 = 1
L6_1.is_use_point_array = true
L7_1 = {}
L7_1.config_id = 239002
L7_1.gadget_id = 70290170
L8_1 = {}
L8_1.x = 2809.793
L8_1.y = 271.371
L8_1.z = -1474.324
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
L7_1.is_use_point_array = true
L8_1 = {}
L8_1.config_id = 239003
L8_1.gadget_id = 70290170
L9_1 = {}
L9_1.x = 2804.592
L9_1.y = 271.371
L9_1.z = -1469.112
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 270.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 1
L8_1.is_use_point_array = true
L9_1 = {}
L9_1.config_id = 239004
L9_1.gadget_id = 70290170
L10_1 = {}
L10_1.x = 2804.692
L10_1.y = 271.5
L10_1.z = -1479.64
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 90.0
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 1
L9_1.is_use_point_array = true
L10_1 = {}
L10_1.config_id = 239005
L10_1.gadget_id = 70220006
L11_1 = {}
L11_1.x = 2804.64
L11_1.y = 271.371
L11_1.z = -1474.37
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 0.0
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 1
L11_1 = {}
L11_1.config_id = 239006
L11_1.gadget_id = 70220006
L12_1 = {}
L12_1.x = 2794.51
L12_1.y = 271.371
L12_1.z = -1463.851
L11_1.pos = L12_1
L12_1 = {}
L12_1.x = 0.0
L12_1.y = 0.0
L12_1.z = 0.0
L11_1.rot = L12_1
L11_1.level = 1
L12_1 = {}
L12_1.config_id = 239007
L12_1.gadget_id = 70220006
L13_1 = {}
L13_1.x = 2814.777
L13_1.y = 271.432
L13_1.z = -1463.793
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 0.0
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 1
L13_1 = {}
L13_1.config_id = 239008
L13_1.gadget_id = 70220006
L14_1 = {}
L14_1.x = 2794.431
L14_1.y = 271.371
L14_1.z = -1484.146
L13_1.pos = L14_1
L14_1 = {}
L14_1.x = 0.0
L14_1.y = 0.0
L14_1.z = 0.0
L13_1.rot = L14_1
L13_1.level = 1
L14_1 = {}
L14_1.config_id = 239009
L14_1.gadget_id = 70220006
L15_1 = {}
L15_1.x = 2814.951
L15_1.y = 272.274
L15_1.z = -1484.398
L14_1.pos = L15_1
L15_1 = {}
L15_1.x = 0.0
L15_1.y = 0.0
L15_1.z = 0.0
L14_1.rot = L15_1
L14_1.level = 1
L15_1 = {}
L15_1.config_id = 239010
L15_1.gadget_id = 70220006
L16_1 = {}
L16_1.x = 2804.556
L16_1.y = 271.371
L16_1.z = -1463.901
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 0.0
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 1
L16_1 = {}
L16_1.config_id = 239011
L16_1.gadget_id = 70220006
L17_1 = {}
L17_1.x = 2794.308
L17_1.y = 271.371
L17_1.z = -1474.389
L16_1.pos = L17_1
L17_1 = {}
L17_1.x = 0.0
L17_1.y = 0.0
L17_1.z = 0.0
L16_1.rot = L17_1
L16_1.level = 1
L17_1 = {}
L17_1.config_id = 239012
L17_1.gadget_id = 70220006
L18_1 = {}
L18_1.x = 2814.804
L18_1.y = 272.078
L18_1.z = -1474.269
L17_1.pos = L18_1
L18_1 = {}
L18_1.x = 0.0
L18_1.y = 0.0
L18_1.z = 0.0
L17_1.rot = L18_1
L17_1.level = 1
L18_1 = {}
L18_1.config_id = 239013
L18_1.gadget_id = 70220006
L19_1 = {}
L19_1.x = 2804.676
L19_1.y = 271.688
L19_1.z = -1484.577
L18_1.pos = L19_1
L19_1 = {}
L19_1.x = 0.0
L19_1.y = 0.0
L19_1.z = 0.0
L18_1.rot = L19_1
L18_1.level = 1
L19_1 = {}
L19_1.config_id = 239014
L19_1.gadget_id = 70360305
L20_1 = {}
L20_1.x = 2803.153
L20_1.y = 271.989
L20_1.z = -1451.029
L19_1.pos = L20_1
L20_1 = {}
L20_1.x = 0.0
L20_1.y = 0.0
L20_1.z = 0.0
L19_1.rot = L20_1
L19_1.level = 1
L20_1 = {}
L20_1.config_id = 239015
L20_1.gadget_id = 70360305
L21_1 = {}
L21_1.x = 2781.647
L21_1.y = 270.736
L21_1.z = -1474.045
L20_1.pos = L21_1
L21_1 = {}
L21_1.x = 0.0
L21_1.y = 0.0
L21_1.z = 0.0
L20_1.rot = L21_1
L20_1.level = 1
L21_1 = {}
L21_1.config_id = 239016
L21_1.gadget_id = 70360305
L22_1 = {}
L22_1.x = 2821.537
L22_1.y = 271.671
L22_1.z = -1474.248
L21_1.pos = L22_1
L22_1 = {}
L22_1.x = 0.0
L22_1.y = 0.0
L22_1.z = 0.0
L21_1.rot = L22_1
L21_1.level = 1
L22_1 = {}
L22_1.config_id = 239017
L22_1.gadget_id = 70360305
L23_1 = {}
L23_1.x = 2805.055
L23_1.y = 271.651
L23_1.z = -1492.0
L22_1.pos = L23_1
L23_1 = {}
L23_1.x = 0.0
L23_1.y = 0.0
L23_1.z = 0.0
L22_1.rot = L23_1
L22_1.level = 1
L23_1 = {}
L23_1.config_id = 239019
L23_1.gadget_id = 70350006
L24_1 = {}
L24_1.x = 2810.236
L24_1.y = 271.253
L24_1.z = -1483.988
L23_1.pos = L24_1
L24_1 = {}
L24_1.x = 0.0
L24_1.y = 0.0
L24_1.z = 0.0
L23_1.rot = L24_1
L23_1.level = 1
L24_1 = {}
L24_1.config_id = 239020
L24_1.gadget_id = 70350006
L25_1 = {}
L25_1.x = 2799.188
L25_1.y = 270.61
L25_1.z = -1462.762
L24_1.pos = L25_1
L25_1 = {}
L25_1.x = 0.0
L25_1.y = 0.0
L25_1.z = 0.0
L24_1.rot = L25_1
L24_1.level = 1
L25_1 = {}
L25_1.config_id = 239021
L25_1.gadget_id = 70360305
L26_1 = {}
L26_1.x = 2810.616
L26_1.y = 272.035
L26_1.z = -1491.834
L25_1.pos = L26_1
L26_1 = {}
L26_1.x = 0.0
L26_1.y = 0.0
L26_1.z = 0.0
L25_1.rot = L26_1
L25_1.level = 1
L26_1 = {}
L26_1.config_id = 239022
L26_1.gadget_id = 70360305
L27_1 = {}
L27_1.x = 2799.307
L27_1.y = 270.61
L27_1.z = -1458.182
L26_1.pos = L27_1
L27_1 = {}
L27_1.x = 0.0
L27_1.y = 0.0
L27_1.z = 0.0
L26_1.rot = L27_1
L26_1.level = 1
L27_1 = {}
L27_1.config_id = 239025
L27_1.gadget_id = 70211021
L28_1 = {}
L28_1.x = 2804.8
L28_1.y = 277.462
L28_1.z = -1474.705
L27_1.pos = L28_1
L28_1 = {}
L28_1.x = 0.0
L28_1.y = 0.0
L28_1.z = 0.0
L27_1.rot = L28_1
L27_1.level = 26
L27_1.drop_tag = "\230\136\152\230\150\151\233\171\152\231\186\167\232\146\153\229\190\183"
L28_1 = GadgetState
L28_1 = L28_1.ChestLocked
L27_1.state = L28_1
L27_1.isOneoff = true
L27_1.persistent = true
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
L5_1[7] = L12_1
L5_1[8] = L13_1
L5_1[9] = L14_1
L5_1[10] = L15_1
L5_1[11] = L16_1
L5_1[12] = L17_1
L5_1[13] = L18_1
L5_1[14] = L19_1
L5_1[15] = L20_1
L5_1[16] = L21_1
L5_1[17] = L22_1
L5_1[18] = L23_1
L5_1[19] = L24_1
L5_1[20] = L25_1
L5_1[21] = L26_1
L5_1[22] = L27_1
gadgets = L5_1
L5_1 = {}
regions = L5_1
L5_1 = {}
L6_1 = {}
L6_1.config_id = 1239018
L6_1.name = "GROUP_LOAD_239018"
L7_1 = EventType
L7_1 = L7_1.EVENT_GROUP_LOAD
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = ""
L6_1.action = "action_EVENT_GROUP_LOAD_239018"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1239023
L7_1.name = "GADGET_STATE_CHANGE_239023"
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_239023"
L7_1.action = "action_EVENT_GADGET_STATE_CHANGE_239023"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1239024
L8_1.name = "GADGET_STATE_CHANGE_239024"
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_239024"
L8_1.action = "action_EVENT_GADGET_STATE_CHANGE_239024"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1239026
L9_1.name = "VARIABLE_CHANGE_239026"
L10_1 = EventType
L10_1 = L10_1.EVENT_VARIABLE_CHANGE
L9_1.event = L10_1
L9_1.source = ""
L9_1.condition = "condition_EVENT_VARIABLE_CHANGE_239026"
L9_1.action = "action_EVENT_VARIABLE_CHANGE_239026"
L5_1[1] = L6_1
L5_1[2] = L7_1
L5_1[3] = L8_1
L5_1[4] = L9_1
triggers = L5_1
L5_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 = 239001
L9_1 = 239002
L10_1 = 239003
L11_1 = 239004
L12_1 = 239005
L13_1 = 239006
L14_1 = 239007
L15_1 = 239008
L16_1 = 239009
L17_1 = 239010
L18_1 = 239011
L19_1 = 239012
L20_1 = 239013
L21_1 = 239014
L22_1 = 239015
L23_1 = 239016
L24_1 = 239017
L25_1 = 239019
L26_1 = 239020
L27_1 = 239021
L28_1 = 239022
L29_1 = 239025
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
L7_1[7] = L14_1
L7_1[8] = L15_1
L7_1[9] = L16_1
L7_1[10] = L17_1
L7_1[11] = L18_1
L7_1[12] = L19_1
L7_1[13] = L20_1
L7_1[14] = L21_1
L7_1[15] = L22_1
L7_1[16] = L23_1
L7_1[17] = L24_1
L7_1[18] = L25_1
L7_1[19] = L26_1
L7_1[20] = L27_1
L7_1[21] = L28_1
L7_1[22] = L29_1
L6_1.gadgets = L7_1
L7_1 = {}
L6_1.regions = L7_1
L7_1 = {}
L8_1 = "GROUP_LOAD_239018"
L9_1 = "GADGET_STATE_CHANGE_239023"
L10_1 = "GADGET_STATE_CHANGE_239024"
L11_1 = "VARIABLE_CHANGE_239026"
L7_1[1] = L8_1
L7_1[2] = L9_1
L7_1[3] = L10_1
L7_1[4] = L11_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, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2, L12_2, L13_2, L14_2, L15_2, L16_2, L17_2, L18_2, L19_2, L20_2, L21_2, L22_2, L23_2, L24_2
L2_2 = false
L3_2 = 1
L4_2 = L2_1
L4_2 = #L4_2
L5_2 = 1
for L6_2 = L3_2, L4_2, L5_2 do
L7_2 = L2_1[L6_2]
if 239014 == L7_2 then
L2_2 = true
end
end
if not L2_2 then
L3_2 = ScriptLib
L3_2 = L3_2.PrintContextLog
L4_2 = A0_2
L5_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L3_2(L4_2, L5_2)
L3_2 = -1
return L3_2
end
L3_2 = ScriptLib
L3_2 = L3_2.GetCurrentLevelTagVec
L4_2 = A0_2
L5_2 = 1
L3_2 = L3_2(L4_2, L5_2)
L3_2 = L3_2[1]
L4_2 = ScriptLib
L4_2 = L4_2.GetLevelTagNameById
L5_2 = A0_2
L6_2 = L3_2
L4_2 = L4_2(L5_2, L6_2)
if L4_2 == "2_4_Day" then
L5_2 = ScriptLib
L5_2 = L5_2.SetGroupGadgetStateByConfigId
L6_2 = A0_2
L7_2 = 0
L8_2 = 239014
L9_2 = 202
L5_2(L6_2, L7_2, L8_2, L9_2)
end
if L4_2 == "2_4_Night" then
L5_2 = ScriptLib
L5_2 = L5_2.SetGroupGadgetStateByConfigId
L6_2 = A0_2
L7_2 = 0
L8_2 = 239014
L9_2 = 302
L5_2(L6_2, L7_2, L8_2, L9_2)
end
L5_2 = false
L6_2 = 1
L7_2 = L2_1
L7_2 = #L7_2
L8_2 = 1
for L9_2 = L6_2, L7_2, L8_2 do
L10_2 = L2_1[L9_2]
if 239015 == L10_2 then
L5_2 = true
end
end
if not L5_2 then
L6_2 = ScriptLib
L6_2 = L6_2.PrintContextLog
L7_2 = A0_2
L8_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L6_2(L7_2, L8_2)
L6_2 = -1
return L6_2
end
L6_2 = ScriptLib
L6_2 = L6_2.GetCurrentLevelTagVec
L7_2 = A0_2
L8_2 = 1
L6_2 = L6_2(L7_2, L8_2)
L6_2 = L6_2[1]
L7_2 = ScriptLib
L7_2 = L7_2.GetLevelTagNameById
L8_2 = A0_2
L9_2 = L6_2
L7_2 = L7_2(L8_2, L9_2)
if L7_2 == "2_4_Day" then
L8_2 = ScriptLib
L8_2 = L8_2.SetGroupGadgetStateByConfigId
L9_2 = A0_2
L10_2 = 0
L11_2 = 239015
L12_2 = 202
L8_2(L9_2, L10_2, L11_2, L12_2)
end
if L7_2 == "2_4_Night" then
L8_2 = ScriptLib
L8_2 = L8_2.SetGroupGadgetStateByConfigId
L9_2 = A0_2
L10_2 = 0
L11_2 = 239015
L12_2 = 302
L8_2(L9_2, L10_2, L11_2, L12_2)
end
L8_2 = false
L9_2 = 1
L10_2 = L2_1
L10_2 = #L10_2
L11_2 = 1
for L12_2 = L9_2, L10_2, L11_2 do
L13_2 = L2_1[L12_2]
if 239016 == L13_2 then
L8_2 = true
end
end
if not L8_2 then
L9_2 = ScriptLib
L9_2 = L9_2.PrintContextLog
L10_2 = A0_2
L11_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L9_2(L10_2, L11_2)
L9_2 = -1
return L9_2
end
L9_2 = ScriptLib
L9_2 = L9_2.GetCurrentLevelTagVec
L10_2 = A0_2
L11_2 = 1
L9_2 = L9_2(L10_2, L11_2)
L9_2 = L9_2[1]
L10_2 = ScriptLib
L10_2 = L10_2.GetLevelTagNameById
L11_2 = A0_2
L12_2 = L9_2
L10_2 = L10_2(L11_2, L12_2)
if L10_2 == "2_4_Day" then
L11_2 = ScriptLib
L11_2 = L11_2.SetGroupGadgetStateByConfigId
L12_2 = A0_2
L13_2 = 0
L14_2 = 239016
L15_2 = 202
L11_2(L12_2, L13_2, L14_2, L15_2)
end
if L10_2 == "2_4_Night" then
L11_2 = ScriptLib
L11_2 = L11_2.SetGroupGadgetStateByConfigId
L12_2 = A0_2
L13_2 = 0
L14_2 = 239016
L15_2 = 302
L11_2(L12_2, L13_2, L14_2, L15_2)
end
L11_2 = false
L12_2 = 1
L13_2 = L2_1
L13_2 = #L13_2
L14_2 = 1
for L15_2 = L12_2, L13_2, L14_2 do
L16_2 = L2_1[L15_2]
if 239017 == L16_2 then
L11_2 = true
end
end
if not L11_2 then
L12_2 = ScriptLib
L12_2 = L12_2.PrintContextLog
L13_2 = A0_2
L14_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L12_2(L13_2, L14_2)
L12_2 = -1
return L12_2
end
L12_2 = ScriptLib
L12_2 = L12_2.GetCurrentLevelTagVec
L13_2 = A0_2
L14_2 = 1
L12_2 = L12_2(L13_2, L14_2)
L12_2 = L12_2[1]
L13_2 = ScriptLib
L13_2 = L13_2.GetLevelTagNameById
L14_2 = A0_2
L15_2 = L12_2
L13_2 = L13_2(L14_2, L15_2)
if L13_2 == "2_4_Day" then
L14_2 = ScriptLib
L14_2 = L14_2.SetGroupGadgetStateByConfigId
L15_2 = A0_2
L16_2 = 0
L17_2 = 239017
L18_2 = 202
L14_2(L15_2, L16_2, L17_2, L18_2)
end
if L13_2 == "2_4_Night" then
L14_2 = ScriptLib
L14_2 = L14_2.SetGroupGadgetStateByConfigId
L15_2 = A0_2
L16_2 = 0
L17_2 = 239017
L18_2 = 302
L14_2(L15_2, L16_2, L17_2, L18_2)
end
L14_2 = false
L15_2 = 1
L16_2 = L2_1
L16_2 = #L16_2
L17_2 = 1
for L18_2 = L15_2, L16_2, L17_2 do
L19_2 = L2_1[L18_2]
if 239021 == L19_2 then
L14_2 = true
end
end
if not L14_2 then
L15_2 = ScriptLib
L15_2 = L15_2.PrintContextLog
L16_2 = A0_2
L17_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L15_2(L16_2, L17_2)
L15_2 = -1
return L15_2
end
L15_2 = ScriptLib
L15_2 = L15_2.GetCurrentLevelTagVec
L16_2 = A0_2
L17_2 = 1
L15_2 = L15_2(L16_2, L17_2)
L15_2 = L15_2[1]
L16_2 = ScriptLib
L16_2 = L16_2.GetLevelTagNameById
L17_2 = A0_2
L18_2 = L15_2
L16_2 = L16_2(L17_2, L18_2)
if L16_2 == "2_4_Day" then
L17_2 = ScriptLib
L17_2 = L17_2.SetGroupGadgetStateByConfigId
L18_2 = A0_2
L19_2 = 0
L20_2 = 239021
L21_2 = 202
L17_2(L18_2, L19_2, L20_2, L21_2)
end
if L16_2 == "2_4_Night" then
L17_2 = ScriptLib
L17_2 = L17_2.SetGroupGadgetStateByConfigId
L18_2 = A0_2
L19_2 = 0
L20_2 = 239021
L21_2 = 302
L17_2(L18_2, L19_2, L20_2, L21_2)
end
L17_2 = false
L18_2 = 1
L19_2 = L2_1
L19_2 = #L19_2
L20_2 = 1
for L21_2 = L18_2, L19_2, L20_2 do
L22_2 = L2_1[L21_2]
if 239022 == L22_2 then
L17_2 = true
end
end
if not L17_2 then
L18_2 = ScriptLib
L18_2 = L18_2.PrintContextLog
L19_2 = A0_2
L20_2 = "EnvState: \233\148\153\232\175\175\231\154\132\228\188\160\229\133\165\228\186\134\228\184\128\228\184\170\228\184\141\229\156\168\230\152\188\229\164\156\229\136\151\232\161\168\228\184\173\231\154\132\231\137\169\228\187\182\239\188\129\239\188\129\239\188\129"
L18_2(L19_2, L20_2)
L18_2 = -1
return L18_2
end
L18_2 = ScriptLib
L18_2 = L18_2.GetCurrentLevelTagVec
L19_2 = A0_2
L20_2 = 1
L18_2 = L18_2(L19_2, L20_2)
L18_2 = L18_2[1]
L19_2 = ScriptLib
L19_2 = L19_2.GetLevelTagNameById
L20_2 = A0_2
L21_2 = L18_2
L19_2 = L19_2(L20_2, L21_2)
if L19_2 == "2_4_Day" then
L20_2 = ScriptLib
L20_2 = L20_2.SetGroupGadgetStateByConfigId
L21_2 = A0_2
L22_2 = 0
L23_2 = 239022
L24_2 = 202
L20_2(L21_2, L22_2, L23_2, L24_2)
end
if L19_2 == "2_4_Night" then
L20_2 = ScriptLib
L20_2 = L20_2.SetGroupGadgetStateByConfigId
L21_2 = A0_2
L22_2 = 0
L23_2 = 239022
L24_2 = 302
L20_2(L21_2, L22_2, L23_2, L24_2)
end
L20_2 = 0
return L20_2
end
action_EVENT_GROUP_LOAD_239018 = L5_1
function L5_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param2
if 239021 == L2_2 then
L2_2 = A1_2.param1
if 222 == L2_2 then
goto lbl_9
end
end
L2_2 = false
do return L2_2 end
::lbl_9::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_239023 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 0
L5_2 = 239019
L2_2 = L2_2(L3_2, L4_2, L5_2)
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 239019
L6_2 = 201 - L2_2
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = ScriptLib
L3_2 = L3_2.PrintContextLog
L4_2 = A0_2
L5_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L3_2(L4_2, L5_2)
L3_2 = -1
return L3_2
end
L3_2 = 0
return L3_2
end
action_EVENT_GADGET_STATE_CHANGE_239023 = L5_1
function L5_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param2
if 239022 == L2_2 then
L2_2 = A1_2.param1
if 222 == L2_2 then
goto lbl_9
end
end
L2_2 = false
do return L2_2 end
::lbl_9::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_239024 = L5_1
function L5_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2, L6_2
L2_2 = ScriptLib
L2_2 = L2_2.GetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 0
L5_2 = 239020
L2_2 = L2_2(L3_2, L4_2, L5_2)
L3_2 = ScriptLib
L3_2 = L3_2.SetGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 239020
L6_2 = 201 - L2_2
L3_2 = L3_2(L4_2, L5_2, L6_2)
if 0 ~= L3_2 then
L3_2 = ScriptLib
L3_2 = L3_2.PrintContextLog
L4_2 = A0_2
L5_2 = "@@ LUA_WARNING : set_gadget_state_by_configId"
L3_2(L4_2, L5_2)
L3_2 = -1
return L3_2
end
L3_2 = 0
return L3_2
end
action_EVENT_GADGET_STATE_CHANGE_239024 = L5_1
function L5_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 = "has_succeeded"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_239026 = 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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 239025
L5_2 = GadgetState
L5_2 = L5_2.ChestOpened
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 : set_gadget_state_by_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_239026 = L5_1
L5_1 = require
L6_1 = "V2_4/WallMaze"
L5_1(L6_1)
L5_1 = require
L6_1 = "V2_4/EnvState"
L5_1(L6_1)