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

550 lines
11 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 = 133103279
L1_1 = {}
L1_1.group_id = 133103279
L1_1.gadget_target_1 = 279003
L1_1.monster_mole_1 = 279001
L1_1.gadget_home_1 = 279004
L2_1 = {}
L3_1 = {}
L3_1.config_id = 279001
L3_1.monster_id = 28050201
L4_1 = {}
L4_1.x = 802.052
L4_1.y = 327.36
L4_1.z = 1506.015
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 29.457
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 32
L3_1.drop_tag = "\233\173\148\230\179\149\231\148\159\231\137\169"
L3_1.area_id = 6
L4_1 = {}
L4_1.config_id = 279002
L4_1.monster_id = 28050201
L5_1 = {}
L5_1.x = 816.032
L5_1.y = 328.848
L5_1.z = 1512.027
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 348.227
L5_1.y = 30.509
L5_1.z = 4.486
L4_1.rot = L5_1
L4_1.level = 32
L4_1.drop_tag = "\233\173\148\230\179\149\231\148\159\231\137\169"
L4_1.pose_id = 3
L4_1.area_id = 6
L2_1[1] = L3_1
L2_1[2] = L4_1
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 279003
L3_1.gadget_id = 70360027
L4_1 = {}
L4_1.x = 816.136
L4_1.y = 328.818
L4_1.z = 1511.871
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 346.837
L4_1.y = 103.427
L4_1.z = 5.828
L3_1.rot = L4_1
L3_1.level = 32
L3_1.mark_flag = 3
L3_1.area_id = 6
L4_1 = {}
L4_1.config_id = 279004
L4_1.gadget_id = 70360015
L5_1 = {}
L5_1.x = 802.346
L5_1.y = 327.188
L5_1.z = 1506.131
L4_1.pos = L5_1
L5_1 = {}
L5_1.x = 14.902
L5_1.y = 17.465
L5_1.z = 13.453
L4_1.rot = L5_1
L4_1.level = 32
L4_1.mark_flag = 2
L4_1.area_id = 6
L2_1[1] = L3_1
L2_1[2] = L4_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1279005
L3_1.name = "ANY_MONSTER_DIE_279005"
L4_1 = EventType
L4_1 = L4_1.EVENT_ANY_MONSTER_DIE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_ANY_MONSTER_DIE_279005"
L3_1.action = "action_EVENT_ANY_MONSTER_DIE_279005"
L4_1 = {}
L4_1.config_id = 1279006
L4_1.name = "SELECT_OPTION_279006"
L5_1 = EventType
L5_1 = L5_1.EVENT_SELECT_OPTION
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_SELECT_OPTION_279006"
L4_1.action = "action_EVENT_SELECT_OPTION_279006"
L4_1.trigger_count = 0
L5_1 = {}
L5_1.config_id = 1279007
L5_1.name = "GADGET_STATE_CHANGE_279007"
L6_1 = EventType
L6_1 = L6_1.EVENT_GADGET_STATE_CHANGE
L5_1.event = L6_1
L5_1.source = ""
L5_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_279007"
L5_1.action = "action_EVENT_GADGET_STATE_CHANGE_279007"
L5_1.trigger_count = 0
L6_1 = {}
L6_1.config_id = 1279008
L6_1.name = "GADGET_STATE_CHANGE_279008"
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_279008"
L6_1.action = "action_EVENT_GADGET_STATE_CHANGE_279008"
L6_1.trigger_count = 0
L7_1 = {}
L7_1.config_id = 1279009
L7_1.name = "GROUP_LOAD_279009"
L8_1 = EventType
L8_1 = L8_1.EVENT_GROUP_LOAD
L7_1.event = L8_1
L7_1.source = ""
L7_1.condition = "condition_EVENT_GROUP_LOAD_279009"
L7_1.action = "action_EVENT_GROUP_LOAD_279009"
L7_1.trigger_count = 0
L8_1 = {}
L8_1.config_id = 1279010
L8_1.name = "GROUP_LOAD_279010"
L9_1 = EventType
L9_1 = L9_1.EVENT_GROUP_LOAD
L8_1.event = L9_1
L8_1.source = ""
L8_1.condition = "condition_EVENT_GROUP_LOAD_279010"
L8_1.action = "action_EVENT_GROUP_LOAD_279010"
L8_1.trigger_count = 0
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
triggers = L2_1
L2_1 = {}
L3_1 = {}
L3_1.configId = 1
L3_1.name = "HoleHasShowed"
L3_1.value = 0
L3_1.no_refresh = false
L2_1[1] = L3_1
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 2
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L5_1 = 279001
L4_1[1] = L5_1
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 279003
L6_1 = 279004
L4_1[1] = L5_1
L4_1[2] = L6_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "ANY_MONSTER_DIE_279005"
L6_1 = "SELECT_OPTION_279006"
L7_1 = "GADGET_STATE_CHANGE_279007"
L8_1 = "GADGET_STATE_CHANGE_279008"
L9_1 = "GROUP_LOAD_279009"
L10_1 = "GROUP_LOAD_279010"
L4_1[1] = L5_1
L4_1[2] = L6_1
L4_1[3] = L7_1
L4_1[4] = L8_1
L4_1[5] = L9_1
L4_1[6] = L10_1
L3_1.triggers = L4_1
L3_1.rand_weight = 100
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
L4_1.ban_refresh = true
L5_1 = {}
L6_1 = {}
L7_1 = 279002
L6_1[1] = L7_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
L2_1[1] = L3_1
L2_1[2] = L4_1
L2_1[3] = L5_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if L2_2 ~= 279002 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if L2_2 ~= 0 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_ANY_MONSTER_DIE_279005 = 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.MarkPlayerAction
L3_2 = A0_2
L4_2 = 2006
L5_2 = 3
L6_2 = 1
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 : mark_playerAction"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.SetGroupDead
L3_2 = A0_2
L4_2 = 0
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 : set_group_die"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_ANY_MONSTER_DIE_279005 = L2_1
function L2_1(A0_2, A1_2)
local L2_2
L2_2 = A1_2.param1
if 279004 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = A1_2.param2
if 171 ~= L2_2 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_SELECT_OPTION_279006 = 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.SetGroupGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 133103279
L5_2 = 279004
L6_2 = GadgetState
L6_2 = L6_2.GearAction2
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_gadget_state_by_GroupId_ConfigId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.DelWorktopOptionByGroupId
L3_2 = A0_2
L4_2 = 133103279
L5_2 = 279004
L6_2 = 171
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 : del_work_options_by_group_configId"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.MarkPlayerAction
L3_2 = A0_2
L4_2 = 2006
L5_2 = 1
L6_2 = 1
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 : mark_playerAction"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_SELECT_OPTION_279006 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 279004 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearAction1
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_279007 = L2_1
function L2_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 = 133103279
L5_2 = 279004
L6_2 = {}
L7_2 = 171
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 = ScriptLib
L2_2 = L2_2.SetGroupVariableValue
L3_2 = A0_2
L4_2 = "HoleHasShowed"
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_GADGET_STATE_CHANGE_279007 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 279003 == 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_279008 = 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.AddExtraGroupSuite
L3_2 = A0_2
L4_2 = 133103279
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 279004
L5_2 = GadgetState
L5_2 = L5_2.GearStart
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_GADGET_STATE_CHANGE_279008 = L2_1
function L2_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 = "HoleHasShowed"
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_GROUP_LOAD_279009 = 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.CreateMonster
L3_2 = A0_2
L4_2 = {}
L4_2.config_id = 279001
L4_2.delay_time = 0
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_monster"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 133103279
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_GROUP_LOAD_279009 = L2_1
function L2_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 = "HoleHasShowed"
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_GROUP_LOAD_279010 = 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.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 279004
L5_2 = GadgetState
L5_2 = L5_2.GearAction1
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 = ScriptLib
L2_2 = L2_2.RemoveExtraGroupSuite
L3_2 = A0_2
L4_2 = 133103279
L5_2 = 3
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetGadgetStateByConfigId
L3_2 = A0_2
L4_2 = 279003
L5_2 = GadgetState
L5_2 = L5_2.Default
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_GROUP_LOAD_279010 = L2_1