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
274 lines
4.9 KiB
Lua
274 lines
4.9 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 = 133210141
|
|
L1_1 = {}
|
|
L1_1.group_ID = 133210141
|
|
L1_1.gadget_thunderThelfID = 141001
|
|
L1_1.pointarray_ID = 321000035
|
|
L1_1.maxPointCount = 16
|
|
L1_1.gadget_Reward_1 = 141002
|
|
L2_1 = {}
|
|
L3_1 = 4
|
|
L4_1 = 8
|
|
L5_1 = 12
|
|
L6_1 = 16
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
L2_1[3] = L5_1
|
|
L2_1[4] = L6_1
|
|
L1_1.pointInfo = L2_1
|
|
function L2_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_2, L7_2, L8_2, L9_2, L10_2, L11_2
|
|
L1_2 = {}
|
|
L2_2 = ScriptLib
|
|
L2_2 = L2_2.GetGroupVariableValue
|
|
L3_2 = A0_2
|
|
L4_2 = "nextRouteIndex"
|
|
L2_2 = L2_2(L3_2, L4_2)
|
|
L3_2 = L1_1.pointInfo
|
|
L3_2 = L3_2[L2_2]
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.PrintLog
|
|
L5_2 = "stop point : "
|
|
L6_2 = L3_2
|
|
L5_2 = L5_2 .. L6_2
|
|
L4_2(A0_2, L5_2)
|
|
L4_2 = ScriptLib
|
|
L4_2 = L4_2.GetGroupVariableValue
|
|
L5_2 = A0_2
|
|
L6_2 = "currentPathNodeIndex"
|
|
L4_2 = L4_2(L5_2, L6_2)
|
|
L5_2 = L4_2 + 1
|
|
L6_2 = L3_2
|
|
L7_2 = 1
|
|
for L8_2 = L5_2, L6_2, L7_2 do
|
|
L9_2 = table
|
|
L9_2 = L9_2.insert
|
|
L10_2 = L1_2
|
|
L11_2 = L8_2
|
|
L9_2(L10_2, L11_2)
|
|
end
|
|
return L1_2
|
|
end
|
|
GetNextPath = L2_1
|
|
function L2_1(A0_2)
|
|
local L1_2, L2_2, L3_2, L4_2, L5_2, L6_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.SetGroupVariableValue
|
|
L2_2 = A0_2
|
|
L3_2 = "isMoving"
|
|
L4_2 = 1
|
|
L1_2 = L1_2(L2_2, L3_2, L4_2)
|
|
if 0 ~= L1_2 then
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.PrintContextLog
|
|
L2_2 = A0_2
|
|
L3_2 = "@@ LUA_WARNING : set_groupVariable"
|
|
L1_2(L2_2, L3_2)
|
|
L1_2 = -1
|
|
return L1_2
|
|
end
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.SetPlatformPointArray
|
|
L2_2 = A0_2
|
|
L3_2 = L1_1.gadget_thunderThelfID
|
|
L4_2 = L1_1.pointarray_ID
|
|
L5_2 = GetNextPath
|
|
L6_2 = A0_2
|
|
L5_2 = L5_2(L6_2)
|
|
L6_2 = {}
|
|
L6_2.route_type = 0
|
|
L1_2(L2_2, L3_2, L4_2, L5_2, L6_2)
|
|
L1_2 = ScriptLib
|
|
L1_2 = L1_2.PrintLog
|
|
L2_2 = "platform to move : start platform"
|
|
L1_2(A0_2, L2_2)
|
|
L1_2 = 0
|
|
return L1_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 = "isFinished"
|
|
L3_1.value = 0
|
|
L3_1.no_refresh = true
|
|
L4_1 = {}
|
|
L4_1.configId = 2
|
|
L4_1.name = "isMoving"
|
|
L4_1.value = 0
|
|
L4_1.no_refresh = false
|
|
L5_1 = {}
|
|
L5_1.configId = 3
|
|
L5_1.name = "currentRouteIndex"
|
|
L5_1.value = 0
|
|
L5_1.no_refresh = false
|
|
L6_1 = {}
|
|
L6_1.configId = 4
|
|
L6_1.name = "nextRouteIndex"
|
|
L6_1.value = 1
|
|
L6_1.no_refresh = false
|
|
L7_1 = {}
|
|
L7_1.configId = 5
|
|
L7_1.name = "isstart"
|
|
L7_1.value = 0
|
|
L7_1.no_refresh = false
|
|
L8_1 = {}
|
|
L8_1.configId = 6
|
|
L8_1.name = "currentPathNodeIndex"
|
|
L8_1.value = 0
|
|
L8_1.no_refresh = false
|
|
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
|
|
variables = L2_1
|
|
L2_1 = {}
|
|
L2_1.io_type = 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.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L3_1.triggers = L4_1
|
|
L4_1 = {}
|
|
L3_1.npcs = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.configId = 1
|
|
L5_1.name = "isFinished"
|
|
L5_1.value = 0
|
|
L5_1.no_refresh = true
|
|
L6_1 = {}
|
|
L6_1.configId = 2
|
|
L6_1.name = "isMoving"
|
|
L6_1.value = 0
|
|
L6_1.no_refresh = false
|
|
L7_1 = {}
|
|
L7_1.configId = 3
|
|
L7_1.name = "currentRouteIndex"
|
|
L7_1.value = 0
|
|
L7_1.no_refresh = false
|
|
L8_1 = {}
|
|
L8_1.configId = 4
|
|
L8_1.name = "nextRouteIndex"
|
|
L8_1.value = 1
|
|
L8_1.no_refresh = false
|
|
L9_1 = {}
|
|
L9_1.configId = 5
|
|
L9_1.name = "isstart"
|
|
L9_1.value = 0
|
|
L9_1.no_refresh = false
|
|
L10_1 = {}
|
|
L10_1.configId = 6
|
|
L10_1.name = "currentPathNodeIndex"
|
|
L10_1.value = 0
|
|
L10_1.no_refresh = false
|
|
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.variables = L4_1
|
|
L2_1[1] = L3_1
|
|
L3_1 = {}
|
|
L4_1 = {}
|
|
L3_1.gadgets = L4_1
|
|
L4_1 = {}
|
|
L3_1.monsters = L4_1
|
|
L4_1 = {}
|
|
L3_1.regions = L4_1
|
|
L4_1 = {}
|
|
L3_1.triggers = L4_1
|
|
L4_1 = {}
|
|
L3_1.npcs = L4_1
|
|
L4_1 = {}
|
|
L5_1 = {}
|
|
L5_1.configId = 1
|
|
L5_1.name = "isFinished"
|
|
L5_1.value = 1
|
|
L5_1.no_refresh = true
|
|
L6_1 = {}
|
|
L6_1.configId = 2
|
|
L6_1.name = "isMoving"
|
|
L6_1.value = 0
|
|
L6_1.no_refresh = false
|
|
L7_1 = {}
|
|
L7_1.configId = 3
|
|
L7_1.name = "currentRouteIndex"
|
|
L7_1.value = 0
|
|
L7_1.no_refresh = false
|
|
L8_1 = {}
|
|
L8_1.configId = 4
|
|
L8_1.name = "nextRouteIndex"
|
|
L8_1.value = 1
|
|
L8_1.no_refresh = false
|
|
L9_1 = {}
|
|
L9_1.configId = 5
|
|
L9_1.name = "isstart"
|
|
L9_1.value = 0
|
|
L9_1.no_refresh = false
|
|
L10_1 = {}
|
|
L10_1.configId = 6
|
|
L10_1.name = "currentPathNodeIndex"
|
|
L10_1.value = 0
|
|
L10_1.no_refresh = false
|
|
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.variables = L4_1
|
|
L2_1[2] = L3_1
|
|
suite_disk = 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
|
|
L2_1[1] = L3_1
|
|
L2_1[2] = L4_1
|
|
suites = L2_1
|