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

323 lines
6.6 KiB
Lua

local L0_1, L1_1, L2_1, L3_1, L4_1, L5_1, L6_1, L7_1, L8_1, L9_1
L0_1 = {}
L0_1.group_id = 220117001
L1_1 = {}
L1_1.BossConfigID = 1002
L1_1.EnvConfigID = 1001
L1_1.GroupID = 220117001
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1002
L3_1.monster_id = 29060102
L4_1 = {}
L4_1.x = 492.258
L4_1.y = 100.542
L4_1.z = 488.2
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 30.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L3_1.title_id = 152
L3_1.special_name_id = 9
L2_1[1002] = L3_1
monsters = L2_1
L2_1 = {}
npcs = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1001
L3_1.gadget_id = 70290109
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.pos = L4_1
L4_1 = {}
L4_1.x = 0.0
L4_1.y = 0.0
L4_1.z = 0.0
L3_1.rot = L4_1
L3_1.level = 1
L2_1[1001] = L3_1
gadgets = L2_1
L2_1 = {}
regions = L2_1
L2_1 = {}
L3_1 = {}
L3_1.config_id = 1001003
L3_1.name = "GADGET_STATE_CHANGE_1003"
L4_1 = EventType
L4_1 = L4_1.EVENT_GADGET_STATE_CHANGE
L3_1.event = L4_1
L3_1.source = ""
L3_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_1003"
L3_1.action = "action_EVENT_GADGET_STATE_CHANGE_1003"
L4_1 = {}
L4_1.config_id = 1001004
L4_1.name = "GADGET_STATE_CHANGE_1004"
L5_1 = EventType
L5_1 = L5_1.EVENT_GADGET_STATE_CHANGE
L4_1.event = L5_1
L4_1.source = ""
L4_1.condition = "condition_EVENT_GADGET_STATE_CHANGE_1004"
L4_1.action = "action_EVENT_GADGET_STATE_CHANGE_1004"
L5_1 = {}
L5_1.config_id = 1001005
L5_1.name = "QUEST_START_1005"
L6_1 = EventType
L6_1 = L6_1.EVENT_QUEST_START
L5_1.event = L6_1
L5_1.source = "202004"
L5_1.condition = ""
L5_1.action = "action_EVENT_QUEST_START_1005"
L6_1 = {}
L6_1.config_id = 1001007
L6_1.name = "TIMER_EVENT_1007"
L7_1 = EventType
L7_1 = L7_1.EVENT_TIMER_EVENT
L6_1.event = L7_1
L6_1.source = "timer"
L6_1.condition = ""
L6_1.action = "action_EVENT_TIMER_EVENT_1007"
L7_1 = {}
L7_1.config_id = 1001008
L7_1.name = "VARIABLE_CHANGE_1008"
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_1008"
L7_1.action = "action_EVENT_VARIABLE_CHANGE_1008"
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
triggers = L2_1
L2_1 = {}
variables = L2_1
L2_1 = {}
L2_1.suite = 1
L2_1.end_suite = 0
L2_1.rand_suite = false
init_config = L2_1
L2_1 = {}
L3_1 = {}
L4_1 = {}
L3_1.monsters = L4_1
L4_1 = {}
L5_1 = 1001
L4_1[1] = L5_1
L3_1.gadgets = L4_1
L4_1 = {}
L3_1.regions = L4_1
L4_1 = {}
L5_1 = "GADGET_STATE_CHANGE_1003"
L6_1 = "GADGET_STATE_CHANGE_1004"
L7_1 = "QUEST_START_1005"
L8_1 = "TIMER_EVENT_1007"
L9_1 = "VARIABLE_CHANGE_1008"
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
L3_1.triggers = L4_1
L3_1.rand_weight = 100
L4_1 = {}
L5_1 = {}
L6_1 = 1002
L5_1[1] = L6_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
L2_1[1] = L3_1
L2_1[2] = L4_1
suites = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 1001 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param1
if L2_2 == L3_2 then
L2_2 = GadgetState
L2_2 = L2_2.Default
L3_2 = A1_2.param3
if L2_2 == L3_2 then
goto lbl_16
end
end
end
L2_2 = false
do return L2_2 end
::lbl_16::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_1003 = 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.SetWeatherAreaState
L3_2 = A0_2
L4_2 = 10060
L5_2 = 0
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetWeatherAreaState
L3_2 = A0_2
L4_2 = 10061
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "\231\142\175\229\162\131\231\137\169\228\187\1821001\229\136\135\229\136\176201\239\188\140\232\191\155\229\133\165Weather10061"
L2_2(L3_2, L4_2)
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_1003 = L2_1
function L2_1(A0_2, A1_2)
local L2_2, L3_2
L2_2 = A1_2.param2
if 1001 == L2_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStop
L3_2 = A1_2.param1
if L2_2 == L3_2 then
L2_2 = GadgetState
L2_2 = L2_2.GearStart
L3_2 = A1_2.param3
if L2_2 == L3_2 then
goto lbl_16
end
end
end
L2_2 = false
do return L2_2 end
::lbl_16::
L2_2 = true
return L2_2
end
condition_EVENT_GADGET_STATE_CHANGE_1004 = 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.SetWeatherAreaState
L3_2 = A0_2
L4_2 = 10061
L5_2 = 0
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.SetWeatherAreaState
L3_2 = A0_2
L4_2 = 10062
L5_2 = 1
L2_2(L3_2, L4_2, L5_2)
L2_2 = ScriptLib
L2_2 = L2_2.PrintContextLog
L3_2 = A0_2
L4_2 = "\231\142\175\229\162\131\231\137\169\228\187\1821001\229\136\135\229\136\176202\239\188\140\232\191\155\229\133\165Weather10062"
L2_2(L3_2, L4_2)
L2_2 = 0
return L2_2
end
action_EVENT_GADGET_STATE_CHANGE_1004 = 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 = 220117001
L5_2 = 2
L2_2(L3_2, L4_2, L5_2)
L2_2 = 0
return L2_2
end
action_EVENT_QUEST_START_1005 = 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.RemoveEntityByConfigId
L3_2 = A0_2
L4_2 = 220117001
L5_2 = EntityType
L5_2 = L5_2.MONSTER
L6_2 = 1002
L2_2(L3_2, L4_2, L5_2, L6_2)
L2_2 = 0
return L2_2
end
action_EVENT_TIMER_EVENT_1007 = L2_1
function L2_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 = "PhaseStep"
L2_2 = L2_2(L3_2, L4_2)
if L2_2 ~= 3 then
L2_2 = false
return L2_2
end
L2_2 = true
return L2_2
end
condition_EVENT_VARIABLE_CHANGE_1008 = 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.AddQuestProgress
L3_2 = A0_2
L4_2 = "202011"
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 = ScriptLib
L2_2 = L2_2.CreateGroupTimerEvent
L3_2 = A0_2
L4_2 = 220117001
L5_2 = "timer"
L6_2 = 0.5
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 : create_timerevent_by_group"
L2_2(L3_2, L4_2)
L2_2 = -1
return L2_2
end
L2_2 = 0
return L2_2
end
action_EVENT_VARIABLE_CHANGE_1008 = L2_1
L2_1 = require
L3_1 = "V2_1/Boss_Shougun"
L2_1(L3_1)