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

1058 lines
21 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
L0_1 = {}
L0_1.group_id = 133104584
L1_1 = {}
L1_1.option_1 = 201
L1_1.option_2 = 202
L1_1.option_3 = 203
L1_1.gadget_1 = 584002
L1_1.water_1 = 584001
L1_1.gadget_2 = 584009
L1_1.water_2 = 584008
L1_1.gadget_3 = 584010
L1_1.water_3 = 584011
L1_1.gadget_4 = 584013
L1_1.water_4 = 584012
L1_1.gadget_5 = 584015
L1_1.water_5 = 584014
L1_1.gadget_6 = 584016
L1_1.water_6 = 584017
L2_1 = {}
L3_1 = {}
L4_1 = L1_1.option_1
L3_1[0] = L4_1
L4_1 = L1_1.option_2
L3_1[1] = L4_1
L4_1 = L1_1.option_3
L3_1[2] = L4_1
L2_1.options = L3_1
L3_1 = {}
L3_1[0] = 0
L3_1[1] = 201
L3_1[2] = 203
L3_1[3] = 204
L3_1[4] = 901
L3_1[5] = 902
L3_1[6] = 903
L2_1.colors = L3_1
L3_1 = {}
L3_1[0] = "curColor01"
L3_1[1] = "curColor02"
L3_1[2] = "curColor03"
L3_1[3] = "curColor04"
L3_1[4] = "curColor05"
L3_1[5] = "curColor06"
L2_1.curColorList = L3_1
L3_1 = {}
monsters = L3_1
L3_1 = {}
npcs = L3_1
L3_1 = {}
L4_1 = {}
L4_1.config_id = 584001
L4_1.gadget_id = 70950012
L5_1 = {}
L5_1.x = 104.301
L5_1.y = 203.998
L5_1.z = 723.649
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 0.0
L5_1.y = 8.833
L5_1.z = 0.0
L4_1.rot = L5_1
L4_1.level = 19
L4_1.persistent = true
L4_1.area_id = 9
L5_1 = {}
L5_1.config_id = 584002
L5_1.gadget_id = 70360002
L6_1 = {}
L6_1.x = 109.435
L6_1.y = 204.674
L6_1.z = 718.279
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 = 19
L5_1.area_id = 9
L6_1 = {}
L6_1.config_id = 584008
L6_1.gadget_id = 70950012
L7_1 = {}
L7_1.x = 87.502
L7_1.y = 206.969
L7_1.z = 737.05
L6_1.pos = L7_1
L7_1 = {}
L7_1.x = 0.0
L7_1.y = 8.833
L7_1.z = 0.0
L6_1.rot = L7_1
L6_1.level = 19
L6_1.persistent = true
L6_1.area_id = 9
L7_1 = {}
L7_1.config_id = 584009
L7_1.gadget_id = 70360002
L8_1 = {}
L8_1.x = 91.132
L8_1.y = 208.619
L8_1.z = 736.371
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 = 19
L7_1.area_id = 9
L8_1 = {}
L8_1.config_id = 584010
L8_1.gadget_id = 70360002
L9_1 = {}
L9_1.x = 112.483
L9_1.y = 210.5
L9_1.z = 795.531
L8_1.pos = L9_1
L9_1 = {}
L9_1.x = 0.0
L9_1.y = 0.0
L9_1.z = 0.0
L8_1.rot = L9_1
L8_1.level = 19
L8_1.area_id = 9
L9_1 = {}
L9_1.config_id = 584011
L9_1.gadget_id = 70950012
L10_1 = {}
L10_1.x = 108.853
L10_1.y = 208.85
L10_1.z = 796.211
L9_1.pos = L10_1
L10_1 = {}
L10_1.x = 0.0
L10_1.y = 8.833
L10_1.z = 0.0
L9_1.rot = L10_1
L9_1.level = 19
L9_1.persistent = true
L9_1.area_id = 9
L10_1 = {}
L10_1.config_id = 584012
L10_1.gadget_id = 70950012
L11_1 = {}
L11_1.x = 76.547
L11_1.y = 206.248
L11_1.z = 698.779
L10_1.pos = L11_1
L11_1 = {}
L11_1.x = 0.0
L11_1.y = 8.833
L11_1.z = 0.0
L10_1.rot = L11_1
L10_1.level = 19
L10_1.persistent = true
L10_1.area_id = 9
L11_1 = {}
L11_1.config_id = 584013
L11_1.gadget_id = 70360002
L12_1 = {}
L12_1.x = 80.176
L12_1.y = 207.898
L12_1.z = 698.1
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 = 19
L11_1.area_id = 9
L12_1 = {}
L12_1.config_id = 584014
L12_1.gadget_id = 70950012
L13_1 = {}
L13_1.x = 85.846
L13_1.y = 206.429
L13_1.z = 762.397
L12_1.pos = L13_1
L13_1 = {}
L13_1.x = 0.0
L13_1.y = 8.833
L13_1.z = 0.0
L12_1.rot = L13_1
L12_1.level = 19
L12_1.persistent = true
L12_1.area_id = 9
L13_1 = {}
L13_1.config_id = 584015
L13_1.gadget_id = 70360002
L14_1 = {}
L14_1.x = 89.476
L14_1.y = 208.079
L14_1.z = 761.718
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 = 19
L13_1.area_id = 9
L14_1 = {}
L14_1.config_id = 584016
L14_1.gadget_id = 70360002
L15_1 = {}
L15_1.x = 95.942
L15_1.y = 210.77
L15_1.z = 777.321
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 = 19
L14_1.area_id = 9
L15_1 = {}
L15_1.config_id = 584017
L15_1.gadget_id = 70950012
L16_1 = {}
L16_1.x = 92.313
L16_1.y = 209.12
L16_1.z = 778.001
L15_1.pos = L16_1
L16_1 = {}
L16_1.x = 0.0
L16_1.y = 8.833
L16_1.z = 0.0
L15_1.rot = L16_1
L15_1.level = 19
L15_1.persistent = true
L15_1.area_id = 9
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
L3_1[11] = L14_1
L3_1[12] = L15_1
gadgets = L3_1
L3_1 = {}
regions = L3_1
L3_1 = {}
L4_1 = {}
L4_1.config_id = 1584003
L4_1.name = "QUEST_START_584003"
L5_1 = EventType
L5_1 = L5_1.EVENT_QUEST_START
L4_1.event = L5_1
L4_1.source = "7100300"
L4_1.condition = ""
L4_1.action = "action_EVENT_QUEST_START_584003"
L5_1 = {}
L5_1.config_id = 1584004
L5_1.name = "QUEST_FINISH_584004"
L6_1 = EventType
L6_1 = L6_1.EVENT_QUEST_FINISH
L5_1.event = L6_1
L5_1.source = "7100320"
L5_1.condition = ""
L5_1.action = ""
L6_1 = {}
L6_1.config_id = 1584005
L6_1.name = "GADGET_CREATE_584005"
L7_1 = EventType
L7_1 = L7_1.EVENT_GADGET_CREATE
L6_1.event = L7_1
L6_1.source = ""
L6_1.condition = "condition_EVENT_GADGET_CREATE_584005"
L6_1.action = "action_EVENT_GADGET_CREATE_584005"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1584006
L7_1.name = "VARIABLE_CHANGE_584006"
L8_1 = EventType
L8_1 = L8_1.EVENT_VARIABLE_CHANGE
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_VARIABLE_CHANGE_584006"
L7_1.action = "action_EVENT_VARIABLE_CHANGE_584006"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1584007
L8_1.name = "SELECT_OPTION_584007"
L9_1 = EventType
L9_1 = L9_1.EVENT_SELECT_OPTION
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_SELECT_OPTION_584007"
L8_1.action = "action_EVENT_SELECT_OPTION_584007"
L8_1.trigger_count = 0
L9_1 = {}
L9_1.config_id = 1584018
L9_1.name = "VARIABLE_CHANGE_584018"
L10_1 = EventType
L10_1 = L10_1.EVENT_VARIABLE_CHANGE
L9_1.event = L10_1
L9_1.source = "correct"
L9_1.condition = "condition_EVENT_VARIABLE_CHANGE_584018"
L9_1.action = "action_EVENT_VARIABLE_CHANGE_584018"
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
triggers = L3_1
L3_1 = {}
L4_1 = {}
L4_1.configId = 1
L4_1.name = "questStart"
L4_1.value = 0
L4_1.no_refresh = true
L5_1 = {}
L5_1.configId = 2
L5_1.name = "uniqueColorCount"
L5_1.value = 0
L5_1.no_refresh = true
L6_1 = {}
L6_1.configId = 3
L6_1.name = "curColor01"
L6_1.value = 0
L6_1.no_refresh = true
L7_1 = {}
L7_1.configId = 4
L7_1.name = "curColor02"
L7_1.value = 0
L7_1.no_refresh = true
L8_1 = {}
L8_1.configId = 5
L8_1.name = "curColor03"
L8_1.value = 0
L8_1.no_refresh = true
L9_1 = {}
L9_1.configId = 6
L9_1.name = "curColor04"
L9_1.value = 0
L9_1.no_refresh = true
L10_1 = {}
L10_1.configId = 7
L10_1.name = "curColor05"
L10_1.value = 0
L10_1.no_refresh = true
L11_1 = {}
L11_1.configId = 8
L11_1.name = "curColor06"
L11_1.value = 0
L11_1.no_refresh = true
L12_1 = {}
L12_1.configId = 9
L12_1.name = "isFinished"
L12_1.value = 0
L12_1.no_refresh = true
L13_1 = {}
L13_1.configId = 10
L13_1.name = "correct"
L13_1.value = 0
L13_1.no_refresh = true
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
variables = L3_1
L3_1 = {}
L3_1.suite = 1
L3_1.end_suite = 0
L3_1.rand_suite = false
init_config = L3_1
L3_1 = {}
L4_1 = {}
L5_1 = {}
L4_1.monsters = L5_1
L5_1 = {}
L4_1.gadgets = L5_1
L5_1 = {}
L4_1.regions = L5_1
L5_1 = {}
L4_1.triggers = L5_1
L4_1.rand_weight = 100
L5_1 = {}
L6_1 = {}
L5_1.monsters = L6_1
L6_1 = {}
L5_1.gadgets = L6_1
L6_1 = {}
L5_1.regions = L6_1
L6_1 = {}
L5_1.triggers = L6_1
L5_1.rand_weight = 100
L6_1 = {}
L7_1 = {}
L6_1.monsters = L7_1
L7_1 = {}
L8_1 = 584001
L9_1 = 584008
L10_1 = 584011
L11_1 = 584012
L12_1 = 584014
L13_1 = 584017
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 = "QUEST_START_584003"
L7_1[1] = L8_1
L6_1.triggers = L7_1
L6_1.rand_weight = 100
L7_1 = {}
L8_1 = {}
L7_1.monsters = L8_1
L8_1 = {}
L9_1 = 584001
L10_1 = 584002
L11_1 = 584008
L12_1 = 584009
L13_1 = 584010
L14_1 = 584011
L15_1 = 584012
L16_1 = 584013
L17_1 = 584014
L18_1 = 584015
L19_1 = 584016
L20_1 = 584017
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
L8_1[9] = L17_1
L8_1[10] = L18_1
L8_1[11] = L19_1
L8_1[12] = L20_1
L7_1.gadgets = L8_1
L8_1 = {}
L7_1.regions = L8_1
L8_1 = {}
L9_1 = "QUEST_START_584003"
L10_1 = "QUEST_FINISH_584004"
L11_1 = "GADGET_CREATE_584005"
L12_1 = "VARIABLE_CHANGE_584006"
L13_1 = "SELECT_OPTION_584007"
L14_1 = "VARIABLE_CHANGE_584018"
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
L7_1.triggers = L8_1
L7_1.rand_weight = 100
L8_1 = {}
L9_1 = {}
L8_1.monsters = L9_1
L9_1 = {}
L8_1.gadgets = L9_1
L9_1 = {}
L8_1.regions = L9_1
L9_1 = {}
L8_1.triggers = L9_1
L8_1.rand_weight = 100
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 = {}
L9_1.triggers = L10_1
L9_1.rand_weight = 100
L10_1 = {}
L11_1 = {}
L10_1.monsters = L11_1
L11_1 = {}
L10_1.gadgets = L11_1
L11_1 = {}
L10_1.regions = L11_1
L11_1 = {}
L10_1.triggers = L11_1
L10_1.rand_weight = 100
L11_1 = {}
L12_1 = {}
L11_1.monsters = L12_1
L12_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
L13_1 = {}
L14_1 = {}
L13_1.monsters = L14_1
L14_1 = {}
L15_1 = 584001
L16_1 = 584008
L17_1 = 584011
L18_1 = 584012
L19_1 = 584014
L20_1 = 584017
L14_1[1] = L15_1
L14_1[2] = L16_1
L14_1[3] = L17_1
L14_1[4] = L18_1
L14_1[5] = L19_1
L14_1[6] = L20_1
L13_1.gadgets = L14_1
L14_1 = {}
L13_1.regions = L14_1
L14_1 = {}
L15_1 = "GADGET_CREATE_584005"
L16_1 = "VARIABLE_CHANGE_584006"
L17_1 = "SELECT_OPTION_584007"
L14_1[1] = L15_1
L14_1[2] = L16_1
L14_1[3] = L17_1
L13_1.triggers = L14_1
L13_1.rand_weight = 100
L3_1[1] = L4_1
L3_1[2] = L5_1
L3_1[3] = L6_1
L3_1[4] = L7_1
L3_1[5] = L8_1
L3_1[6] = L9_1
L3_1[7] = L10_1
L3_1[8] = L11_1
L3_1[9] = L12_1
L3_1[10] = L13_1
suites = L3_1
function L3_1(A0_2, A1_2)
local L2_2, L3_2, L4_2, L5_2
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "questStart"
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 : set_groupVariable"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_QUEST_START_584003 = L3_1
function L3_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 = "questStart"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 1 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param1
if 584002 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_CREATE_584005 = L3_1
function L3_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.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584002
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584009
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584010
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584013
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584015
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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 = ScriptLib
L2_2 = L2_2.SetWorktopOptionsByGroupId
L3_2 = A0_2
L4_2 = 133104584
L5_2 = 584016
L6_2 = {}
L7_2 = 201
L8_2 = 202
L9_2 = 203
L6_2[1] = L7_2
L6_2[2] = L8_2
L6_2[3] = L9_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_584005 = L3_1
function L3_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.source_name
if L2_2 ~= "curColor01" then
L2_2 = A1_2.source_name
if L2_2 ~= "curColor02" then
L2_2 = A1_2.source_name
if L2_2 ~= "curColor03" then
L2_2 = A1_2.source_name
if L2_2 ~= "curColor04" then
L2_2 = A1_2.source_name
if L2_2 ~= "curColor05" then
L2_2 = A1_2.source_name
if L2_2 ~= "curColor06" then
L2_2 = false
return L2_2
end
end
end
end
end
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_584006 = L3_1
function L3_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
L2_2 = L2_1.colors
L3_2 = A1_2.param1
L2_2 = L2_2[L3_2]
L3_2 = A1_2.source_name
if L3_2 == "curColor01" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_1
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
else
L3_2 = A1_2.source_name
if L3_2 == "curColor02" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_2
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
else
L3_2 = A1_2.source_name
if L3_2 == "curColor03" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_3
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
else
L3_2 = A1_2.source_name
if L3_2 == "curColor04" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_4
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
else
L3_2 = A1_2.source_name
if L3_2 == "curColor05" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_5
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
else
L3_2 = A1_2.source_name
if L3_2 == "curColor06" then
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupGadgetStateByConfigId
L4_2 = A0_2
L5_2 = 0
L6_2 = L1_1.water_6
L7_2 = L2_2
L3_2(L4_2, L5_2, L6_2, L7_2)
end
end
end
end
end
end
L3_2 = ScriptLib
L3_2 = L3_2.SetGroupVariableValue
L4_2 = A0_2
L5_2 = "uniqueColorCount"
L6_2 = 0
L3_2(L4_2, L5_2, L6_2)
L3_2 = 0
L4_2 = 0
L5_2 = 0
L6_2 = 0
L7_2 = 4
L8_2 = 1
for L9_2 = L6_2, L7_2, L8_2 do
L5_2 = 0
L10_2 = ScriptLib
L10_2 = L10_2.GetGroupVariableValue
L11_2 = A0_2
L12_2 = L2_1.curColorList
L12_2 = L12_2[L9_2]
L10_2 = L10_2(L11_2, L12_2)
L3_2 = L10_2
L10_2 = L9_2 + 1
j = L10_2
L10_2 = j
L11_2 = 5
L12_2 = 1
for L13_2 = L10_2, L11_2, L12_2 do
L14_2 = ScriptLib
L14_2 = L14_2.GetGroupVariableValue
L15_2 = A0_2
L16_2 = L2_1.curColorList
L16_2 = L16_2[L13_2]
L14_2 = L14_2(L15_2, L16_2)
L4_2 = L14_2
if L3_2 == L4_2 then
L5_2 = 1
end
end
if L5_2 == 0 then
L10_2 = ScriptLib
L10_2 = L10_2.ChangeGroupVariableValue
L11_2 = A0_2
L12_2 = "uniqueColorCount"
L13_2 = 1
L10_2(L11_2, L12_2, L13_2)
end
L10_2 = ScriptLib
L10_2 = L10_2.GetGroupVariableValue
L11_2 = A0_2
L12_2 = "uniqueColorCount"
L10_2 = L10_2(L11_2, L12_2)
if 5 <= L10_2 then
L10_2 = ScriptLib
L10_2 = L10_2.SetGroupVariableValue
L11_2 = A0_2
L12_2 = "correct"
L13_2 = 1
L10_2(L11_2, L12_2, L13_2)
end
end
L6_2 = 0
return L6_2
end
action_EVENT_VARIABLE_CHANGE_584006 = L3_1
function L3_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_1
if L2_2 ~= L3_2 then
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_2
if L2_2 ~= L3_2 then
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_3
if L2_2 ~= L3_2 then
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_4
if L2_2 ~= L3_2 then
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_5
if L2_2 ~= L3_2 then
L2_2 = A1_2.param1
L3_2 = L1_1.gadget_6
if L2_2 ~= L3_2 then
L2_2 = false
return L2_2
end
end
end
end
end
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_584007 = L3_1
function L3_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
L2_2 = ""
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_1
if L3_2 == L4_2 then
L2_2 = "curColor01"
else
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_2
if L3_2 == L4_2 then
L2_2 = "curColor02"
else
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_3
if L3_2 == L4_2 then
L2_2 = "curColor03"
else
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_4
if L3_2 == L4_2 then
L2_2 = "curColor04"
else
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_5
if L3_2 == L4_2 then
L2_2 = "curColor05"
else
L3_2 = A1_2.param1
L4_2 = L1_1.gadget_6
if L3_2 == L4_2 then
L2_2 = "curColor06"
end
end
end
end
end
end
L3_2 = 0
L4_2 = 2
L5_2 = 1
for L6_2 = L3_2, L4_2, L5_2 do
L7_2 = A1_2.param2
L8_2 = L2_1.options
L8_2 = L8_2[L6_2]
if L7_2 == L8_2 then
L7_2 = 2 ^ L6_2
L8_2 = ScriptLib
L8_2 = L8_2.GetGroupVariableValue
L9_2 = A0_2
L10_2 = L2_2
L8_2 = L8_2(L9_2, L10_2)
L9_2 = 2 * L7_2
L9_2 = L8_2 % L9_2
if L7_2 <= L9_2 then
L9_2 = 0
return L9_2
end
L8_2 = L8_2 + L7_2
if 6 < L8_2 then
L8_2 = L8_2 - 7
end
L9_2 = ScriptLib
L9_2 = L9_2.SetGroupVariableValue
L10_2 = A0_2
L11_2 = L2_2
L12_2 = L8_2
L9_2(L10_2, L11_2, L12_2)
L9_2 = 0
return L9_2
end
end
L3_2 = 0
return L3_2
end
action_EVENT_SELECT_OPTION_584007 = L3_1
function L3_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 = "correct"
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_584018 = L3_1
function L3_1(A0_2, A1_2)
local L2_2, L3_2, L4_2
L2_2 = ScriptLib
L2_2 = L2_2.AddQuestProgress
L3_2 = A0_2
L4_2 = "7100310_Finish"
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 : add_quest_progress"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_584018 = L3_1