mirror of
https://github.com/Koko-boya/Grasscutter_Resources
synced 2024-01-31 23:23:19 +08:00
* added lua context to ScriptLib function calls where missing * fixed parameters for some calls
276 lines
5.1 KiB
Lua
276 lines
5.1 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 = 144001159
|
|
L1_1 = {}
|
|
L1_1.maxPathNode = 4
|
|
L1_1.pointarray_route = 400100008
|
|
L1_1.gadget_bubble = 159002
|
|
L1_1.group_id = 144001159
|
|
L1_1.gadget_reward = 159001
|
|
function L2_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.PrintLog
|
|
L2_2 = "platform to move"
|
|
L1_2(A0_2, L2_2)
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.GetGroupVariableValue
|
|
L2_2 = A0_2
|
|
L3_2 = "currentPathNode"
|
|
L1_2 = L1_2(L2_2, L3_2)
|
|
L1_2 = L1_2 + 1
|
|
L2_2 = L1_1.maxPathNode
|
|
if L1_2 > L2_2 then
|
|
L1_2 = L1_1.maxPathNode
|
|
end
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.SetPlatformPointArray
|
|
L3_2 = A0_2
|
|
L4_2 = L1_1.gadget_bubble
|
|
L5_2 = L1_1.pointarray_route
|
|
L6_2 = {}
|
|
L7_2 = L1_2
|
|
L6_2[1] = L7_2
|
|
L7_2 = {}
|
|
L7_2.route_type = 0
|
|
L2_2(L3_2, L4_2, L5_2, L6_2, L7_2)
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.PrintLog
|
|
L3_2 = "platform to move : start platform"
|
|
L2_2(A0_2, L3_2)
|
|
L2_2 = 0
|
|
return L2_2
|
|
end
|
|
MovePlatform = L2_1
|
|
L2_1 = {}
|
|
monsters = L2_1
|
|
L2_1 = {}
|
|
npcs = L2_1
|
|
L2_1 = {}
|
|
gadgets = L2_1
|
|
L2_1 = {}
|
|
regions = L2_1
|
|
L2_1 = {}
|
|
triggers = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L3_1.configId = 1
|
|
L3_1.name = "currentPathNode"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = false
|
|
L4_1 = {}
|
|
L4_1.configId = 2
|
|
L4_1.name = "isReachGoal"
|
|
L4_1.value = 0
|
|
L4_1.no_refresh = false
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L4_1.config_id = 159001
|
|
L4_1.gadget_id = 70360001
|
|
L5_1 = {}
|
|
L5_1.x = -721.34
|
|
L5_1.y = 120.0
|
|
L5_1.z = 302.368
|
|
L4_1.pos = L5_1
|
|
L5_1 = {}
|
|
L5_1.x = 0.0
|
|
L5_1.y = 235.625
|
|
L5_1.z = 0.0
|
|
L4_1.rot = L5_1
|
|
L4_1.level = 1
|
|
L4_1.drop_id = 1000100
|
|
L4_1.drop_count = 1
|
|
L4_1.isOneoff = true
|
|
L4_1.persistent = true
|
|
L4_1.area_id = 103
|
|
L5_1 = {}
|
|
L5_1.config_id = 159002
|
|
L5_1.gadget_id = 70950081
|
|
L6_1 = {}
|
|
L6_1.x = -822.367
|
|
L6_1.y = 120.0
|
|
L6_1.z = 377.394
|
|
L5_1.pos = L6_1
|
|
L6_1 = {}
|
|
L6_1.x = 0.0
|
|
L6_1.y = 235.625
|
|
L6_1.z = 0.0
|
|
L5_1.rot = L6_1
|
|
L5_1.level = 1
|
|
L5_1.start_route = false
|
|
L5_1.is_use_point_array = true
|
|
L5_1.area_id = 103
|
|
L6_1 = {}
|
|
L6_1.config_id = 159006
|
|
L6_1.gadget_id = 70950081
|
|
L7_1 = {}
|
|
L7_1.x = -894.018
|
|
L7_1.y = 120.0
|
|
L7_1.z = 361.867
|
|
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.area_id = 103
|
|
L7_1 = {}
|
|
L7_1.config_id = 159007
|
|
L7_1.gadget_id = 70950081
|
|
L8_1 = {}
|
|
L8_1.x = -894.805
|
|
L8_1.y = 120.0
|
|
L8_1.z = 372.545
|
|
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.area_id = 103
|
|
L8_1 = {}
|
|
L8_1.config_id = 159008
|
|
L8_1.gadget_id = 70950081
|
|
L9_1 = {}
|
|
L9_1.x = -880.642
|
|
L9_1.y = 120.0
|
|
L9_1.z = 356.388
|
|
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 = 1
|
|
L8_1.route_id = 400100121
|
|
L8_1.area_id = 103
|
|
L9_1 = {}
|
|
L9_1.config_id = 159009
|
|
L9_1.gadget_id = 70950081
|
|
L10_1 = {}
|
|
L10_1.x = -882.377
|
|
L10_1.y = 120.0
|
|
L10_1.z = 365.328
|
|
L9_1.pos = L10_1
|
|
L10_1 = {}
|
|
L10_1.x = 0.0
|
|
L10_1.y = 0.0
|
|
L10_1.z = 0.0
|
|
L9_1.rot = L10_1
|
|
L9_1.level = 1
|
|
L9_1.area_id = 103
|
|
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
|
|
L2_1.gadgets = L3_1
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L4_1.config_id = 159004
|
|
L5_1 = RegionShape
|
|
L5_1 = L5_1.SPHERE
|
|
L4_1.shape = L5_1
|
|
L4_1.radius = 5
|
|
L5_1 = {}
|
|
L5_1.x = -822.367
|
|
L5_1.y = 120.0
|
|
L5_1.z = 377.394
|
|
L4_1.pos = L5_1
|
|
L4_1.area_id = 103
|
|
L3_1[1] = L4_1
|
|
L2_1.regions = L3_1
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L4_1.config_id = 1159003
|
|
L4_1.name = "AVATAR_NEAR_PLATFORM_159003"
|
|
L5_1 = EventType
|
|
L5_1 = L5_1.EVENT_AVATAR_NEAR_PLATFORM
|
|
L4_1.event = L5_1
|
|
L4_1.source = ""
|
|
L4_1.condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_159003"
|
|
L4_1.action = "action_EVENT_AVATAR_NEAR_PLATFORM_159003"
|
|
L4_1.trigger_count = 0
|
|
L5_1 = {}
|
|
L5_1.config_id = 1159004
|
|
L5_1.name = "ENTER_REGION_159004"
|
|
L6_1 = EventType
|
|
L6_1 = L6_1.EVENT_ENTER_REGION
|
|
L5_1.event = L6_1
|
|
L5_1.source = ""
|
|
L5_1.condition = "condition_EVENT_ENTER_REGION_159004"
|
|
L5_1.action = "action_EVENT_ENTER_REGION_159004"
|
|
L5_1.trigger_count = 0
|
|
L6_1 = {}
|
|
L6_1.config_id = 1159005
|
|
L6_1.name = "PLATFORM_REACH_POINT_159005"
|
|
L7_1 = EventType
|
|
L7_1 = L7_1.EVENT_PLATFORM_REACH_POINT
|
|
L6_1.event = L7_1
|
|
L6_1.source = ""
|
|
L6_1.condition = "condition_EVENT_PLATFORM_REACH_POINT_159005"
|
|
L6_1.action = "action_EVENT_PLATFORM_REACH_POINT_159005"
|
|
L6_1.trigger_count = 0
|
|
L7_1 = {}
|
|
L7_1.config_id = 1159010
|
|
L7_1.name = "GROUP_LOAD_159010"
|
|
L8_1 = EventType
|
|
L8_1 = L8_1.EVENT_GROUP_LOAD
|
|
L7_1.event = L8_1
|
|
L7_1.source = ""
|
|
L7_1.condition = ""
|
|
L7_1.action = "action_EVENT_GROUP_LOAD_159010"
|
|
L3_1[1] = L4_1
|
|
L3_1[2] = L5_1
|
|
L3_1[3] = L6_1
|
|
L3_1[4] = L7_1
|
|
L2_1.triggers = L3_1
|
|
garbages = 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 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_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
|
|
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
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
suites = L2_1
|