mirror of
https://gitlab.com/YuukiPS/GC-Resources.git
synced 2025-04-28 09:05:26 +00:00
Update lua scene 3.3
This commit is contained in:
parent
6e7c5563e9
commit
5ba4ffe3eb
@ -17,7 +17,13 @@ groups = {
|
||||
{ id = 111101018, pos = { x = 2671.922, y = 247.754, z = -1267.207 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
|
||||
{ id = 111101019, refresh_id = 1, pos = { x = 2547.023, y = 218.752, z = -1418.736 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101021, pos = { x = 2509.970, y = 213.428, z = -1325.103 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101022, pos = { x = 2237.659, y = 245.194, z = -1555.858 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101023, refresh_id = 1001, pos = { x = 2194.523, y = 249.295, z = -1649.551 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101024, refresh_id = 1002, pos = { x = 2179.314, y = 258.995, z = -1731.199 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101025, pos = { x = 2199.800, y = 255.618, z = -1692.984 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101026, refresh_id = 1, pos = { x = 2307.738, y = 275.289, z = -1645.453 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101028, refresh_id = 1, pos = { x = 2987.475, y = 265.589, z = -1339.957 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101029, refresh_id = 1001, pos = { x = 2341.125, y = 283.979, z = -1746.793 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101030, refresh_id = 1, pos = { x = 2658.896, y = 269.054, z = -1563.710 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
|
||||
{ id = 111101031, pos = { x = 2664.336, y = 247.788, z = -1259.953 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
|
||||
{ id = 111101032, refresh_id = 1, pos = { x = 2455.510, y = 220.370, z = -1392.934 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
@ -48,6 +54,7 @@ groups = {
|
||||
{ id = 111101057, pos = { x = 2553.579, y = 358.039, z = -1745.883 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101058, refresh_id = 99999, pos = { x = 2351.498, y = 283.701, z = -1738.976 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101059, pos = { x = 2805.322, y = 263.291, z = -1698.053 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101060, pos = { x = 2221.518, y = 243.846, z = -1553.283 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101061, pos = { x = 2478.106, y = 325.268, z = -1676.014 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101062, refresh_id = 1001, pos = { x = 2454.602, y = 199.398, z = -1177.244 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101063, refresh_id = 1001, pos = { x = 2406.364, y = 203.038, z = -1155.525 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
@ -281,5 +288,20 @@ groups = {
|
||||
{ id = 111101293, refresh_id = 800002, pos = { x = 2531.158, y = 204.687, z = -760.128 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101294, refresh_id = 800002, pos = { x = 2498.573, y = 204.650, z = -570.392 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101295, refresh_id = 800002, pos = { x = 2473.781, y = 204.650, z = -574.038 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101296, refresh_id = 800002, pos = { x = 2468.523, y = 204.650, z = -557.591 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
|
||||
{ id = 111101296, refresh_id = 800002, pos = { x = 2468.523, y = 204.650, z = -557.591 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101306, pos = { x = 2222.909, y = 245.511, z = -1604.216 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101307, refresh_id = 1001, pos = { x = 2256.190, y = 246.782, z = -1598.704 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101308, pos = { x = 2209.485, y = 242.643, z = -1567.710 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101309, pos = { x = 2319.286, y = 274.164, z = -1659.006 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101310, pos = { x = 2228.033, y = 249.057, z = -1619.780 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101311, refresh_id = 1002, pos = { x = 2185.410, y = 248.934, z = -1643.675 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101312, refresh_id = 1002, pos = { x = 2171.257, y = 256.175, z = -1707.957 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101314, refresh_id = 1001, pos = { x = 2238.548, y = 263.957, z = -1708.743 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101315, pos = { x = 2323.445, y = 279.834, z = -1688.004 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101316, refresh_id = 1002, pos = { x = 2248.554, y = 244.120, z = -1573.159 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101317, refresh_id = 1001, pos = { x = 2197.241, y = 244.508, z = -1595.797 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101318, refresh_id = 1002, pos = { x = 2239.093, y = 270.379, z = -1746.512 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101319, refresh_id = 1002, pos = { x = 2248.820, y = 263.232, z = -1682.492 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101320, refresh_id = 1, pos = { x = 2314.352, y = 284.239, z = -1704.639 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111101321, refresh_id = 1002, pos = { x = 2348.239, y = 284.719, z = -1784.963 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
|
||||
}
|
@ -44,7 +44,7 @@ groups = {
|
||||
{ id = 111102043, refresh_id = 1002, pos = { x = 1915.565, y = 194.600, z = -1657.157 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102044, refresh_id = 1001, pos = { x = 1256.401, y = 330.027, z = -1888.699 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102045, refresh_id = 1002, pos = { x = 1263.510, y = 321.640, z = -1852.608 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102046, refresh_id = 1002, pos = { x = 1419.374, y = 269.182, z = -1764.172 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102046, refresh_id = 1, pos = { x = 1419.374, y = 269.182, z = -1764.172 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102047, refresh_id = 1, pos = { x = 1284.084, y = 330.133, z = -1985.417 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102048, refresh_id = 1, pos = { x = 1216.648, y = 312.397, z = -1295.334 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102049, refresh_id = 1, pos = { x = 1172.631, y = 296.546, z = -1589.491 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
|
||||
@ -70,17 +70,22 @@ groups = {
|
||||
{ id = 111102074, refresh_id = 1, pos = { x = 1234.502, y = 324.213, z = -1918.259 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102078, refresh_id = 1, pos = { x = 2048.010, y = 219.678, z = -1685.007 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102079, pos = { x = 1422.000, y = 258.000, z = -1692.000 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102083, pos = { x = 1283.560, y = 272.413, z = -1216.893 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102084, refresh_id = 1, pos = { x = 1159.540, y = 305.144, z = -1410.604 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
|
||||
{ id = 111102085, refresh_id = 1001, pos = { x = 1560.185, y = 333.925, z = -2045.421 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102086, refresh_id = 1, pos = { x = 1260.152, y = 311.960, z = -1289.871 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
|
||||
{ id = 111102087, pos = { x = 1217.075, y = 317.170, z = -1329.754 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102088, refresh_id = 1002, pos = { x = 1807.915, y = 194.906, z = -1414.053 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102089, pos = { x = 1307.326, y = 311.372, z = -1240.961 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102092, pos = { x = 1395.762, y = 276.598, z = -1440.193 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102093, refresh_id = 1, pos = { x = 1319.643, y = 274.142, z = -1726.876 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102094, refresh_id = 1, pos = { x = 1373.807, y = 279.440, z = -1803.559 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102095, pos = { x = 1983.142, y = 220.937, z = -1574.012 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102096, pos = { x = 1984.330, y = 215.578, z = -1571.636 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102097, pos = { x = 1979.272, y = 221.143, z = -1568.681 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102098, pos = { x = 1974.693, y = 221.436, z = -1569.548 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102099, pos = { x = 1975.944, y = 221.413, z = -1571.043 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102100, pos = { x = 2000.429, y = 197.673, z = -1263.695 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 1 } },
|
||||
{ id = 111102102, pos = { x = 1983.844, y = 220.903, z = -1568.377 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102103, refresh_id = 1, pos = { x = 1983.012, y = 221.055, z = -1558.376 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 111102104, pos = { x = 1988.293, y = 221.971, z = -1568.193 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
|
@ -12,17 +12,17 @@ local defs = {
|
||||
routeInfo = {route_1 = {1},route_2 = {2},route_3 = {3}}
|
||||
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "Hit platform to move")
|
||||
ScriptLib.PrintLog("Hit platform to move")
|
||||
|
||||
|
||||
local index = ScriptLib.GetGroupVariableValue(context,"route")
|
||||
ScriptLib.PrintLog(context, "Hit platform to move : get index = ".. index)
|
||||
ScriptLib.PrintLog("Hit platform to move : get index = ".. index)
|
||||
local route = "route_" ..index
|
||||
ScriptLib.PrintLog(context, "Hit platform to move : get key = ".. route)
|
||||
ScriptLib.PrintLog("Hit platform to move : get key = ".. route)
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, 17002, 110100010, routeInfo[route], { route_type = 0 })
|
||||
|
||||
ScriptLib.PrintLog(context, "Hit platform to move : start platform")
|
||||
ScriptLib.PrintLog("Hit platform to move : start platform")
|
||||
index = index + 1
|
||||
if index > defs.maxRouteCount then
|
||||
index = 1
|
||||
|
300
Resources/Scripts/Scene/1/scene1_group111101022.lua
Normal file
300
Resources/Scripts/Scene/1/scene1_group111101022.lua
Normal file
@ -0,0 +1,300 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101022
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 22002, monster_id = 21010201, pos = { x = 2237.696, y = 244.488, z = -1559.837 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22003, monster_id = 21010201, pos = { x = 2237.666, y = 245.192, z = -1551.705 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22004, monster_id = 21010201, pos = { x = 2241.990, y = 244.925, z = -1555.807 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22005, monster_id = 21010201, pos = { x = 2233.186, y = 245.031, z = -1555.837 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22006, monster_id = 21010301, pos = { x = 2242.399, y = 244.862, z = -1555.750 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22007, monster_id = 21010301, pos = { x = 2232.589, y = 244.958, z = -1555.777 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22008, monster_id = 21010401, pos = { x = 2242.923, y = 244.200, z = -1560.528 }, rot = { x = 0.000, y = 315.727, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22009, monster_id = 21010401, pos = { x = 2233.118, y = 244.537, z = -1551.083 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22010, monster_id = 21020101, pos = { x = 2241.512, y = 244.841, z = -1552.117 }, rot = { x = 0.000, y = 225.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 22011, monster_id = 21020101, pos = { x = 2233.395, y = 244.811, z = -1559.745 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 22001, gadget_id = 70350082, pos = { x = 2237.725, y = 245.187, z = -1555.747 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 22012, gadget_id = 70211011, pos = { x = 2236.001, y = 245.099, z = -1554.681 }, rot = { x = 3.284, y = 304.751, z = 356.840 }, level = 11, drop_tag = "战斗中级蒙德", isOneoff = true, persistent = true },
|
||||
{ config_id = 22013, gadget_id = 70360001, pos = { x = 2237.097, y = 245.234, z = -1556.324 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
-- 操作台Trigger
|
||||
{ config_id = 1022014, name = "GADGET_CREATE_22014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_22014", action = "action_EVENT_GADGET_CREATE_22014", trigger_count = 0 },
|
||||
-- 销毁操作台
|
||||
{ config_id = 1022015, name = "SELECT_OPTION_22015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_22015", action = "action_EVENT_SELECT_OPTION_22015", trigger_count = 0 },
|
||||
-- 第一波怪物是否死完
|
||||
{ config_id = 1022016, name = "ANY_MONSTER_DIE_22016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22016", action = "action_EVENT_ANY_MONSTER_DIE_22016" },
|
||||
-- 第二波怪物是否死完
|
||||
{ config_id = 1022017, name = "ANY_MONSTER_DIE_22017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22017", action = "action_EVENT_ANY_MONSTER_DIE_22017" },
|
||||
-- 挑战成功
|
||||
{ config_id = 1022018, name = "CHALLENGE_SUCCESS_22018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_22018", trigger_count = 0 },
|
||||
-- 挑战失败
|
||||
{ config_id = 1022019, name = "CHALLENGE_FAIL_22019", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_22019", trigger_count = 0 },
|
||||
-- 解锁宝箱,则D区域方碑解锁一个
|
||||
{ config_id = 1022020, name = "GADGET_STATE_CHANGE_22020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_22020", action = "action_EVENT_GADGET_STATE_CHANGE_22020" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "finish1", value = 0, no_refresh = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 22001, 22013 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_CREATE_22014", "SELECT_OPTION_22015", "CHALLENGE_SUCCESS_22018", "CHALLENGE_FAIL_22019", "GADGET_STATE_CHANGE_22020" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 22002, 22003, 22004, 22005 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_22016" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 22006, 22007, 22008, 22009 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_22017" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 4,
|
||||
-- description = ,
|
||||
monsters = { 22010, 22011 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_22014(context, evt)
|
||||
if 22013 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_22014(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101022, 22013, {177}) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_22015(context, evt)
|
||||
-- 判断是gadgetid 22013 option_id 177
|
||||
if 22013 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 177 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_22015(context, evt)
|
||||
-- 创建编号为180(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 120, 111101022, 10, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101022, 2)
|
||||
|
||||
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
|
||||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 22013 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 22013 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22013, GadgetState.GearStart) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_22016(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_22016(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101022, 3)
|
||||
|
||||
-- 删除suite2的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101022, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_22017(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_22017(context, evt)
|
||||
-- 添加suite4的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101022, 4)
|
||||
|
||||
-- 删除suite3的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101022, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_22018(context, evt)
|
||||
-- 将configid为 22001 的物件更改为状态 GadgetState.GearStop
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22001, GadgetState.GearStop) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为22012的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 22012 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_22019(context, evt)
|
||||
-- 将configid为 22001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为22013的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 22013 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
|
||||
ScriptLib.GoBackGroupSuite(context, 111101022)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_22020(context, evt)
|
||||
-- 检测config_id为22012的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 22012 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_22020(context, evt)
|
||||
-- 改变指定group组111101029中, configid为29001的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101029, 29001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 针对当前group内变量名为 "open1" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "open1", 1, 111101022) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将本组内变量名为 "finish1" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish1", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
73
Resources/Scripts/Scene/1/scene1_group111101023.lua
Normal file
73
Resources/Scripts/Scene/1/scene1_group111101023.lua
Normal file
@ -0,0 +1,73 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101023
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 23001, monster_id = 21010101, pos = { x = 2191.399, y = 249.344, z = -1657.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 23002, monster_id = 21010101, pos = { x = 2195.559, y = 249.524, z = -1659.117 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 23001, 23002 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
157
Resources/Scripts/Scene/1/scene1_group111101024.lua
Normal file
157
Resources/Scripts/Scene/1/scene1_group111101024.lua
Normal file
@ -0,0 +1,157 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101024
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 24006, monster_id = 21010101, pos = { x = 2182.101, y = 258.977, z = -1726.138 }, rot = { x = 0.000, y = 189.118, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9012 },
|
||||
{ config_id = 24007, monster_id = 21010101, pos = { x = 2180.200, y = 259.076, z = -1724.695 }, rot = { x = 0.000, y = 189.118, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9012 },
|
||||
{ config_id = 24008, monster_id = 21010101, pos = { x = 2184.260, y = 259.021, z = -1725.651 }, rot = { x = 0.000, y = 189.118, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 9012 },
|
||||
{ config_id = 24009, monster_id = 21020201, pos = { x = 2181.240, y = 258.997, z = -1729.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, pose_id = 401 },
|
||||
{ config_id = 24012, monster_id = 21010401, pos = { x = 2190.103, y = 261.297, z = -1729.832 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 24013, monster_id = 21010401, pos = { x = 2175.202, y = 261.749, z = -1726.669 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 24014, monster_id = 21010301, pos = { x = 2184.786, y = 259.320, z = -1731.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 24015, monster_id = 21010301, pos = { x = 2177.618, y = 259.033, z = -1730.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 24001, gadget_id = 70220013, pos = { x = 2175.133, y = 258.690, z = -1727.681 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 24002, gadget_id = 70220013, pos = { x = 2175.155, y = 258.510, z = -1725.804 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 24003, gadget_id = 70220013, pos = { x = 2175.113, y = 260.129, z = -1726.562 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 24004, gadget_id = 70310001, pos = { x = 2179.502, y = 258.696, z = -1720.923 }, rot = { x = 0.000, y = 0.000, z = 0.895 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 24005, gadget_id = 70310001, pos = { x = 2189.122, y = 259.105, z = -1723.162 }, rot = { x = 8.796, y = 0.617, z = 8.005 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 24010, gadget_id = 70220013, pos = { x = 2190.182, y = 259.677, z = -1729.926 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 24011, gadget_id = 70220013, pos = { x = 2189.670, y = 259.638, z = -1727.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 24016, gadget_id = 70211002, pos = { x = 2183.202, y = 259.015, z = -1730.738 }, rot = { x = 0.895, y = 0.035, z = 0.896 }, level = 11, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true, vision_level = VisionLevelType.VISION_LEVEL_NORMAL }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 24017, shape = RegionShape.SPHERE, radius = 9.3, pos = { x = 2182.027, y = 258.995, z = -1728.919 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1024017, name = "ENTER_REGION_24017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_24017", trigger_count = 0 },
|
||||
{ config_id = 1024018, name = "ANY_MONSTER_DIE_24018", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_24018", action = "action_EVENT_ANY_MONSTER_DIE_24018" },
|
||||
-- 开箱子解锁D区域方碑
|
||||
{ config_id = 1024019, name = "GADGET_STATE_CHANGE_24019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_24019", action = "action_EVENT_GADGET_STATE_CHANGE_24019" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 24006, 24007, 24008, 24009 },
|
||||
gadgets = { 24001, 24002, 24003, 24004, 24005, 24010, 24011, 24016 },
|
||||
regions = { 24017 },
|
||||
triggers = { "ENTER_REGION_24017", "ANY_MONSTER_DIE_24018", "GADGET_STATE_CHANGE_24019" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 24012, 24013, 24014, 24015 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_24017(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101024, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_24018(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_24018(context, evt)
|
||||
-- 将configid为 24016 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 24016, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_24019(context, evt)
|
||||
-- 检测config_id为24016的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 24016 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_24019(context, evt)
|
||||
-- 改变指定group组111101029中, configid为29002的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101029, 29002, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将本组内变量名为 "open2" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "open2", 1, 111101029) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
96
Resources/Scripts/Scene/1/scene1_group111101025.lua
Normal file
96
Resources/Scripts/Scene/1/scene1_group111101025.lua
Normal file
@ -0,0 +1,96 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101025
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 25002, monster_id = 21010201, pos = { x = 2189.365, y = 255.806, z = -1694.218 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 25003, monster_id = 21010201, pos = { x = 2189.559, y = 255.979, z = -1695.695 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 25004, monster_id = 21010201, pos = { x = 2207.149, y = 256.547, z = -1690.517 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 25005, monster_id = 21010201, pos = { x = 2208.142, y = 256.812, z = -1693.277 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 25008, monster_id = 21010401, pos = { x = 2187.040, y = 255.834, z = -1694.998 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 25009, monster_id = 21010401, pos = { x = 2212.745, y = 259.141, z = -1693.750 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 25001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 2199.800, y = 255.618, z = -1692.984 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1025001, name = "ENTER_REGION_25001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_25001" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 25001 },
|
||||
triggers = { "ENTER_REGION_25001" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 25002, 25003, 25004, 25005, 25008, 25009 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_25001(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101025, 2)
|
||||
|
||||
return 0
|
||||
end
|
361
Resources/Scripts/Scene/1/scene1_group111101026.lua
Normal file
361
Resources/Scripts/Scene/1/scene1_group111101026.lua
Normal file
@ -0,0 +1,361 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101026
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 26001, gadget_id = 70310001, pos = { x = 2305.789, y = 275.464, z = -1646.839 }, rot = { x = 4.144, y = 359.948, z = 358.551 }, level = 1 },
|
||||
{ config_id = 26002, gadget_id = 70310001, pos = { x = 2301.885, y = 277.280, z = -1647.060 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 26003, gadget_id = 70310001, pos = { x = 2308.072, y = 275.318, z = -1643.205 }, rot = { x = 357.124, y = 0.050, z = 358.003 }, level = 1 },
|
||||
{ config_id = 26004, gadget_id = 70310001, pos = { x = 2308.104, y = 275.469, z = -1648.676 }, rot = { x = 357.838, y = 0.027, z = 358.579 }, level = 1 },
|
||||
{ config_id = 26005, gadget_id = 70310001, pos = { x = 2310.169, y = 275.170, z = -1645.448 }, rot = { x = 4.864, y = 359.954, z = 358.925 }, level = 1 },
|
||||
{ config_id = 26017, gadget_id = 70211001, pos = { x = 2308.019, y = 275.307, z = -1645.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
-- 1火把点燃增加
|
||||
{ config_id = 1026006, name = "GADGET_STATE_CHANGE_26006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26006", action = "action_EVENT_GADGET_STATE_CHANGE_26006", trigger_count = 0 },
|
||||
-- 2火把点燃增加
|
||||
{ config_id = 1026007, name = "GADGET_STATE_CHANGE_26007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26007", action = "action_EVENT_GADGET_STATE_CHANGE_26007", trigger_count = 0 },
|
||||
-- 3火把点燃增加
|
||||
{ config_id = 1026008, name = "GADGET_STATE_CHANGE_26008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26008", action = "action_EVENT_GADGET_STATE_CHANGE_26008", trigger_count = 0 },
|
||||
-- 4火把点燃增加
|
||||
{ config_id = 1026009, name = "GADGET_STATE_CHANGE_26009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26009", action = "action_EVENT_GADGET_STATE_CHANGE_26009", trigger_count = 0 },
|
||||
-- 5火把点燃增加
|
||||
{ config_id = 1026010, name = "GADGET_STATE_CHANGE_26010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26010", action = "action_EVENT_GADGET_STATE_CHANGE_26010", trigger_count = 0 },
|
||||
-- 1火把熄灭减少
|
||||
{ config_id = 1026011, name = "GADGET_STATE_CHANGE_26011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26011", action = "action_EVENT_GADGET_STATE_CHANGE_26011", trigger_count = 0 },
|
||||
-- 2火把熄灭减少
|
||||
{ config_id = 1026012, name = "GADGET_STATE_CHANGE_26012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26012", action = "action_EVENT_GADGET_STATE_CHANGE_26012", trigger_count = 0 },
|
||||
-- 3火把熄灭减少
|
||||
{ config_id = 1026013, name = "GADGET_STATE_CHANGE_26013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26013", action = "action_EVENT_GADGET_STATE_CHANGE_26013", trigger_count = 0 },
|
||||
-- 4火把熄灭减少
|
||||
{ config_id = 1026014, name = "GADGET_STATE_CHANGE_26014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26014", action = "action_EVENT_GADGET_STATE_CHANGE_26014", trigger_count = 0 },
|
||||
-- 5火把熄灭减少
|
||||
{ config_id = 1026015, name = "GADGET_STATE_CHANGE_26015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26015", action = "action_EVENT_GADGET_STATE_CHANGE_26015", trigger_count = 0 },
|
||||
{ config_id = 1026016, name = "VARIABLE_CHANGE_26016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_26016", action = "action_EVENT_VARIABLE_CHANGE_26016", trigger_count = 0 },
|
||||
-- 开箱子解锁D区域
|
||||
{ config_id = 1026018, name = "GADGET_STATE_CHANGE_26018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26018", action = "action_EVENT_GADGET_STATE_CHANGE_26018" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "count", value = 0, no_refresh = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 26001, 26002, 26003, 26004, 26005 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_26006", "GADGET_STATE_CHANGE_26007", "GADGET_STATE_CHANGE_26008", "GADGET_STATE_CHANGE_26009", "GADGET_STATE_CHANGE_26010", "GADGET_STATE_CHANGE_26011", "GADGET_STATE_CHANGE_26012", "GADGET_STATE_CHANGE_26013", "GADGET_STATE_CHANGE_26014", "GADGET_STATE_CHANGE_26015", "VARIABLE_CHANGE_26016", "GADGET_STATE_CHANGE_26018" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26006(context, evt)
|
||||
-- 检测config_id为26001的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 26001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26006(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26007(context, evt)
|
||||
-- 检测config_id为26002的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 26002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26007(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26008(context, evt)
|
||||
-- 检测config_id为26003的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 26003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26008(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26009(context, evt)
|
||||
-- 检测config_id为26003的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 26003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26009(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26010(context, evt)
|
||||
-- 检测config_id为26005的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 26005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26010(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26011(context, evt)
|
||||
-- 检测config_id为26001的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 26001 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26011(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26012(context, evt)
|
||||
-- 检测config_id为26002的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 26002 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26012(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26013(context, evt)
|
||||
-- 检测config_id为26003的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 26003 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26013(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26014(context, evt)
|
||||
-- 检测config_id为26004的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 26004 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26014(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26015(context, evt)
|
||||
-- 检测config_id为26005的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 26005 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26015(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "count", -1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_26016(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"count"为5
|
||||
if ScriptLib.GetGroupVariableValue(context, "count") ~= 5 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_26016(context, evt)
|
||||
-- 创建id为26017的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 26017 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26018(context, evt)
|
||||
-- 检测config_id为26017的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 26017 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26018(context, evt)
|
||||
-- 改变指定group组111101029中, configid为29003的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101029, 29003, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将本组内变量名为 "open3" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "open3", 1, 111101029) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
311
Resources/Scripts/Scene/1/scene1_group111101029.lua
Normal file
311
Resources/Scripts/Scene/1/scene1_group111101029.lua
Normal file
@ -0,0 +1,311 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101029
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
-- 第一波
|
||||
{ config_id = 29004, monster_id = 21010101, pos = { x = 2336.445, y = 284.052, z = -1743.955 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
-- 第一波
|
||||
{ config_id = 29005, monster_id = 21010101, pos = { x = 2337.418, y = 283.923, z = -1746.980 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
-- 第一波
|
||||
{ config_id = 29006, monster_id = 21010101, pos = { x = 2338.372, y = 283.962, z = -1749.633 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
-- 第二波
|
||||
{ config_id = 29012, monster_id = 21010101, pos = { x = 2342.478, y = 283.898, z = -1742.110 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
-- 第二波
|
||||
{ config_id = 29013, monster_id = 21010101, pos = { x = 2344.187, y = 283.898, z = -1745.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
-- 第二波
|
||||
{ config_id = 29014, monster_id = 21010101, pos = { x = 2345.706, y = 283.898, z = -1748.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 29001, gadget_id = 70900007, pos = { x = 2339.093, y = 283.898, z = -1742.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 29002, gadget_id = 70900007, pos = { x = 2341.114, y = 283.987, z = -1746.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 29003, gadget_id = 70900007, pos = { x = 2343.065, y = 283.898, z = -1751.346 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 29015, gadget_id = 70211001, pos = { x = 2336.915, y = 283.922, z = -1748.220 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
-- 方碑全部解锁
|
||||
{ config_id = 1029007, name = "VARIABLE_CHANGE_29007", event = EventType.EVENT_VARIABLE_CHANGE, source = "numBox", condition = "condition_EVENT_VARIABLE_CHANGE_29007", action = "action_EVENT_VARIABLE_CHANGE_29007", trigger_count = 3 },
|
||||
-- 解锁方碑+1
|
||||
{ config_id = 1029008, name = "GADGET_STATE_CHANGE_29008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29008", action = "action_EVENT_GADGET_STATE_CHANGE_29008" },
|
||||
-- 解锁方碑+1
|
||||
{ config_id = 1029009, name = "GADGET_STATE_CHANGE_29009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29009", action = "action_EVENT_GADGET_STATE_CHANGE_29009" },
|
||||
-- 解锁方碑+1
|
||||
{ config_id = 1029010, name = "GADGET_STATE_CHANGE_29010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29010", action = "action_EVENT_GADGET_STATE_CHANGE_29010" },
|
||||
{ config_id = 1029011, name = "ANY_MONSTER_DIE_29011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_29011", action = "action_EVENT_ANY_MONSTER_DIE_29011" },
|
||||
-- 第二波死完出宝箱
|
||||
{ config_id = 1029016, name = "ANY_MONSTER_DIE_29016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_29016", action = "action_EVENT_ANY_MONSTER_DIE_29016" },
|
||||
{ config_id = 1029017, name = "VARIABLE_CHANGE_29017", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_29017", action = "action_EVENT_VARIABLE_CHANGE_29017" },
|
||||
{ config_id = 1029018, name = "VARIABLE_CHANGE_29018", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_29018", action = "action_EVENT_VARIABLE_CHANGE_29018" },
|
||||
{ config_id = 1029019, name = "VARIABLE_CHANGE_29019", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_29019", action = "action_EVENT_VARIABLE_CHANGE_29019" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "numBox", value = 0, no_refresh = true },
|
||||
{ config_id = 2, name = "open1", value = 0, no_refresh = true },
|
||||
{ config_id = 3, name = "open2", value = 0, no_refresh = false },
|
||||
{ config_id = 4, name = "open3", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 29001, 29002, 29003 },
|
||||
regions = { },
|
||||
triggers = { "VARIABLE_CHANGE_29007", "GADGET_STATE_CHANGE_29008", "GADGET_STATE_CHANGE_29009", "GADGET_STATE_CHANGE_29010", "VARIABLE_CHANGE_29017", "VARIABLE_CHANGE_29018", "VARIABLE_CHANGE_29019" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 29004, 29005, 29006 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_29011" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 29012, 29013, 29014 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_29016" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_29007(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"numBox"为3
|
||||
if ScriptLib.GetGroupVariableValue(context, "numBox") ~= 3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_29007(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101029, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_29008(context, evt)
|
||||
if 29001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_29008(context, evt)
|
||||
-- 针对当前group内变量名为 "numBox" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "numBox", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_29009(context, evt)
|
||||
if 29002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_29009(context, evt)
|
||||
-- 针对当前group内变量名为 "numBox" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "numBox", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_29010(context, evt)
|
||||
if 29003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_29010(context, evt)
|
||||
-- 针对当前group内变量名为 "numBox" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "numBox", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_29011(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_29011(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101029, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_29016(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_29016(context, evt)
|
||||
-- 创建id为29015的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 29015 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_29017(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"open1"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "open1") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_29017(context, evt)
|
||||
-- 将configid为 29001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_29018(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"open2"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "open2") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_29018(context, evt)
|
||||
-- 将configid为 29002 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29002, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_29019(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"open3"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "open3") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_29019(context, evt)
|
||||
-- 将configid为 29003 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29003, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
@ -14,7 +14,7 @@ local defs = {
|
||||
|
||||
-- DEFS_MISCS
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "platform to move")
|
||||
ScriptLib.PrintLog("platform to move")
|
||||
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
|
||||
|
||||
if pathnodeindex > defs.maxPathNode then
|
||||
@ -22,7 +22,7 @@ function MovePlatform(context)
|
||||
end
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
|
||||
ScriptLib.PrintLog(context, "platform to move : start platform")
|
||||
ScriptLib.PrintLog("platform to move : start platform")
|
||||
return 0
|
||||
end
|
||||
|
||||
|
@ -92,7 +92,7 @@ function action_EVENT_ENTER_REGION_54001(context, evt)
|
||||
-- 在0面前, 5 到 10 范围里,15 角度内,刷{54002,54003,54004}的怪物
|
||||
|
||||
local ret = ScriptLib.CreateMonsterFaceAvatar(context, { entity_id = 0, monsters = {54002,54003,54004}, ranges = { 5, 10 }, angle = 15 })
|
||||
ScriptLib.PrintLog(context, tostring(ret))
|
||||
ScriptLib.PrintLog(tostring(ret))
|
||||
|
||||
return 0
|
||||
end
|
@ -185,7 +185,7 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_59008(context, evt)
|
||||
ScriptLib.PrintLog(context, "## trigger_output="..evt.param1)
|
||||
ScriptLib.PrintLog("## trigger_output="..evt.param1)
|
||||
ScriptLib.SetGroupDead(context, 0)
|
||||
return 0
|
||||
end
|
230
Resources/Scripts/Scene/1/scene1_group111101060.lua
Normal file
230
Resources/Scripts/Scene/1/scene1_group111101060.lua
Normal file
@ -0,0 +1,230 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101060
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 60004, monster_id = 21010101, pos = { x = 2224.742, y = 244.084, z = -1551.455 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60005, monster_id = 21010101, pos = { x = 2225.299, y = 243.990, z = -1552.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60006, monster_id = 21010101, pos = { x = 2224.131, y = 243.790, z = -1554.813 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60011, monster_id = 21010101, pos = { x = 2219.698, y = 244.011, z = -1551.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60012, monster_id = 21010101, pos = { x = 2219.148, y = 243.854, z = -1552.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60013, monster_id = 21010101, pos = { x = 2219.813, y = 243.648, z = -1554.530 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60014, monster_id = 21010101, pos = { x = 2223.168, y = 243.670, z = -1555.770 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60015, monster_id = 21010101, pos = { x = 2221.285, y = 243.578, z = -1555.943 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60016, monster_id = 21010101, pos = { x = 2223.386, y = 243.982, z = -1552.240 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 60017, monster_id = 21010101, pos = { x = 2220.585, y = 243.949, z = -1551.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 60001, gadget_id = 70350082, pos = { x = 2221.521, y = 243.860, z = -1553.135 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 60002, gadget_id = 70360001, pos = { x = 2221.105, y = 244.796, z = -1553.642 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 60003, gadget_id = 70211001, pos = { x = 2221.573, y = 244.118, z = -1550.505 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1060007, name = "GADGET_CREATE_60007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_60007", action = "action_EVENT_GADGET_CREATE_60007" },
|
||||
{ config_id = 1060008, name = "SELECT_OPTION_60008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_60008", action = "action_EVENT_SELECT_OPTION_60008", trigger_count = 0 },
|
||||
{ config_id = 1060009, name = "CHALLENGE_SUCCESS_60009", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_60009", trigger_count = 0 },
|
||||
{ config_id = 1060010, name = "CHALLENGE_FAIL_60010", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_60010", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 60001, 60002 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_CREATE_60007", "SELECT_OPTION_60008", "CHALLENGE_SUCCESS_60009", "CHALLENGE_FAIL_60010" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 60004, 60005, 60006, 60011, 60012, 60013, 60014, 60015, 60016, 60017 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 60001 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_60007(context, evt)
|
||||
if 60002 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_60007(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101060, 60002, {177}) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_60008(context, evt)
|
||||
-- 判断是gadgetid 60002 option_id 177
|
||||
if 60002 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 177 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_60008(context, evt)
|
||||
-- 创建编号为180(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 120, 111101060, 10, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101060, 2)
|
||||
|
||||
-- 将configid为 60001 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60001, GadgetState.GearStart) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
|
||||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 60002 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_60009(context, evt)
|
||||
-- 将configid为 60001 的物件更改为状态 GadgetState.GearStop
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60001, GadgetState.GearStop) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为60003的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 60003 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将本组内变量名为 "finish" 的变量设置为 2
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finish", 2) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 改变指定group组111101029中, configid为29001的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101029, 29001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将本组内变量名为 "open1" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "open1", 1, 111101029) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- group调整group进度,只对非randSuite有效
|
||||
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101060, 3) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_60010(context, evt)
|
||||
-- 将configid为 60001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为60002的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 60002 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 杀死指定group内的gadget和monster,移除其它东西
|
||||
ScriptLib.KillExtraGroupSuite(context, 111101060, 2)
|
||||
|
||||
return 0
|
||||
end
|
@ -107,11 +107,11 @@ suites = {
|
||||
function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
|
||||
|
||||
if evt.param1 ~= 101 and evt.param1 ~= 102 and evt.param1 ~= 103 and evt.param1 ~= 104 then
|
||||
ScriptLib.PrintLog(context, "Block Event ".." : Gadget state = ".. evt.param1)
|
||||
ScriptLib.PrintLog("Block Event ".." : Gadget state = ".. evt.param1)
|
||||
return 0
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "Beging Execute ".." : Gadget state = ".. evt.param1)
|
||||
ScriptLib.PrintLog("Beging Execute ".." : Gadget state = ".. evt.param1)
|
||||
|
||||
local state = {0, 0, 0}
|
||||
local allEquale = 1
|
||||
@ -120,7 +120,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
|
||||
|
||||
state[v.index] = ScriptLib.GetGadgetStateByConfigId(context, defs.groupID, defs[v.name])
|
||||
end
|
||||
ScriptLib.PrintLog(context, "Gadget State = "..state[1].."_"..state[2].."_"..state[3])
|
||||
ScriptLib.PrintLog("Gadget State = "..state[1].."_"..state[2].."_"..state[3])
|
||||
|
||||
local haschange = {0,0,0}
|
||||
|
||||
@ -137,7 +137,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
ScriptLib.PrintLog(context, "has change = "..haschange[1].."_"..haschange[2].."_"..haschange[3])
|
||||
ScriptLib.PrintLog("has change = "..haschange[1].."_"..haschange[2].."_"..haschange[3])
|
||||
for i = 1, #haschange, 1 do
|
||||
local n = state[i]
|
||||
if haschange[i] == 1 then
|
||||
@ -154,7 +154,7 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
|
||||
ScriptLib.SetGadgetStateByConfigId(context, defs[gadgetInfo[i].name], n)
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "Check Linked cube and change state ")
|
||||
ScriptLib.PrintLog("Check Linked cube and change state ")
|
||||
|
||||
if allEquale == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "isFinished", 1)
|
||||
@ -163,5 +163,5 @@ function action_EVENT_GADGET_STATE_CHANGE_109005(context, evt)
|
||||
end
|
||||
ScriptLib.GoToGroupSuite(context, defs.groupID, 2)
|
||||
end
|
||||
ScriptLib.PrintLog(context, "All equale = "..allEquale)
|
||||
ScriptLib.PrintLog("All equale = "..allEquale)
|
||||
end
|
@ -18,7 +18,7 @@ function GetNextPath(context)
|
||||
local path = {}
|
||||
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
|
||||
local stoppoint = defs.pointInfo[index]
|
||||
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
|
||||
ScriptLib.PrintLog("stop point : "..stoppoint)
|
||||
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
|
||||
for i=currentNodeIndex + 1,stoppoint do
|
||||
table.insert(path,i)
|
||||
@ -28,7 +28,7 @@ end
|
||||
|
||||
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "platform to move")
|
||||
ScriptLib.PrintLog("platform to move")
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -36,7 +36,7 @@ function MovePlatform(context)
|
||||
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
|
||||
ScriptLib.PrintLog(context, "platform to move : start platform")
|
||||
ScriptLib.PrintLog("platform to move : start platform")
|
||||
return 0
|
||||
end
|
||||
|
||||
@ -160,7 +160,7 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_110003(context, evt)
|
||||
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
@ -187,12 +187,12 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_AVATAR_NEAR_PLATFORM_110004(context, evt)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
if defs.gadget_thunderThelfID ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
|
||||
if state == 201 then
|
||||
return false
|
||||
end
|
||||
|
@ -18,7 +18,7 @@ function GetNextPath(context)
|
||||
local path = {}
|
||||
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
|
||||
local stoppoint = defs.pointInfo[index]
|
||||
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
|
||||
ScriptLib.PrintLog("stop point : "..stoppoint)
|
||||
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
|
||||
for i=currentNodeIndex + 1,stoppoint do
|
||||
table.insert(path,i)
|
||||
@ -28,7 +28,7 @@ end
|
||||
|
||||
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "platform to move")
|
||||
ScriptLib.PrintLog("platform to move")
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -36,7 +36,7 @@ function MovePlatform(context)
|
||||
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
|
||||
ScriptLib.PrintLog(context, "platform to move : start platform")
|
||||
ScriptLib.PrintLog("platform to move : start platform")
|
||||
return 0
|
||||
end
|
||||
|
||||
@ -161,7 +161,7 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_111002(context, evt)
|
||||
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
@ -187,12 +187,12 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_AVATAR_NEAR_PLATFORM_111003(context, evt)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
if defs.gadget_thunderThelfID ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
|
||||
if state == 201 then
|
||||
return false
|
||||
end
|
||||
@ -211,6 +211,6 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_111005(context, evt)
|
||||
ScriptLib.PrintLog(context, "GroupLoad : ..... ")
|
||||
ScriptLib.PrintLog("GroupLoad : ..... ")
|
||||
return 0
|
||||
end
|
@ -53,48 +53,48 @@ end
|
||||
function CheckIsConnected(context,teleport_aID,teleport_bID)
|
||||
|
||||
--获取角度
|
||||
ScriptLib.PrintLog(context, "CheckConnected from "..teleport_aID .. " to "..teleport_bID)
|
||||
ScriptLib.PrintLog("CheckConnected from "..teleport_aID .. " to "..teleport_bID)
|
||||
local yrotation_a = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID)).y
|
||||
local yrotation_b = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID)).y
|
||||
ScriptLib.PrintLog(context, "yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
|
||||
ScriptLib.PrintLog("yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
|
||||
--转换为弧度
|
||||
local yrad_a = math.rad(yrotation_a)
|
||||
local yrad_b = math.rad(yrotation_b)
|
||||
ScriptLib.PrintLog(context, "yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
|
||||
ScriptLib.PrintLog("yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
|
||||
|
||||
--编辑器中的XZ和运行下的对应关系是反的,所以这里XZ左边调换了一下
|
||||
local dir_a = {x = math.sin(yrad_a), y = 0, z = math.cos(yrad_a)}
|
||||
local dir_b = {x = math.sin(yrad_b), y = 0, z = math.cos(yrad_b)}
|
||||
ScriptLib.PrintLog(context, "dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
|
||||
ScriptLib.PrintLog(context, "dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
|
||||
ScriptLib.PrintLog("dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
|
||||
ScriptLib.PrintLog("dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
|
||||
|
||||
--获取两个点位置
|
||||
local pos_a = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID))
|
||||
ScriptLib.PrintLog(context, "pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
|
||||
ScriptLib.PrintLog("pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
|
||||
local pos_b = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID))
|
||||
ScriptLib.PrintLog(context, "pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
|
||||
ScriptLib.PrintLog("pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
|
||||
|
||||
--计算两个点之间的方向,并且Normalize
|
||||
local diratob = {x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z}
|
||||
local norDirAtoB = Normalize({x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z})
|
||||
ScriptLib.PrintLog(context, "norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
|
||||
ScriptLib.PrintLog("norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
|
||||
local dirbtoa = {x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z}
|
||||
local norDirBtoA = Normalize({x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z})
|
||||
ScriptLib.PrintLog(context, "norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
|
||||
ScriptLib.PrintLog("norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
|
||||
|
||||
--计算两个点的点乘结果
|
||||
local dotvalue_a = dir_a.x * norDirAtoB.x + dir_a.y * norDirAtoB.y + dir_a.z * norDirAtoB.z
|
||||
local dotvalue_b = dir_b.x * norDirBtoA.x + dir_b.y * norDirBtoA.y + dir_b.z * norDirBtoA.z
|
||||
|
||||
ScriptLib.PrintLog(context, "dotvalue_a "..dotvalue_a)
|
||||
ScriptLib.PrintLog(context, "dotvalue_b "..dotvalue_b)
|
||||
ScriptLib.PrintLog("dotvalue_a "..dotvalue_a)
|
||||
ScriptLib.PrintLog("dotvalue_b "..dotvalue_b)
|
||||
|
||||
--判断点乘结果是否大于0.5,也就是正负 45度范围
|
||||
if dotvalue_a >= 0.5 and dotvalue_b >= 0.5 then
|
||||
return true
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "invalid cos = ".. dotvalue_a)
|
||||
ScriptLib.PrintLog("invalid cos = ".. dotvalue_a)
|
||||
|
||||
return false
|
||||
|
||||
@ -148,16 +148,16 @@ function UpdateTeleportState(context)
|
||||
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
|
||||
teleportname = teleportname.."_isActive"
|
||||
ScriptLib.SetGroupVariableValue(context, teleportname, 0)
|
||||
ScriptLib.PrintLog(context, "connect nothing : "..i)
|
||||
ScriptLib.PrintLog("connect nothing : "..i)
|
||||
else
|
||||
|
||||
--ScriptLib.PrintLog(context, "connect count = "..#connect)
|
||||
--ScriptLib.PrintLog(context, "connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
|
||||
--ScriptLib.PrintLog("connect count = "..#connect)
|
||||
--ScriptLib.PrintLog("connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
|
||||
ScriptLib.SetGadgetStateByConfigId(context, TeleportOwnerShip[i][2], GadgetState.GearStart)
|
||||
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
|
||||
teleportname = teleportname.."_isActive"
|
||||
ScriptLib.SetGroupVariableValue(context, teleportname, 1)
|
||||
ScriptLib.PrintLog(context, "connect something = "..i)
|
||||
ScriptLib.PrintLog("connect something = "..i)
|
||||
end
|
||||
|
||||
end
|
||||
@ -345,8 +345,8 @@ function action_EVENT_SELECT_OPTION_124011(context, evt)
|
||||
localtarget = TeleportOwnerShip[i][2]
|
||||
end
|
||||
end
|
||||
ScriptLib.PrintLog(context, "evt.gadgetid = "..evt.param1)
|
||||
ScriptLib.PrintLog(context, "localtarget = "..localtarget)
|
||||
ScriptLib.PrintLog("evt.gadgetid = "..evt.param1)
|
||||
ScriptLib.PrintLog("localtarget = "..localtarget)
|
||||
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
|
||||
return 0
|
||||
end
|
||||
@ -354,7 +354,7 @@ end
|
||||
-- 触发条件
|
||||
function condition_EVENT_PLATFORM_REACH_POINT_124015(context, evt)
|
||||
-- 判断是gadgetid 124006 option_id 31
|
||||
ScriptLib.PrintLog(context, "Reachpoint_condition : "..evt.param1)
|
||||
ScriptLib.PrintLog("Reachpoint_condition : "..evt.param1)
|
||||
if defs.gadget_Teleport_1 ~= evt.param1 and
|
||||
defs.gadget_Teleport_2 ~= evt.param1 and
|
||||
defs.gadget_Teleport_3 ~= evt.param1 and
|
||||
@ -368,7 +368,7 @@ end
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_124015(context, evt)
|
||||
-- 判断是gadgetid 124006 option_id 31
|
||||
ScriptLib.PrintLog(context, "Reachpoint_action : "..evt.param1)
|
||||
ScriptLib.PrintLog("Reachpoint_action : "..evt.param1)
|
||||
UpdateTeleportState(context)
|
||||
return 0
|
||||
end
|
||||
|
@ -18,7 +18,7 @@ function GetNextPath(context)
|
||||
local path = {}
|
||||
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
|
||||
local stoppoint = defs.pointInfo[index]
|
||||
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
|
||||
ScriptLib.PrintLog("stop point : "..stoppoint)
|
||||
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
|
||||
for i=currentNodeIndex + 1,stoppoint do
|
||||
table.insert(path,i)
|
||||
@ -28,7 +28,7 @@ end
|
||||
|
||||
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "platform to move")
|
||||
ScriptLib.PrintLog("platform to move")
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -36,7 +36,7 @@ function MovePlatform(context)
|
||||
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
|
||||
ScriptLib.PrintLog(context, "platform to move : start platform")
|
||||
ScriptLib.PrintLog("platform to move : start platform")
|
||||
return 0
|
||||
end
|
||||
|
||||
@ -160,7 +160,7 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_151004(context, evt)
|
||||
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -183,12 +183,12 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_AVATAR_NEAR_PLATFORM_151005(context, evt)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
if defs.gadget_thunderThelfID ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
|
||||
if state == 201 then
|
||||
return false
|
||||
end
|
||||
|
@ -52,48 +52,48 @@ end
|
||||
function CheckIsConnected(context,teleport_aID,teleport_bID)
|
||||
|
||||
--获取角度
|
||||
ScriptLib.PrintLog(context, "CheckConnected from "..teleport_aID .. " to "..teleport_bID)
|
||||
ScriptLib.PrintLog("CheckConnected from "..teleport_aID .. " to "..teleport_bID)
|
||||
local yrotation_a = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID)).y
|
||||
local yrotation_b = ScriptLib.GetRotationByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID)).y
|
||||
ScriptLib.PrintLog(context, "yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
|
||||
ScriptLib.PrintLog("yrotation_a = "..yrotation_a .. "| yrotation_a = "..yrotation_b)
|
||||
--转换为弧度
|
||||
local yrad_a = math.rad(yrotation_a)
|
||||
local yrad_b = math.rad(yrotation_b)
|
||||
ScriptLib.PrintLog(context, "yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
|
||||
ScriptLib.PrintLog("yrad_a = "..yrad_a .. "| yrad_b = "..yrad_b)
|
||||
|
||||
--编辑器中的XZ和运行下的对应关系是反的,所以这里XZ左边调换了一下
|
||||
local dir_a = {x = math.sin(yrad_a), y = 0, z = math.cos(yrad_a)}
|
||||
local dir_b = {x = math.sin(yrad_b), y = 0, z = math.cos(yrad_b)}
|
||||
ScriptLib.PrintLog(context, "dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
|
||||
ScriptLib.PrintLog(context, "dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
|
||||
ScriptLib.PrintLog("dir_a : x = "..dir_a.x.." , y = "..dir_a.y.." , z = "..dir_a.z)
|
||||
ScriptLib.PrintLog("dir_b : x = "..dir_b.x.." , y = "..dir_b.y.." , z = "..dir_b.z)
|
||||
|
||||
--获取两个点位置
|
||||
local pos_a = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_aID))
|
||||
ScriptLib.PrintLog(context, "pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
|
||||
ScriptLib.PrintLog("pos_a : x = "..pos_a.x.." , y = "..pos_a.y.." , z = "..pos_a.z)
|
||||
local pos_b = ScriptLib.GetPosByEntityId(context, ScriptLib.GetEntityIdByConfigId(context,teleport_bID))
|
||||
ScriptLib.PrintLog(context, "pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
|
||||
ScriptLib.PrintLog("pos_b : x = "..pos_b.x.." , y = "..pos_b.y.." , z = "..pos_b.z)
|
||||
|
||||
--计算两个点之间的方向,并且Normalize
|
||||
local diratob = {x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z}
|
||||
local norDirAtoB = Normalize({x = pos_b.x - pos_a.x,y = 0,z = pos_b.z - pos_a.z})
|
||||
ScriptLib.PrintLog(context, "norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
|
||||
ScriptLib.PrintLog("norDirAtoB : x = "..norDirAtoB.x.." , y = "..norDirAtoB.y.." , z = "..norDirAtoB.z)
|
||||
local dirbtoa = {x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z}
|
||||
local norDirBtoA = Normalize({x = pos_a.x - pos_b.x,y = 0,z = pos_a.z - pos_b.z})
|
||||
ScriptLib.PrintLog(context, "norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
|
||||
ScriptLib.PrintLog("norDirBtoA : x = "..norDirBtoA.x.." , y = "..norDirBtoA.y.." , z = "..norDirBtoA.z)
|
||||
|
||||
--计算两个点的点乘结果
|
||||
local dotvalue_a = dir_a.x * norDirAtoB.x + dir_a.y * norDirAtoB.y + dir_a.z * norDirAtoB.z
|
||||
local dotvalue_b = dir_b.x * norDirBtoA.x + dir_b.y * norDirBtoA.y + dir_b.z * norDirBtoA.z
|
||||
|
||||
ScriptLib.PrintLog(context, "dotvalue_a "..dotvalue_a)
|
||||
ScriptLib.PrintLog(context, "dotvalue_b "..dotvalue_b)
|
||||
ScriptLib.PrintLog("dotvalue_a "..dotvalue_a)
|
||||
ScriptLib.PrintLog("dotvalue_b "..dotvalue_b)
|
||||
|
||||
--判断点乘结果是否大于0.5,也就是正负 45度范围
|
||||
if dotvalue_a >= 0.5 and dotvalue_b >= 0.5 then
|
||||
return true
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "invalid cos = ".. dotvalue_a)
|
||||
ScriptLib.PrintLog("invalid cos = ".. dotvalue_a)
|
||||
|
||||
return false
|
||||
|
||||
@ -147,16 +147,16 @@ function UpdateTeleportState(context)
|
||||
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
|
||||
teleportname = teleportname.."_isActive"
|
||||
ScriptLib.SetGroupVariableValue(context, teleportname, 0)
|
||||
ScriptLib.PrintLog(context, "connect nothing : "..i)
|
||||
ScriptLib.PrintLog("connect nothing : "..i)
|
||||
else
|
||||
|
||||
--ScriptLib.PrintLog(context, "connect count = "..#connect)
|
||||
--ScriptLib.PrintLog(context, "connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
|
||||
--ScriptLib.PrintLog("connect count = "..#connect)
|
||||
--ScriptLib.PrintLog("connect{"..connect[1].." , "..connect[2].." , "..connect[3].."}")
|
||||
ScriptLib.SetGadgetStateByConfigId(context, TeleportOwnerShip[i][2], GadgetState.GearStart)
|
||||
teleportname = GetTeleportNameByConfigID(context, TeleportOwnerShip[i][2])
|
||||
teleportname = teleportname.."_isActive"
|
||||
ScriptLib.SetGroupVariableValue(context, teleportname, 1)
|
||||
ScriptLib.PrintLog(context, "connect something = "..i)
|
||||
ScriptLib.PrintLog("connect something = "..i)
|
||||
end
|
||||
|
||||
end
|
||||
@ -338,8 +338,8 @@ function action_EVENT_SELECT_OPTION_153014(context, evt)
|
||||
localtarget = TeleportOwnerShip[i][2]
|
||||
end
|
||||
end
|
||||
ScriptLib.PrintLog(context, "evt.gadgetid = "..evt.param1)
|
||||
ScriptLib.PrintLog(context, "localtarget = "..localtarget)
|
||||
ScriptLib.PrintLog("evt.gadgetid = "..evt.param1)
|
||||
ScriptLib.PrintLog("localtarget = "..localtarget)
|
||||
ScriptLib.SetPlatformPointArray(context, localtarget, defs.pointarray_Rotate, { 1 }, { route_type = 0,turn_mode=true })
|
||||
return 0
|
||||
end
|
||||
@ -347,7 +347,7 @@ end
|
||||
-- 触发条件
|
||||
function condition_EVENT_PLATFORM_REACH_POINT_153015(context, evt)
|
||||
-- 判断是gadgetid 124006 option_id 31
|
||||
ScriptLib.PrintLog(context, "Reachpoint_condition : "..evt.param1)
|
||||
ScriptLib.PrintLog("Reachpoint_condition : "..evt.param1)
|
||||
if defs.gadget_Teleport_1 ~= evt.param1 and
|
||||
defs.gadget_Teleport_2 ~= evt.param1 and
|
||||
defs.gadget_Teleport_3 ~= evt.param1 and
|
||||
@ -361,7 +361,7 @@ end
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_153015(context, evt)
|
||||
-- 判断是gadgetid 124006 option_id 31
|
||||
ScriptLib.PrintLog(context, "Reachpoint_action : "..evt.param1)
|
||||
ScriptLib.PrintLog("Reachpoint_action : "..evt.param1)
|
||||
UpdateTeleportState(context)
|
||||
return 0
|
||||
end
|
@ -18,7 +18,7 @@ function GetNextPath(context)
|
||||
local path = {}
|
||||
local index = ScriptLib.GetGroupVariableValue(context,"nextRouteIndex")
|
||||
local stoppoint = defs.pointInfo[index]
|
||||
ScriptLib.PrintLog(context, "stop point : "..stoppoint)
|
||||
ScriptLib.PrintLog("stop point : "..stoppoint)
|
||||
local currentNodeIndex = ScriptLib.GetGroupVariableValue(context,"currentPathNodeIndex")
|
||||
for i=currentNodeIndex + 1,stoppoint do
|
||||
table.insert(path,i)
|
||||
@ -28,7 +28,7 @@ end
|
||||
|
||||
|
||||
function MovePlatform(context)
|
||||
ScriptLib.PrintLog(context, "platform to move")
|
||||
ScriptLib.PrintLog("platform to move")
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -36,7 +36,7 @@ function MovePlatform(context)
|
||||
|
||||
|
||||
ScriptLib.SetPlatformPointArray(context, defs.gadget_thunderThelfID, defs.pointarray_ID, GetNextPath(context), { route_type = 0 })
|
||||
ScriptLib.PrintLog(context, "platform to move : start platform")
|
||||
ScriptLib.PrintLog("platform to move : start platform")
|
||||
return 0
|
||||
end
|
||||
|
||||
@ -160,7 +160,7 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_157004(context, evt)
|
||||
ScriptLib.PrintLog(context, "Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
ScriptLib.PrintLog("Reach Point : ".. " configID = "..evt.param1 .. ", pointarray_ID = "..evt.param2..", pointID = "..evt.param3)
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isMoving", 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
@ -182,12 +182,12 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_AVATAR_NEAR_PLATFORM_157005(context, evt)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".. evt.param1.." | RouteID = " .. evt.param2 .. " | Point = ".. evt.param3)
|
||||
if defs.gadget_thunderThelfID ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
local state = ScriptLib.GetGadgetStateByConfigId(context, defs.group_ID, defs.gadget_thunderThelfID)
|
||||
ScriptLib.PrintLog(context, "Near Platform condition : ".." State = "..state)
|
||||
ScriptLib.PrintLog("Near Platform condition : ".." State = "..state)
|
||||
if state == 201 then
|
||||
return false
|
||||
end
|
||||
|
188
Resources/Scripts/Scene/1/scene1_group111101306.lua
Normal file
188
Resources/Scripts/Scene/1/scene1_group111101306.lua
Normal file
@ -0,0 +1,188 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101306
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 306002, monster_id = 21020202, pos = { x = 2227.430, y = 246.373, z = -1605.900 }, rot = { x = 0.000, y = 307.370, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 306003, monster_id = 21020202, pos = { x = 2221.600, y = 245.775, z = -1607.889 }, rot = { x = 0.000, y = 0.674, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 306001, gadget_id = 70350082, pos = { x = 2223.109, y = 245.500, z = -1603.901 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 306004, gadget_id = 70211021, pos = { x = 2224.401, y = 245.926, z = -1605.497 }, rot = { x = 0.000, y = 346.910, z = 0.000 }, level = 11, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true },
|
||||
{ config_id = 306005, gadget_id = 70950145, pos = { x = 2223.087, y = 245.782, z = -1603.992 }, rot = { x = 7.673, y = 359.785, z = 356.801 }, level = 1, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1306006, name = "GADGET_CREATE_306006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_306006", action = "action_EVENT_GADGET_CREATE_306006", trigger_count = 0 },
|
||||
{ config_id = 1306007, name = "SELECT_OPTION_306007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_306007", action = "action_EVENT_SELECT_OPTION_306007", trigger_count = 0 },
|
||||
{ config_id = 1306008, name = "CHALLENGE_SUCCESS_306008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_306008", trigger_count = 0 },
|
||||
{ config_id = 1306009, name = "CHALLENGE_FAIL_306009", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_306009", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 306001, 306005 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_CREATE_306006", "SELECT_OPTION_306007", "CHALLENGE_SUCCESS_306008", "CHALLENGE_FAIL_306009" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 306002, 306003 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_306006(context, evt)
|
||||
if 306005 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_306006(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101306, 306005, {177}) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_306007(context, evt)
|
||||
-- 判断是gadgetid 306005 option_id 177
|
||||
if 306005 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 177 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_306007(context, evt)
|
||||
-- 创建编号为180(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 60, 111101306, 2, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101306, 2)
|
||||
|
||||
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
|
||||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 306005 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 306001 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 306001, GadgetState.GearStart) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_306008(context, evt)
|
||||
-- 将configid为 306001 的物件更改为状态 GadgetState.GearStop
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 306001, GadgetState.GearStop) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为306004的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 306004 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_306009(context, evt)
|
||||
-- 将configid为 306001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 306001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为306005的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 306005 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 删除suite2的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101306, 2)
|
||||
|
||||
return 0
|
||||
end
|
96
Resources/Scripts/Scene/1/scene1_group111101307.lua
Normal file
96
Resources/Scripts/Scene/1/scene1_group111101307.lua
Normal file
@ -0,0 +1,96 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101307
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 307001, monster_id = 21010101, pos = { x = 2242.630, y = 246.971, z = -1605.809 }, rot = { x = 0.000, y = 4.544, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 307002, gadget_id = 70310001, pos = { x = 2246.902, y = 246.204, z = -1604.149 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 307003, gadget_id = 70211021, pos = { x = 2240.577, y = 248.448, z = -1609.331 }, rot = { x = 357.865, y = 359.973, z = 1.471 }, level = 11, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1307004, name = "ANY_MONSTER_DIE_307004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_307004", action = "action_EVENT_ANY_MONSTER_DIE_307004" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 307001 },
|
||||
gadgets = { 307002, 307003 },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_307004" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_307004(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_307004(context, evt)
|
||||
-- 将configid为 307003 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 307003, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
219
Resources/Scripts/Scene/1/scene1_group111101308.lua
Normal file
219
Resources/Scripts/Scene/1/scene1_group111101308.lua
Normal file
@ -0,0 +1,219 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101308
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 308003, monster_id = 21010101, pos = { x = 2211.540, y = 243.005, z = -1563.711 }, rot = { x = 0.000, y = 123.508, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308004, monster_id = 21010101, pos = { x = 2209.078, y = 242.618, z = -1562.873 }, rot = { x = 0.000, y = 308.782, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308005, monster_id = 21010101, pos = { x = 2207.590, y = 242.285, z = -1564.094 }, rot = { x = 0.000, y = 308.782, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308006, monster_id = 21010101, pos = { x = 2207.080, y = 242.471, z = -1566.132 }, rot = { x = 0.000, y = 308.782, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308007, monster_id = 21010101, pos = { x = 2205.089, y = 242.398, z = -1566.221 }, rot = { x = 0.000, y = 274.538, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308008, monster_id = 21010101, pos = { x = 2208.372, y = 242.441, z = -1561.163 }, rot = { x = 0.000, y = 354.979, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308009, monster_id = 21010101, pos = { x = 2205.718, y = 242.122, z = -1563.122 }, rot = { x = 0.000, y = 118.431, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308010, monster_id = 21010101, pos = { x = 2206.311, y = 242.345, z = -1561.098 }, rot = { x = 0.000, y = 42.043, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308011, monster_id = 21010101, pos = { x = 2204.218, y = 242.188, z = -1563.753 }, rot = { x = 0.000, y = 42.043, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 308012, monster_id = 21020101, pos = { x = 2210.729, y = 242.934, z = -1561.245 }, rot = { x = 0.000, y = 242.743, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 308001, gadget_id = 70350082, pos = { x = 2209.430, y = 242.647, z = -1567.688 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 308002, gadget_id = 70360001, pos = { x = 2209.420, y = 243.666, z = -1567.685 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 308013, gadget_id = 70211001, pos = { x = 2211.528, y = 242.721, z = -1566.698 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1308014, name = "GADGET_CREATE_308014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_308014", action = "action_EVENT_GADGET_CREATE_308014", trigger_count = 0 },
|
||||
{ config_id = 1308015, name = "SELECT_OPTION_308015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_308015", action = "action_EVENT_SELECT_OPTION_308015", trigger_count = 0 },
|
||||
{ config_id = 1308016, name = "CHALLENGE_SUCCESS_308016", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_308016", trigger_count = 0 },
|
||||
{ config_id = 1308017, name = "CHALLENGE_FAIL_308017", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_308017", trigger_count = 0 },
|
||||
{ config_id = 1308018, name = "GADGET_STATE_CHANGE_308018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_308018", action = "action_EVENT_GADGET_STATE_CHANGE_308018" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "chest", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 308001, 308002 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_CREATE_308014", "SELECT_OPTION_308015", "CHALLENGE_SUCCESS_308016", "CHALLENGE_FAIL_308017", "GADGET_STATE_CHANGE_308018" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 308003, 308004, 308005, 308006, 308007, 308008, 308009, 308010, 308011, 308012 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_308014(context, evt)
|
||||
if 308002 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_308014(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101308, 308002, {177}) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_308015(context, evt)
|
||||
-- 判断是gadgetid 308002 option_id 177
|
||||
if 308002 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 177 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_308015(context, evt)
|
||||
-- 创建编号为180(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 120, 111101308, 10, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101308, 2)
|
||||
|
||||
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
|
||||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 308002 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 308001 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 308001, GadgetState.GearStart) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_308016(context, evt)
|
||||
-- 将configid为 308001 的物件更改为状态 GadgetState.GearStop
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 308001, GadgetState.GearStop) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为308013的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 308013 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_308017(context, evt)
|
||||
-- 将configid为 308001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 308001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为308002的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 308002 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 删除suite2的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101308, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_308018(context, evt)
|
||||
-- 检测config_id为308013的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 308013 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_308018(context, evt)
|
||||
-- 将本组内变量名为 "chest1" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "chest1", 1, 111101315) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
348
Resources/Scripts/Scene/1/scene1_group111101309.lua
Normal file
348
Resources/Scripts/Scene/1/scene1_group111101309.lua
Normal file
@ -0,0 +1,348 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101309
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 309001, gadget_id = 70310001, pos = { x = 2322.294, y = 276.418, z = -1670.957 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 309002, gadget_id = 70310001, pos = { x = 2318.311, y = 275.009, z = -1670.861 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 309003, gadget_id = 70310001, pos = { x = 2317.375, y = 273.987, z = -1664.707 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 309004, gadget_id = 70310001, pos = { x = 2321.240, y = 275.016, z = -1662.876 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 309005, gadget_id = 70310001, pos = { x = 2325.489, y = 276.361, z = -1668.015 }, rot = { x = 0.000, y = 170.910, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 309006, gadget_id = 70211101, pos = { x = 2320.655, y = 275.185, z = -1665.538 }, rot = { x = 0.000, y = 162.607, z = 0.000 }, level = 11, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
-- 以下五个代表:火把点燃时+1
|
||||
{ config_id = 1309007, name = "GADGET_STATE_CHANGE_309007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309007", action = "action_EVENT_GADGET_STATE_CHANGE_309007", trigger_count = 0 },
|
||||
{ config_id = 1309008, name = "GADGET_STATE_CHANGE_309008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309008", action = "action_EVENT_GADGET_STATE_CHANGE_309008", trigger_count = 0 },
|
||||
{ config_id = 1309009, name = "GADGET_STATE_CHANGE_309009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309009", action = "action_EVENT_GADGET_STATE_CHANGE_309009", trigger_count = 0 },
|
||||
{ config_id = 1309010, name = "GADGET_STATE_CHANGE_309010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309010", action = "action_EVENT_GADGET_STATE_CHANGE_309010", trigger_count = 0 },
|
||||
{ config_id = 1309011, name = "GADGET_STATE_CHANGE_309011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309011", action = "action_EVENT_GADGET_STATE_CHANGE_309011", trigger_count = 0 },
|
||||
{ config_id = 1309012, name = "VARIABLE_CHANGE_309012", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_309012", action = "action_EVENT_VARIABLE_CHANGE_309012", trigger_count = 0 },
|
||||
-- 以下五个代表:火把熄灭时variable-1
|
||||
{ config_id = 1309013, name = "GADGET_STATE_CHANGE_309013", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309013", action = "action_EVENT_GADGET_STATE_CHANGE_309013", trigger_count = 0 },
|
||||
{ config_id = 1309014, name = "GADGET_STATE_CHANGE_309014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309014", action = "action_EVENT_GADGET_STATE_CHANGE_309014", trigger_count = 0 },
|
||||
{ config_id = 1309015, name = "GADGET_STATE_CHANGE_309015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309015", action = "action_EVENT_GADGET_STATE_CHANGE_309015", trigger_count = 0 },
|
||||
{ config_id = 1309016, name = "GADGET_STATE_CHANGE_309016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309016", action = "action_EVENT_GADGET_STATE_CHANGE_309016", trigger_count = 0 },
|
||||
{ config_id = 1309017, name = "GADGET_STATE_CHANGE_309017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309017", action = "action_EVENT_GADGET_STATE_CHANGE_309017", trigger_count = 0 },
|
||||
-- 宝箱开启,方碑解锁
|
||||
{ config_id = 1309018, name = "GADGET_STATE_CHANGE_309018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_309018", action = "action_EVENT_GADGET_STATE_CHANGE_309018" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "count", value = 0, no_refresh = true },
|
||||
{ config_id = 2, name = "chest", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 309001, 309002, 309003, 309004, 309005 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_309007", "GADGET_STATE_CHANGE_309008", "GADGET_STATE_CHANGE_309009", "GADGET_STATE_CHANGE_309010", "GADGET_STATE_CHANGE_309011", "VARIABLE_CHANGE_309012", "GADGET_STATE_CHANGE_309013", "GADGET_STATE_CHANGE_309014", "GADGET_STATE_CHANGE_309015", "GADGET_STATE_CHANGE_309016", "GADGET_STATE_CHANGE_309017", "GADGET_STATE_CHANGE_309018" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309007(context, evt)
|
||||
-- 检测config_id为309001的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 309001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309007(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309008(context, evt)
|
||||
-- 检测config_id为309002的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 309002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309008(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309009(context, evt)
|
||||
-- 检测config_id为309003的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 309003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309009(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309010(context, evt)
|
||||
-- 检测config_id为309004的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 309004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309010(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309011(context, evt)
|
||||
-- 检测config_id为309005的gadget是否从GadgetState.Default变为GadgetState.GearStart
|
||||
if 309005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309011(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", 1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_309012(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"count"为5
|
||||
if ScriptLib.GetGroupVariableValueByGroup(context, "count", 111101309) ~= 5 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_309012(context, evt)
|
||||
-- 创建id为309006的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 309006 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309013(context, evt)
|
||||
-- 检测config_id为309001的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 309001 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309013(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", -1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309014(context, evt)
|
||||
-- 检测config_id为309002的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 309002 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309014(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", -1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309015(context, evt)
|
||||
-- 检测config_id为309003的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 309003 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309015(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", -1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309016(context, evt)
|
||||
-- 检测config_id为309004的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 309004 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309016(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", -1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309017(context, evt)
|
||||
-- 检测config_id为309005的gadget是否从GadgetState.GearStart变为GadgetState.Default
|
||||
if 309005 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309017(context, evt)
|
||||
-- 针对当前group内变量名为 "count" 的变量,进行修改,变化值为 -1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "count", -1, 111101309) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_309018(context, evt)
|
||||
-- 检测config_id为309006的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 309006 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_309018(context, evt)
|
||||
-- 将本组内变量名为 "chest" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "chest", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
185
Resources/Scripts/Scene/1/scene1_group111101310.lua
Normal file
185
Resources/Scripts/Scene/1/scene1_group111101310.lua
Normal file
@ -0,0 +1,185 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101310
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 310001, gadget_id = 70900039, pos = { x = 2230.382, y = 249.302, z = -1621.237 }, rot = { x = 10.589, y = 0.414, z = 4.467 }, level = 1, persistent = true },
|
||||
{ config_id = 310002, gadget_id = 70900039, pos = { x = 2224.588, y = 249.305, z = -1621.194 }, rot = { x = 8.880, y = 0.070, z = 0.895 }, level = 1, persistent = true },
|
||||
{ config_id = 310003, gadget_id = 70900039, pos = { x = 2229.789, y = 248.479, z = -1616.523 }, rot = { x = 6.242, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 310004, gadget_id = 70900039, pos = { x = 2224.668, y = 248.486, z = -1616.967 }, rot = { x = 14.035, y = 0.110, z = 0.895 }, level = 1, persistent = true },
|
||||
{ config_id = 310010, gadget_id = 70211001, pos = { x = 2227.034, y = 249.088, z = -1619.340 }, rot = { x = 5.634, y = 359.903, z = 0.865 }, level = 11, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1310005, name = "GADGET_STATE_CHANGE_310005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_310005", action = "action_EVENT_GADGET_STATE_CHANGE_310005", trigger_count = 0 },
|
||||
{ config_id = 1310006, name = "GADGET_STATE_CHANGE_310006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_310006", action = "action_EVENT_GADGET_STATE_CHANGE_310006" },
|
||||
{ config_id = 1310007, name = "GADGET_STATE_CHANGE_310007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_310007", action = "action_EVENT_GADGET_STATE_CHANGE_310007" },
|
||||
{ config_id = 1310008, name = "GADGET_STATE_CHANGE_310008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_310008", action = "action_EVENT_GADGET_STATE_CHANGE_310008" },
|
||||
{ config_id = 1310009, name = "VARIABLE_CHANGE_310009", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_310009", action = "action_EVENT_VARIABLE_CHANGE_310009", trigger_count = 4 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "Count", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 310001, 310002, 310003, 310004 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_310005", "GADGET_STATE_CHANGE_310006", "GADGET_STATE_CHANGE_310007", "GADGET_STATE_CHANGE_310008", "VARIABLE_CHANGE_310009" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_310005(context, evt)
|
||||
if 310001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_310005(context, evt)
|
||||
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_310006(context, evt)
|
||||
if 310002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_310006(context, evt)
|
||||
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_310007(context, evt)
|
||||
if 310003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_310007(context, evt)
|
||||
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_310008(context, evt)
|
||||
if 310004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_310008(context, evt)
|
||||
-- 针对当前group内变量名为 "Count" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Count", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_310009(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"Count"为4
|
||||
if ScriptLib.GetGroupVariableValue(context, "Count") ~= 4 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_310009(context, evt)
|
||||
-- 创建id为310010的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 310010 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
74
Resources/Scripts/Scene/1/scene1_group111101311.lua
Normal file
74
Resources/Scripts/Scene/1/scene1_group111101311.lua
Normal file
@ -0,0 +1,74 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101311
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 311001, monster_id = 21020201, pos = { x = 2179.357, y = 247.821, z = -1654.943 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" },
|
||||
{ config_id = 311003, monster_id = 21010501, pos = { x = 2185.107, y = 249.120, z = -1646.241 }, rot = { x = 0.000, y = 19.536, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 311004, monster_id = 21010501, pos = { x = 2175.079, y = 247.054, z = -1647.837 }, rot = { x = 0.000, y = 87.313, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 311001, 311003, 311004 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
144
Resources/Scripts/Scene/1/scene1_group111101312.lua
Normal file
144
Resources/Scripts/Scene/1/scene1_group111101312.lua
Normal file
@ -0,0 +1,144 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101312
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 312001, monster_id = 21010501, pos = { x = 2174.850, y = 256.330, z = -1705.635 }, rot = { x = 0.000, y = 74.900, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", pose_id = 9013 },
|
||||
{ config_id = 312004, monster_id = 21020201, pos = { x = 2170.636, y = 256.285, z = -1711.964 }, rot = { x = 0.000, y = 358.756, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", pose_id = 401 },
|
||||
{ config_id = 312010, monster_id = 21020101, pos = { x = 2172.584, y = 256.012, z = -1701.960 }, rot = { x = 0.000, y = 220.914, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" },
|
||||
{ config_id = 312011, monster_id = 21010101, pos = { x = 2166.253, y = 255.217, z = -1700.730 }, rot = { x = 0.000, y = 223.901, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 312012, monster_id = 21010101, pos = { x = 2169.344, y = 255.496, z = -1699.113 }, rot = { x = 0.000, y = 148.808, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 312005, gadget_id = 70310001, pos = { x = 2175.794, y = 256.639, z = -1708.945 }, rot = { x = 0.000, y = 26.459, z = 0.000 }, level = 1 },
|
||||
{ config_id = 312006, gadget_id = 70220013, pos = { x = 2167.941, y = 256.134, z = -1713.329 }, rot = { x = 0.000, y = 278.657, z = 0.000 }, level = 1 },
|
||||
{ config_id = 312007, gadget_id = 70220013, pos = { x = 2173.716, y = 257.091, z = -1715.801 }, rot = { x = 0.000, y = 3.677, z = 0.000 }, level = 1 },
|
||||
{ config_id = 312008, gadget_id = 70290443, pos = { x = 2170.929, y = 256.233, z = -1710.073 }, rot = { x = 0.000, y = 16.006, z = 0.000 }, level = 1 },
|
||||
{ config_id = 312009, gadget_id = 70211002, pos = { x = 2172.688, y = 256.416, z = -1709.298 }, rot = { x = 3.157, y = 356.106, z = 6.899 }, level = 11, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1312013, name = "MONSTER_BATTLE_312013", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "", action = "action_EVENT_MONSTER_BATTLE_312013", trigger_count = 0 },
|
||||
{ config_id = 1312014, name = "ANY_MONSTER_DIE_312014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_312014", action = "action_EVENT_ANY_MONSTER_DIE_312014" },
|
||||
{ config_id = 1312015, name = "GADGET_STATE_CHANGE_312015", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_312015", action = "action_EVENT_GADGET_STATE_CHANGE_312015" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "chest", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 312001, 312004 },
|
||||
gadgets = { 312005, 312006, 312007, 312008, 312009 },
|
||||
regions = { },
|
||||
triggers = { "MONSTER_BATTLE_312013", "ANY_MONSTER_DIE_312014", "GADGET_STATE_CHANGE_312015" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 312010, 312011, 312012 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_MONSTER_BATTLE_312013(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101312, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_312014(context, evt)
|
||||
-- 判断指定group组剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCountByGroupId(context, 111101312) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_312014(context, evt)
|
||||
-- 将configid为 312009 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 312009, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_312015(context, evt)
|
||||
-- 检测config_id为312009的gadget是否从GadgetState.Default变为GadgetState.ChestOpened
|
||||
if 312009 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 or GadgetState.Default ~= evt.param3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_312015(context, evt)
|
||||
-- 将本组内变量名为 "chest" 的变量设置为 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "chest", 1) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
93
Resources/Scripts/Scene/1/scene1_group111101314.lua
Normal file
93
Resources/Scripts/Scene/1/scene1_group111101314.lua
Normal file
@ -0,0 +1,93 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101314
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 314001, monster_id = 21010401, pos = { x = 2241.633, y = 263.066, z = -1701.217 }, rot = { x = 0.000, y = 180.507, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 314002, monster_id = 21010401, pos = { x = 2241.993, y = 265.000, z = -1709.774 }, rot = { x = 0.000, y = 284.494, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 314003, monster_id = 20011101, pos = { x = 2239.524, y = 263.438, z = -1704.891 }, rot = { x = 0.000, y = 203.564, z = 0.000 }, level = 1, drop_tag = "大史莱姆" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 314004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2240.229, y = 263.773, z = -1705.431 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1314004, name = "ENTER_REGION_314004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_314004" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 314004 },
|
||||
triggers = { "ENTER_REGION_314004" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 314001, 314002, 314003 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_314004(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101314, 2)
|
||||
|
||||
return 0
|
||||
end
|
304
Resources/Scripts/Scene/1/scene1_group111101315.lua
Normal file
304
Resources/Scripts/Scene/1/scene1_group111101315.lua
Normal file
@ -0,0 +1,304 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101315
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 315009, monster_id = 21010401, pos = { x = 2327.536, y = 279.838, z = -1687.052 }, rot = { x = 0.000, y = 305.876, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 315010, monster_id = 21010401, pos = { x = 2324.214, y = 280.306, z = -1690.686 }, rot = { x = 0.000, y = 325.363, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 315011, monster_id = 21010401, pos = { x = 2318.951, y = 280.339, z = -1691.175 }, rot = { x = 0.000, y = 320.836, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 315012, monster_id = 21020101, pos = { x = 2326.389, y = 280.715, z = -1692.098 }, rot = { x = 0.000, y = 309.212, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" },
|
||||
{ config_id = 315013, monster_id = 21011001, pos = { x = 2327.849, y = 280.437, z = -1690.657 }, rot = { x = 0.000, y = 334.797, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 315001, gadget_id = 70900039, pos = { x = 2329.096, y = 279.952, z = -1680.250 }, rot = { x = 0.000, y = 295.612, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 315002, gadget_id = 70900039, pos = { x = 2323.658, y = 279.651, z = -1684.763 }, rot = { x = 0.000, y = 175.442, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 315003, gadget_id = 70900039, pos = { x = 2316.583, y = 279.651, z = -1687.208 }, rot = { x = 0.000, y = 175.442, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 315004, gadget_id = 70211012, pos = { x = 2324.313, y = 279.881, z = -1688.237 }, rot = { x = 350.757, y = 158.938, z = 0.660 }, level = 11, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
-- 方碑激活,变量+1
|
||||
{ config_id = 1315005, name = "GADGET_STATE_CHANGE_315005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_315005", action = "action_EVENT_GADGET_STATE_CHANGE_315005" },
|
||||
-- 方碑激活,变量+1
|
||||
{ config_id = 1315006, name = "GADGET_STATE_CHANGE_315006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_315006", action = "action_EVENT_GADGET_STATE_CHANGE_315006" },
|
||||
-- 方碑激活,变量+1
|
||||
{ config_id = 1315007, name = "GADGET_STATE_CHANGE_315007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_315007", action = "action_EVENT_GADGET_STATE_CHANGE_315007" },
|
||||
-- 三个方碑激活,创建怪物
|
||||
{ config_id = 1315008, name = "VARIABLE_CHANGE_315008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_315008", action = "action_EVENT_VARIABLE_CHANGE_315008" },
|
||||
{ config_id = 1315014, name = "ANY_MONSTER_DIE_315014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_315014", action = "action_EVENT_ANY_MONSTER_DIE_315014" },
|
||||
{ config_id = 1315015, name = "ANY_MONSTER_DIE_315015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_315015", action = "action_EVENT_ANY_MONSTER_DIE_315015" },
|
||||
-- 限时挑战成功,方碑1解锁
|
||||
{ config_id = 1315016, name = "VARIABLE_CHANGE_315016", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_315016", action = "action_EVENT_VARIABLE_CHANGE_315016" },
|
||||
-- 火把解谜成功,方碑2解锁
|
||||
{ config_id = 1315017, name = "VARIABLE_CHANGE_315017", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_315017", action = "action_EVENT_VARIABLE_CHANGE_315017" },
|
||||
-- 营地挑战成功,方碑3解锁
|
||||
{ config_id = 1315018, name = "VARIABLE_CHANGE_315018", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_315018", action = "action_EVENT_VARIABLE_CHANGE_315018" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "fangbei", value = 0, no_refresh = true },
|
||||
{ config_id = 2, name = "chest1", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 315001, 315002, 315003, 315004 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_315005", "GADGET_STATE_CHANGE_315006", "GADGET_STATE_CHANGE_315007", "VARIABLE_CHANGE_315008", "VARIABLE_CHANGE_315016", "VARIABLE_CHANGE_315017", "VARIABLE_CHANGE_315018" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 315009, 315010, 315011 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_315014" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 315012, 315013 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_315015" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_315005(context, evt)
|
||||
if 315001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_315005(context, evt)
|
||||
-- 针对当前group内变量名为 "fangbei" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "fangbei", 1, 111101315) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_315006(context, evt)
|
||||
if 315002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_315006(context, evt)
|
||||
-- 针对当前group内变量名为 "fangbei" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "fangbei", 1, 111101315) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_315007(context, evt)
|
||||
if 315003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_315007(context, evt)
|
||||
-- 针对当前group内变量名为 "fangbei" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "fangbei", 1, 111101315) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_315008(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"fangbei"为3
|
||||
if ScriptLib.GetGroupVariableValue(context, "fangbei") ~= 3 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_315008(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101315, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_315014(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_315014(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101315, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_315015(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_315015(context, evt)
|
||||
-- 改变指定group组111101315中, configid为315004的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101315, 315004, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_315016(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"chest1"为1
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest1") ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_315016(context, evt)
|
||||
-- 将configid为 315001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 315001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_315017(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"chest"为1
|
||||
if ScriptLib.GetGroupVariableValueByGroup(context, "chest", 111101309) ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_315017(context, evt)
|
||||
-- 将configid为 315002 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 315002, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_315018(context, evt)
|
||||
if evt.param1 == evt.param2 then return false end
|
||||
|
||||
-- 判断变量"chest"为1
|
||||
if ScriptLib.GetGroupVariableValueByGroup(context, "chest", 111101312) ~= 1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_315018(context, evt)
|
||||
-- 将configid为 315003 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 315003, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
250
Resources/Scripts/Scene/1/scene1_group111101316.lua
Normal file
250
Resources/Scripts/Scene/1/scene1_group111101316.lua
Normal file
@ -0,0 +1,250 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101316
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 316002, monster_id = 21010101, pos = { x = 2246.136, y = 244.120, z = -1578.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316003, monster_id = 21010101, pos = { x = 2247.987, y = 244.120, z = -1580.141 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316004, monster_id = 21010101, pos = { x = 2249.814, y = 244.120, z = -1579.179 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316005, monster_id = 21020201, pos = { x = 2241.285, y = 244.120, z = -1571.255 }, rot = { x = 0.000, y = 101.392, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316006, monster_id = 21010301, pos = { x = 2240.576, y = 244.120, z = -1573.988 }, rot = { x = 0.000, y = 87.646, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316007, monster_id = 21010301, pos = { x = 2244.301, y = 244.120, z = -1570.071 }, rot = { x = 0.000, y = 142.145, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316008, monster_id = 21010601, pos = { x = 2252.385, y = 244.205, z = -1565.784 }, rot = { x = 0.000, y = 214.177, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316010, monster_id = 21010401, pos = { x = 2242.226, y = 244.120, z = -1575.563 }, rot = { x = 0.000, y = 69.364, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316011, monster_id = 21010401, pos = { x = 2257.405, y = 244.442, z = -1569.102 }, rot = { x = 0.000, y = 248.124, z = 0.000 }, level = 1, drop_id = 1000100 },
|
||||
{ config_id = 316012, monster_id = 21020201, pos = { x = 2258.701, y = 244.798, z = -1563.562 }, rot = { x = 0.000, y = 231.953, z = 0.000 }, level = 1, drop_id = 1000100 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 316001, gadget_id = 70350082, pos = { x = 2248.952, y = 243.742, z = -1573.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 316013, gadget_id = 70950145, pos = { x = 2248.955, y = 244.813, z = -1573.912 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
|
||||
{ config_id = 316015, gadget_id = 70520001, pos = { x = 2253.379, y = 244.120, z = -1576.109 }, rot = { x = 0.000, y = 310.620, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
|
||||
{ config_id = 316019, gadget_id = 70211021, pos = { x = 2248.987, y = 243.758, z = -1571.244 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1316009, name = "GADGET_CREATE_316009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_316009", action = "action_EVENT_GADGET_CREATE_316009", trigger_count = 0 },
|
||||
{ config_id = 1316014, name = "SELECT_OPTION_316014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_316014", action = "action_EVENT_SELECT_OPTION_316014", trigger_count = 0 },
|
||||
{ config_id = 1316016, name = "ANY_MONSTER_DIE_316016", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_316016", action = "action_EVENT_ANY_MONSTER_DIE_316016" },
|
||||
{ config_id = 1316017, name = "GADGET_STATE_CHANGE_316017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_316017", action = "action_EVENT_GADGET_STATE_CHANGE_316017" },
|
||||
{ config_id = 1316018, name = "CHALLENGE_SUCCESS_316018", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_316018" },
|
||||
{ config_id = 1316020, name = "CHALLENGE_FAIL_316020", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_316020" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "MonsterDeathCount", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 316001, 316013, 316015 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_CREATE_316009", "SELECT_OPTION_316014", "GADGET_STATE_CHANGE_316017", "CHALLENGE_SUCCESS_316018", "CHALLENGE_FAIL_316020" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 316007, 316008, 316010, 316011, 316012 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_316016" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 316002, 316003, 316004, 316005, 316006 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_316009(context, evt)
|
||||
if 316013 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_316009(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101316, 316013, {177}) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_316014(context, evt)
|
||||
-- 判断是gadgetid 316013 option_id 177
|
||||
if 316013 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
if 177 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_316014(context, evt)
|
||||
-- 创建编号为180(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 120, 111101316, 10, 0) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101316, 2)
|
||||
|
||||
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
|
||||
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 316013 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 将configid为 316001 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 316001, GadgetState.GearStart) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_316016(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_316016(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101316, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_316017(context, evt)
|
||||
if 316019 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_316017(context, evt)
|
||||
-- 改变指定group组111101321中, configid为321001的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101321, 321001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_316018(context, evt)
|
||||
-- 将configid为 316001 的物件更改为状态 GadgetState.GearStop
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 316001, GadgetState.GearStop) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创建id为316019的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 316019 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_316020(context, evt)
|
||||
-- 创建id为316013的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 316013 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 316001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 316001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 删除suite2的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101316, 2)
|
||||
|
||||
-- 删除suite3的所有内容
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 111101316, 3)
|
||||
|
||||
return 0
|
||||
end
|
74
Resources/Scripts/Scene/1/scene1_group111101317.lua
Normal file
74
Resources/Scripts/Scene/1/scene1_group111101317.lua
Normal file
@ -0,0 +1,74 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101317
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 317001, monster_id = 21010101, pos = { x = 2182.793, y = 246.679, z = -1591.576 }, rot = { x = 0.000, y = 116.471, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 317002, monster_id = 21010101, pos = { x = 2198.797, y = 243.554, z = -1591.555 }, rot = { x = 0.000, y = 185.277, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 317003, monster_id = 21010101, pos = { x = 2186.786, y = 246.790, z = -1605.302 }, rot = { x = 0.000, y = 52.024, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 317001, 317002, 317003 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
151
Resources/Scripts/Scene/1/scene1_group111101318.lua
Normal file
151
Resources/Scripts/Scene/1/scene1_group111101318.lua
Normal file
@ -0,0 +1,151 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101318
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 318002, monster_id = 21010301, pos = { x = 2241.908, y = 270.209, z = -1745.283 }, rot = { x = 0.000, y = 272.263, z = 0.000 }, level = 1, drop_tag = "丘丘人", pose_id = 9003 },
|
||||
{ config_id = 318003, monster_id = 21010101, pos = { x = 2236.898, y = 270.162, z = -1745.518 }, rot = { x = 0.000, y = 74.798, z = 0.000 }, level = 1, drop_tag = "丘丘人", pose_id = 9003 },
|
||||
{ config_id = 318004, monster_id = 21010101, pos = { x = 2239.032, y = 269.933, z = -1743.709 }, rot = { x = 0.000, y = 175.157, z = 0.000 }, level = 1, drop_tag = "丘丘人", pose_id = 9003 },
|
||||
{ config_id = 318006, monster_id = 21010401, pos = { x = 2248.136, y = 275.409, z = -1740.601 }, rot = { x = 0.000, y = 309.060, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
{ config_id = 318015, monster_id = 21010601, pos = { x = 2231.189, y = 270.908, z = -1754.333 }, rot = { x = 0.000, y = 32.966, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 318016, monster_id = 21010601, pos = { x = 2229.693, y = 270.005, z = -1750.861 }, rot = { x = 0.000, y = 32.966, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 318017, monster_id = 21020101, pos = { x = 2231.654, y = 270.189, z = -1749.942 }, rot = { x = 0.000, y = 32.966, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 318001, gadget_id = 70300107, pos = { x = 2239.124, y = 270.246, z = -1745.507 }, rot = { x = 8.004, y = 0.063, z = 0.895 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 318005, gadget_id = 70300090, pos = { x = 2248.263, y = 270.017, z = -1740.867 }, rot = { x = 2.540, y = 312.805, z = 358.276 }, level = 1 },
|
||||
{ config_id = 318007, gadget_id = 70220013, pos = { x = 2246.373, y = 270.424, z = -1745.444 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318008, gadget_id = 70220013, pos = { x = 2244.722, y = 270.432, z = -1746.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318009, gadget_id = 70220013, pos = { x = 2244.682, y = 270.123, z = -1744.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318010, gadget_id = 70220026, pos = { x = 2246.051, y = 270.226, z = -1743.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318011, gadget_id = 70300081, pos = { x = 2238.368, y = 270.970, z = -1751.242 }, rot = { x = 0.000, y = 93.181, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318012, gadget_id = 70220005, pos = { x = 2244.141, y = 270.040, z = -1743.796 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318013, gadget_id = 70220005, pos = { x = 2234.845, y = 270.455, z = -1748.900 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318014, gadget_id = 70220005, pos = { x = 2234.267, y = 270.380, z = -1748.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 318019, gadget_id = 70211012, pos = { x = 2238.818, y = 270.723, z = -1749.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 11, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1318018, name = "MONSTER_BATTLE_318018", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "", action = "action_EVENT_MONSTER_BATTLE_318018" },
|
||||
{ config_id = 1318020, name = "ANY_MONSTER_DIE_318020", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_318020", action = "action_EVENT_ANY_MONSTER_DIE_318020", trigger_count = 10 },
|
||||
{ config_id = 1318021, name = "GADGET_STATE_CHANGE_318021", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_318021", action = "action_EVENT_GADGET_STATE_CHANGE_318021" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "MonsterDeath_Count", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 318002, 318003, 318004, 318006 },
|
||||
gadgets = { 318001, 318005, 318007, 318008, 318009, 318010, 318011, 318012, 318013, 318014, 318019 },
|
||||
regions = { },
|
||||
triggers = { "MONSTER_BATTLE_318018", "GADGET_STATE_CHANGE_318021" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 318015, 318016, 318017 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_318020" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_MONSTER_BATTLE_318018(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101318, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_318020(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_318020(context, evt)
|
||||
-- 将configid为 318019 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 318019, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_318021(context, evt)
|
||||
if 318019 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_318021(context, evt)
|
||||
-- 改变指定group组111101321中, configid为321002的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101321, 321002, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
94
Resources/Scripts/Scene/1/scene1_group111101319.lua
Normal file
94
Resources/Scripts/Scene/1/scene1_group111101319.lua
Normal file
@ -0,0 +1,94 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101319
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 319002, monster_id = 22010201, pos = { x = 2246.634, y = 263.240, z = -1679.893 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "深渊法师" },
|
||||
{ config_id = 319003, monster_id = 22010201, pos = { x = 2250.468, y = 263.361, z = -1681.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "深渊法师" },
|
||||
{ config_id = 319004, monster_id = 21010701, pos = { x = 2249.617, y = 263.161, z = -1685.079 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 319005, monster_id = 21010701, pos = { x = 2243.160, y = 263.850, z = -1679.772 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 319001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 2249.875, y = 263.333, z = -1681.276 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1319001, name = "ENTER_REGION_319001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_319001" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 319001 },
|
||||
triggers = { "ENTER_REGION_319001" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 319002, 319003, 319004, 319005 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_319001(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101319, 2)
|
||||
|
||||
return 0
|
||||
end
|
136
Resources/Scripts/Scene/1/scene1_group111101320.lua
Normal file
136
Resources/Scripts/Scene/1/scene1_group111101320.lua
Normal file
@ -0,0 +1,136 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101320
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 320001, gadget_id = 70310001, pos = { x = 2308.040, y = 284.316, z = -1705.437 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 320002, gadget_id = 70310001, pos = { x = 2316.344, y = 284.243, z = -1708.376 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 320003, gadget_id = 70310001, pos = { x = 2314.501, y = 284.188, z = -1700.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 320004, gadget_id = 70310001, pos = { x = 2311.284, y = 285.700, z = -1710.937 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 320005, gadget_id = 70310001, pos = { x = 2320.250, y = 284.210, z = -1704.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 320007, gadget_id = 70211002, pos = { x = 2315.813, y = 284.244, z = -1704.204 }, rot = { x = 0.000, y = 60.851, z = 0.000 }, level = 11, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1320006, name = "GADGET_STATE_CHANGE_320006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_320006", action = "action_EVENT_GADGET_STATE_CHANGE_320006" },
|
||||
{ config_id = 1320008, name = "GADGET_STATE_CHANGE_320008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_320008", action = "action_EVENT_GADGET_STATE_CHANGE_320008" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ config_id = 1, name = "Fired", value = 0, no_refresh = true }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 320001, 320002, 320003, 320004, 320005, 320007 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_320006", "GADGET_STATE_CHANGE_320008" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_320006(context, evt)
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101320, 320001) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101320, 320002) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101320, 320003) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101320, 320004) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101320, 320005) then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_320006(context, evt)
|
||||
-- 将configid为 320007 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 320007, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_320008(context, evt)
|
||||
if 320007 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_320008(context, evt)
|
||||
-- 改变指定group组111101321中, configid为321003的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101321, 321003, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
165
Resources/Scripts/Scene/1/scene1_group111101321.lua
Normal file
165
Resources/Scripts/Scene/1/scene1_group111101321.lua
Normal file
@ -0,0 +1,165 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111101321
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 321005, monster_id = 21011202, pos = { x = 2352.309, y = 284.388, z = -1785.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 321006, monster_id = 21011202, pos = { x = 2350.208, y = 284.404, z = -1783.747 }, rot = { x = 0.000, y = 29.262, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 321007, monster_id = 21011202, pos = { x = 2354.410, y = 284.454, z = -1786.304 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 321008, monster_id = 21011202, pos = { x = 2347.597, y = 284.261, z = -1781.278 }, rot = { x = 0.000, y = 44.561, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
{ config_id = 321010, monster_id = 21020401, pos = { x = 2351.701, y = 284.370, z = -1785.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘岩盔王" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 321001, gadget_id = 70900039, pos = { x = 2353.099, y = 284.497, z = -1789.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 321002, gadget_id = 70900039, pos = { x = 2348.591, y = 284.803, z = -1786.256 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 321003, gadget_id = 70900039, pos = { x = 2343.681, y = 284.616, z = -1782.599 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
|
||||
{ config_id = 321011, gadget_id = 70211002, pos = { x = 2356.621, y = 284.400, z = -1789.607 }, rot = { x = 0.000, y = 327.879, z = 0.000 }, level = 11, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1321004, name = "GADGET_STATE_CHANGE_321004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_321004", action = "action_EVENT_GADGET_STATE_CHANGE_321004" },
|
||||
{ config_id = 1321009, name = "ANY_MONSTER_DIE_321009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_321009", action = "action_EVENT_ANY_MONSTER_DIE_321009" },
|
||||
{ config_id = 1321012, name = "ANY_MONSTER_DIE_321012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_321012", action = "action_EVENT_ANY_MONSTER_DIE_321012" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 321001, 321002, 321003, 321011 },
|
||||
regions = { },
|
||||
triggers = { "GADGET_STATE_CHANGE_321004" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 321005, 321006, 321007, 321008 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_321009" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 321010 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { "ANY_MONSTER_DIE_321012" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_321004(context, evt)
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101321, 321001) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101321, 321002) then
|
||||
return false
|
||||
end
|
||||
|
||||
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, 111101321, 321003) then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_321004(context, evt)
|
||||
-- 添加suite2的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101321, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_321009(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_321009(context, evt)
|
||||
-- 添加suite3的新内容
|
||||
ScriptLib.AddExtraGroupSuite(context, 111101321, 3)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_321012(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_321012(context, evt)
|
||||
-- 将configid为 321011 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 321011, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
@ -157,6 +157,7 @@ function action_EVENT_TIME_AXIS_PASS_14010(context, evt)
|
||||
ScriptLib.ChangeGroupVariableValue(context, "active_count", -1)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
@ -3,38 +3,10 @@ local base_info = {
|
||||
group_id = 111102046
|
||||
}
|
||||
|
||||
-- DEFS_MISCS
|
||||
local defs =
|
||||
{
|
||||
-- 对应数据表中的关卡id,暂时不用管,配了也没用
|
||||
levelId = 1,
|
||||
|
||||
-- 本轮对应的gallery id
|
||||
galleryId = 23099,
|
||||
|
||||
-- 开启挑战的场景物件id
|
||||
startId = 46002,
|
||||
|
||||
-- todo: 临时,挑战区域,进了区域之后加载操作台
|
||||
maxRegion = 46027,
|
||||
|
||||
-- 怪物资源包configs
|
||||
monsterPoolConfig = {
|
||||
pool_list = {35001},
|
||||
point_array_id = 0,
|
||||
point_id_list = {},
|
||||
affix_list = {},
|
||||
param = {total_count = 99, min_count = 1, max_count = 3, tag = 0, fill_time = 0, fill_count = 0, is_ordered = false, is_tag_bit_match = false},
|
||||
},
|
||||
|
||||
-- todo:临时,从1-6种选4个数字,一定是4个不同的数字,否则会报错
|
||||
sgvIdxTable = {1, 2, 3, 4},
|
||||
|
||||
-- buff持续时间,通常不需要修改
|
||||
buffDuration = 15,
|
||||
|
||||
-- 每轮中每阶段的最大时间(一共有3个阶段,总时长为3*30s = 90s),通常不用改
|
||||
stageMaxDuration = 30,
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
target_region_config_id = 46018,
|
||||
related_big_region_config_id = 46027
|
||||
}
|
||||
|
||||
--================================================================
|
||||
@ -45,19 +17,6 @@ local defs =
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
[46001] = { config_id = 46001, monster_id = 21010101, pos = { x = 1431.202, y = 268.815, z = -1764.127 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
[46003] = { config_id = 46003, monster_id = 21010101, pos = { x = 1410.350, y = 269.574, z = -1760.761 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
|
||||
[46004] = { config_id = 46004, monster_id = 20010501, pos = { x = 1422.626, y = 267.732, z = -1754.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
|
||||
[46005] = { config_id = 46005, monster_id = 20010501, pos = { x = 1416.508, y = 270.035, z = -1772.519 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
|
||||
[46006] = { config_id = 46006, monster_id = 21020201, pos = { x = 1421.087, y = 270.669, z = -1774.891 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" },
|
||||
[46007] = { config_id = 46007, monster_id = 20010901, pos = { x = 1440.760, y = 269.866, z = -1764.076 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆" },
|
||||
[46008] = { config_id = 46008, monster_id = 20010301, pos = { x = 1421.562, y = 267.890, z = -1755.957 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
|
||||
[46009] = { config_id = 46009, monster_id = 20010301, pos = { x = 1419.637, y = 267.998, z = -1755.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
|
||||
[46010] = { config_id = 46010, monster_id = 20010901, pos = { x = 1440.609, y = 268.755, z = -1760.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "大史莱姆" },
|
||||
[46011] = { config_id = 46011, monster_id = 21010401, pos = { x = 1413.459, y = 268.104, z = -1753.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
[46012] = { config_id = 46012, monster_id = 21010401, pos = { x = 1409.597, y = 271.581, z = -1772.809 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人" },
|
||||
[46013] = { config_id = 46013, monster_id = 20011201, pos = { x = 1409.529, y = 269.412, z = -1759.679 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
|
||||
[46014] = { config_id = 46014, monster_id = 20011201, pos = { x = 1408.667, y = 269.995, z = -1760.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
@ -66,25 +25,21 @@ npcs = {
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[46002] = { config_id = 46002, gadget_id = 70220006, pos = { x = 1419.876, y = 269.060, z = -1763.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
[46002] = { config_id = 46002, gadget_id = 70220006, pos = { x = 1428.115, y = 269.589, z = -1768.745 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
[46027] = { config_id = 46027, shape = RegionShape.SPHERE, radius = 100, pos = { x = 1428.115, y = 269.589, z = -1768.745 } }
|
||||
-- 小区域
|
||||
[46018] = { config_id = 46018, shape = RegionShape.SPHERE, radius = 30, pos = { x = 1428.115, y = 269.589, z = -1768.745 } },
|
||||
-- 大区域
|
||||
[46027] = { config_id = 46027, shape = RegionShape.SPHERE, radius = 40, pos = { x = 1428.115, y = 269.589, z = -1768.745 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 点位
|
||||
points = {
|
||||
{ config_id = 46015, pos = { x = 1412.241, y = 271.198, z = -1775.886 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
{ config_id = 46016, pos = { x = 1432.167, y = 269.843, z = -1767.538 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
{ config_id = 46017, pos = { x = 1422.355, y = 267.377, z = -1750.683 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
@ -114,7 +69,7 @@ suites = {
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 46002 },
|
||||
regions = { 46027 },
|
||||
regions = { 46018, 46027 },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
@ -124,4 +79,6 @@ suites = {
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
--================================================================
|
||||
|
||||
require "V3_3/TestEyepointLod"
|
85
Resources/Scripts/Scene/1/scene1_group111102083.lua
Normal file
85
Resources/Scripts/Scene/1/scene1_group111102083.lua
Normal file
@ -0,0 +1,85 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111102083
|
||||
}
|
||||
|
||||
-- DEFS_MISCS
|
||||
local JamshidRocks =
|
||||
{
|
||||
83001,
|
||||
83002,
|
||||
83003,
|
||||
83004
|
||||
}
|
||||
|
||||
local CorrectAnswer =
|
||||
{
|
||||
1,3,2,4
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
76
Resources/Scripts/Scene/1/scene1_group111102087.lua
Normal file
76
Resources/Scripts/Scene/1/scene1_group111102087.lua
Normal file
@ -0,0 +1,76 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111102087
|
||||
}
|
||||
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
energy_worktop_id = 87001
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
126
Resources/Scripts/Scene/1/scene1_group111102089.lua
Normal file
126
Resources/Scripts/Scene/1/scene1_group111102089.lua
Normal file
@ -0,0 +1,126 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111102089
|
||||
}
|
||||
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
pointarray_route = 110200026
|
||||
}
|
||||
|
||||
-- DEFS_MISCS
|
||||
--向前移动的符文
|
||||
local timeback_rune = 89005
|
||||
|
||||
local timeback_controller = 89010
|
||||
|
||||
--倒流操作台。
|
||||
local timeback_worktops =
|
||||
{
|
||||
89001,
|
||||
89007,
|
||||
89009,
|
||||
89008
|
||||
}
|
||||
|
||||
--倒流物件id。
|
||||
local timeback_gadgets =
|
||||
{
|
||||
89002, --树1
|
||||
89003, --树2
|
||||
89004, --石柱
|
||||
89006, --瀑布
|
||||
}
|
||||
|
||||
--符文的移动路径点阵
|
||||
local rune_point_array =
|
||||
{
|
||||
1,2,3,4,5
|
||||
}
|
||||
|
||||
--检查点到点阵路点的映射关系
|
||||
--默认最后一个checkpoint就是终点,不能再往下移动了
|
||||
local checkpoints_to_route_points =
|
||||
{
|
||||
[1] = 2,
|
||||
[2] = 3,
|
||||
[3] = 4,
|
||||
[4] = 5,
|
||||
}
|
||||
|
||||
|
||||
--检查点到倒流操作台的映射关系,两者应该放在同一个位置上
|
||||
local checkpoint_to_worktops =
|
||||
{
|
||||
[1] = timeback_worktops[1],
|
||||
[2] = timeback_worktops[2],
|
||||
[3] = timeback_worktops[3],
|
||||
[4] = timeback_worktops[4]
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
107
Resources/Scripts/Scene/1/scene1_group111102094.lua
Normal file
107
Resources/Scripts/Scene/1/scene1_group111102094.lua
Normal file
@ -0,0 +1,107 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111102094
|
||||
}
|
||||
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
hintTime = 30,
|
||||
hintCount = 3,
|
||||
coinTime = 10,
|
||||
maxRegion = 94015,
|
||||
challengeId = 2010071
|
||||
}
|
||||
|
||||
-- DEFS_MISCS
|
||||
local defs_miscs = {
|
||||
specialCoinTable = {
|
||||
-- 每项格式如下
|
||||
[94005] = {94006, 94007, 94008, 94009, 94010},
|
||||
[94004] = {94011, 94012, 94013, 94014},
|
||||
},
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
[94001] = { config_id = 94001, gadget_id = 70220131, pos = { x = 1299.153, y = 306.915, z = -1810.673 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94002] = { config_id = 94002, gadget_id = 70220131, pos = { x = 1276.810, y = 306.802, z = -1779.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94003] = { config_id = 94003, gadget_id = 70220131, pos = { x = 1284.519, y = 308.382, z = -1805.787 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94004] = { config_id = 94004, gadget_id = 70220132, pos = { x = 1296.979, y = 305.500, z = -1791.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94005] = { config_id = 94005, gadget_id = 70220132, pos = { x = 1312.274, y = 306.532, z = -1806.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94006] = { config_id = 94006, gadget_id = 70220131, pos = { x = 1309.214, y = 307.488, z = -1811.629 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94007] = { config_id = 94007, gadget_id = 70220131, pos = { x = 1306.781, y = 306.200, z = -1806.321 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94008] = { config_id = 94008, gadget_id = 70220131, pos = { x = 1310.646, y = 305.907, z = -1802.466 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94009] = { config_id = 94009, gadget_id = 70220131, pos = { x = 1316.272, y = 307.887, z = -1805.130 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94010] = { config_id = 94010, gadget_id = 70220131, pos = { x = 1314.052, y = 306.982, z = -1811.964 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94011] = { config_id = 94011, gadget_id = 70220131, pos = { x = 1295.124, y = 304.560, z = -1786.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94012] = { config_id = 94012, gadget_id = 70220131, pos = { x = 1301.350, y = 305.547, z = -1790.846 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94013] = { config_id = 94013, gadget_id = 70220131, pos = { x = 1299.054, y = 306.170, z = -1795.870 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
[94014] = { config_id = 94014, gadget_id = 70220131, pos = { x = 1292.389, y = 305.963, z = -1793.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
[94015] = { config_id = 94015, shape = RegionShape.SPHERE, radius = 50, pos = { x = 1291.265, y = 280.284, z = -1799.941 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1094015, name = "ENTER_REGION_94015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 94001, 94002, 94003, 94004, 94005, 94006, 94007, 94008, 94009, 94010, 94011, 94012, 94013, 94014 },
|
||||
regions = { 94015 },
|
||||
triggers = { "ENTER_REGION_94015" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
require "V3_3/CoinCollect"
|
82
Resources/Scripts/Scene/1/scene1_group111102100.lua
Normal file
82
Resources/Scripts/Scene/1/scene1_group111102100.lua
Normal file
@ -0,0 +1,82 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 111102100
|
||||
}
|
||||
|
||||
-- Trigger变量
|
||||
local defs = {
|
||||
gallery_id = 30001
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 100001, gadget_id = 70290720, pos = { x = 2003.324, y = 197.658, z = -1264.975 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 100002, gadget_id = 70290721, pos = { x = 2003.594, y = 198.096, z = -1258.957 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 100003, gadget_id = 70290713, pos = { x = 2014.376, y = 198.263, z = -1262.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
|
||||
{ config_id = 100004, gadget_id = 70290722, pos = { x = 2014.376, y = 198.263, z = -1262.144 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 100001, 100002, 100003, 100004 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
require "V3_3/BrickBreaker"
|
@ -85,7 +85,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37001) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37001) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -93,7 +93,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37003) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37003) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -101,7 +101,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_3(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 1010001) == QuestState.UNFINISHED or
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 1010001) == QuestState.UNFINISHED or
|
||||
ScriptLib.GetQuestState(context, evt.target_eid, 1010109) == QuestState.UNFINISHED)
|
||||
and evt.param1 == defs.gadget_id_3 then
|
||||
return true
|
||||
|
@ -74,7 +74,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_4(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 48606) == QuestState.UNFINISHED and evt.param1 == 4 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 48606) == QuestState.UNFINISHED and evt.param1 == 4 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -85,7 +85,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 41503) == QuestState.UNFINISHED
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 41503) == QuestState.UNFINISHED
|
||||
or ScriptLib.GetQuestState(context, evt.target_eid, 37503) == QuestState.UNFINISHED )
|
||||
and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
|
@ -82,7 +82,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 41503) == QuestState.UNFINISHED
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and (ScriptLib.GetQuestState(context, evt.target_eid, 41503) == QuestState.UNFINISHED
|
||||
or ScriptLib.GetQuestState(context, evt.target_eid, 37503) == QuestState.UNFINISHED )
|
||||
and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
@ -93,7 +93,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_3(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37502) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37502) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -100,10 +100,10 @@ function action_EVENT_ANY_MONSTER_DIE_15(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 76
|
||||
-- 创建id为76的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 76 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(-6,4,-47),持续时间为2秒,并且为强制注目形式,不广播其他玩家
|
||||
|
@ -153,10 +153,10 @@ function action_EVENT_ENTER_REGION_32(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 77
|
||||
-- 创建id为77的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 77 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -176,10 +176,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_45(context, evt)
|
||||
-- 创生gadget 80
|
||||
-- 创建id为80的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 80 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -228,10 +228,10 @@ function action_EVENT_ENTER_REGION_47(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 79
|
||||
-- 创建id为79的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 79 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -115,10 +115,10 @@ function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 78
|
||||
-- 创建id为78的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 78 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 解锁目标3
|
||||
|
@ -85,7 +85,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37301) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37301) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -93,7 +93,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37401) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37401) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -101,7 +101,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_3(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37405) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37405) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -82,7 +82,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37604) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37604) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -90,7 +90,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_2(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37606) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 37606) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -114,10 +114,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_5002(context, evt)
|
||||
-- 创生gadget 5001
|
||||
-- 创建id为5001的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5001 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -18,5 +18,9 @@ dummy_points = {
|
||||
["Q300409_N12555"] = { pos = { x = -2.369, y = 0.754, z = -1.609 }, rot = { x = 0.000, y = 185.683, z = 0.000 } },
|
||||
["Q3009BarPlayer"] = { pos = { x = -3.661, y = 0.754, z = -8.590 }, rot = { x = 0.000, y = 83.411, z = 0.000 } },
|
||||
["Q3010BarBoss"] = { pos = { x = -2.585, y = 0.754, z = -4.954 }, rot = { x = 0.000, y = 175.044, z = 0.000 } },
|
||||
["Q3010BarPaimon"] = { pos = { x = -1.532, y = 0.754, z = -8.576 }, rot = { x = 0.000, y = 270.863, z = 0.000 } }
|
||||
["Q3010BarPaimon"] = { pos = { x = -1.532, y = 0.754, z = -8.576 }, rot = { x = 0.000, y = 270.863, z = 0.000 } },
|
||||
["Q303205_guide"] = { pos = { x = -8.350, y = 6.976, z = -5.470 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303205_T303205_N10000005"] = { pos = { x = -8.323, y = 6.976, z = -6.481 }, rot = { x = 0.000, y = 183.060, z = 0.000 } },
|
||||
["Q303205_T303205_N1005"] = { pos = { x = -8.921, y = 6.976, z = -7.650 }, rot = { x = 0.000, y = 55.450, z = 0.000 } },
|
||||
["Q303205_T303205_N12999"] = { pos = { x = -9.846, y = 6.976, z = -8.875 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
|
||||
}
|
@ -1,9 +1,20 @@
|
||||
dummy_points = {
|
||||
["C1915103_N10000005"] = { pos = { x = -54.848, y = 3.995, z = -0.147 }, rot = { x = 0.000, y = 260.614, z = 0.000 } },
|
||||
["C1915103_N512"] = { pos = { x = -56.482, y = 3.995, z = -0.483 }, rot = { x = 0.000, y = 81.198, z = 0.000 } },
|
||||
["C1915201_N12906"] = { pos = { x = -40.400, y = 2.153, z = -2.957 }, rot = { x = 0.000, y = 274.004, z = 0.000 } },
|
||||
["C1915201_N512"] = { pos = { x = -40.246, y = 2.153, z = -4.419 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["C1915202_N512"] = { pos = { x = 1.530, y = 0.642, z = -15.887 }, rot = { x = 0.000, y = 263.716, z = 0.000 } },
|
||||
["C1915203_N12908"] = { pos = { x = -0.065, y = 3.995, z = -56.360 }, rot = { x = 0.000, y = 180.061, z = 0.000 } },
|
||||
["C1915203_N512"] = { pos = { x = 1.105, y = 3.995, z = -55.677 }, rot = { x = 0.000, y = 242.719, z = 0.000 } },
|
||||
["C1915205_N10000005"] = { pos = { x = -12.703, y = 2.153, z = -31.945 }, rot = { x = 0.000, y = 200.551, z = 0.000 } },
|
||||
["C1915205_N512"] = { pos = { x = -13.831, y = 2.153, z = -34.976 }, rot = { x = 0.000, y = 20.086, z = 0.000 } },
|
||||
["C1915902_N512"] = { pos = { x = 28.597, y = 2.153, z = 28.736 }, rot = { x = 0.000, y = 47.225, z = 0.000 } },
|
||||
["DUMMY_POS 13"] = { pos = { x = 86.722, y = 2.212, z = 1.014 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["PlayFind_End"] = { pos = { x = 18.149, y = -34.018, z = -1.049 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["PlayFind_N10000005"] = { pos = { x = 17.817, y = -35.208, z = 2.085 }, rot = { x = 0.000, y = 173.096, z = 0.000 } },
|
||||
["PlayFind_N1005"] = { pos = { x = 16.683, y = -35.208, z = 1.867 }, rot = { x = 0.000, y = 149.983, z = 0.000 } },
|
||||
["PlayFind_N1056"] = { pos = { x = 25.863, y = -34.030, z = 15.085 }, rot = { x = 0.000, y = 236.933, z = 0.000 } },
|
||||
["Q1915202_N12907"] = { pos = { x = -0.012, y = 0.635, z = -15.958 }, rot = { x = 0.000, y = 359.951, z = 0.000 } },
|
||||
["Q302203_N10000005"] = { pos = { x = 2.929, y = 105.170, z = -6.362 }, rot = { x = 0.000, y = 289.384, z = 0.000 } },
|
||||
["Q302203_N1005"] = { pos = { x = 2.346, y = 105.170, z = -7.363 }, rot = { x = 0.000, y = 306.814, z = 0.000 } },
|
||||
["Q302203_N1053"] = { pos = { x = -14.984, y = 111.416, z = 6.438 }, rot = { x = 0.000, y = 141.745, z = 0.000 } },
|
||||
|
@ -1,8 +1,13 @@
|
||||
dummy_points = {
|
||||
["C1915702_N512"] = { pos = { x = -3.369, y = 0.055, z = 2.194 }, rot = { x = 0.000, y = 90.580, z = 0.000 } },
|
||||
["Cyno_LookAt"] = { pos = { x = -7.347, y = 0.898, z = 4.398 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Cyno_sit"] = { pos = { x = -11.333, y = 0.055, z = 8.716 }, rot = { x = 0.000, y = 179.442, z = 0.000 } },
|
||||
["Fuben_sit"] = { pos = { x = -11.287, y = 0.055, z = 6.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Player_Cam"] = { pos = { x = -4.597, y = 0.057, z = 7.518 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
|
||||
["Q1917105_guide"] = { pos = { x = 2.343, y = 0.057, z = -1.734 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q1917105_N4003"] = { pos = { x = -2.522, y = 0.057, z = 13.682 }, rot = { x = 0.000, y = 184.540, z = 0.000 } },
|
||||
["Q1917106_N1051"] = { pos = { x = -3.927, y = 0.057, z = 10.839 }, rot = { x = 0.000, y = 41.200, z = 0.000 } },
|
||||
["Q1917106_N513"] = { pos = { x = -1.359, y = 0.057, z = 10.957 }, rot = { x = 0.000, y = 325.600, z = 0.000 } },
|
||||
["Q2303502_N1058"] = { pos = { x = -7.353, y = 0.075, z = 5.959 }, rot = { x = 0.000, y = 178.806, z = 0.000 } },
|
||||
["Q2303502_N12717_Cyno"] = { pos = { x = -6.093, y = 0.055, z = 8.193 }, rot = { x = 0.000, y = 226.831, z = 0.000 } },
|
||||
["Q2303502_Trigger"] = { pos = { x = -4.604, y = 0.099, z = 8.414 }, rot = { x = 0.000, y = 264.401, z = 0.000 } },
|
||||
|
@ -1,3 +1,4 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 201075001, pos = { x = -1.881, y = 128.087, z = -3.940 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 1 } }
|
||||
}
|
@ -15,5 +15,48 @@ dummy_points = {
|
||||
["Q302821_N1005"] = { pos = { x = -26.242, y = 133.588, z = -27.103 }, rot = { x = 0.000, y = 20.999, z = 0.000 } },
|
||||
["Q302821_N1056"] = { pos = { x = -25.568, y = 133.554, z = -25.392 }, rot = { x = 0.000, y = 221.217, z = 0.000 } },
|
||||
["Q302821_N12695"] = { pos = { x = -32.287, y = 133.498, z = -16.269 }, rot = { x = 0.000, y = 147.665, z = 0.000 } },
|
||||
["Q302822_guide"] = { pos = { x = -37.344, y = 133.515, z = 0.062 }, rot = { x = 0.000, y = 268.448, z = 0.000 } }
|
||||
["Q302822_guide"] = { pos = { x = -37.344, y = 133.515, z = 0.062 }, rot = { x = 0.000, y = 268.448, z = 0.000 } },
|
||||
["Q302903_guide"] = { pos = { x = -34.118, y = 133.515, z = -0.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302904_N10013"] = { pos = { x = -3.720, y = 128.087, z = 3.663 }, rot = { x = 0.000, y = 139.100, z = 0.000 } },
|
||||
["Q302904_N1056"] = { pos = { x = -7.432, y = 128.043, z = -0.351 }, rot = { x = 0.000, y = 56.090, z = 0.000 } },
|
||||
["Q302904_T302904_N10000005"] = { pos = { x = -14.196, y = 128.073, z = -0.486 }, rot = { x = 0.000, y = 84.010, z = 0.000 } },
|
||||
["Q302904_T302904_N10013"] = { pos = { x = -3.664, y = 128.087, z = 3.748 }, rot = { x = 0.000, y = 134.760, z = 0.000 } },
|
||||
["Q302904_T302904_N1005"] = { pos = { x = -14.595, y = 128.076, z = 0.377 }, rot = { x = 0.000, y = 93.270, z = 0.000 } },
|
||||
["Q302904_T302904_N1056"] = { pos = { x = -7.540, y = 128.043, z = -0.353 }, rot = { x = 0.000, y = 59.130, z = 0.000 } },
|
||||
["Q302905_guide"] = { pos = { x = -19.109, y = 133.498, z = -29.369 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302906_guide"] = { pos = { x = 19.211, y = 133.553, z = -29.746 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302907_guide"] = { pos = { x = 28.906, y = 133.553, z = -23.598 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302908_N10013"] = { pos = { x = 28.451, y = 133.553, z = -21.633 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302909_N10013"] = { pos = { x = 27.793, y = 133.553, z = -22.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302910_guide"] = { pos = { x = 35.397, y = 133.553, z = -7.742 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302910_N1056"] = { pos = { x = 33.835, y = 133.553, z = -7.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q302918_N1056"] = { pos = { x = -14.386, y = 128.076, z = -0.251 }, rot = { x = 0.000, y = 266.430, z = 0.000 } },
|
||||
["Q303101_N1056"] = { pos = { x = -4.320, y = 128.045, z = 0.151 }, rot = { x = 0.000, y = 85.700, z = 0.000 } },
|
||||
["Q303101_T303101_N10000005"] = { pos = { x = -5.284, y = 128.087, z = -1.571 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303101_T303101_N1005"] = { pos = { x = -6.281, y = 128.044, z = -1.081 }, rot = { x = 0.000, y = 43.020, z = 0.000 } },
|
||||
["Q303101_T303101_N1056"] = { pos = { x = -4.938, y = 128.087, z = 0.917 }, rot = { x = 0.000, y = 193.700, z = 0.000 } },
|
||||
["Q303103_N1056"] = { pos = { x = -3.845, y = 128.087, z = -3.424 }, rot = { x = 0.000, y = 117.840, z = 0.000 } },
|
||||
["Q303104_N1056"] = { pos = { x = -4.733, y = 128.087, z = 0.042 }, rot = { x = 0.000, y = 95.700, z = 0.000 } },
|
||||
["Q303104_T303104_N10000005"] = { pos = { x = -8.924, y = 128.043, z = 0.043 }, rot = { x = 0.000, y = 109.880, z = 0.000 } },
|
||||
["Q303104_T303104_N1005"] = { pos = { x = -8.458, y = 128.043, z = -1.041 }, rot = { x = 0.000, y = 109.200, z = 0.000 } },
|
||||
["Q303104_T303104_N12947"] = { pos = { x = -7.434, y = 128.043, z = 0.823 }, rot = { x = 0.000, y = 120.770, z = 0.000 } },
|
||||
["Q303105_guide"] = { pos = { x = -30.735, y = 133.553, z = 21.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303106_guide"] = { pos = { x = -19.450, y = 133.553, z = 29.560 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303107_guide"] = { pos = { x = -6.423, y = 133.553, z = 34.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303108_guide"] = { pos = { x = 7.488, y = 133.553, z = 34.599 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303109_N12827"] = { pos = { x = 8.396, y = 133.553, z = 33.559 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303112_guide"] = { pos = { x = -3.264, y = 129.358, z = 0.025 }, rot = { x = 0.000, y = 310.700, z = 0.000 } },
|
||||
["Q303112_N1056"] = { pos = { x = -3.391, y = 128.087, z = -2.928 }, rot = { x = 0.000, y = 314.270, z = 0.000 } },
|
||||
["Q303112_N12947"] = { pos = { x = -4.027, y = 128.045, z = 1.910 }, rot = { x = 0.000, y = 222.400, z = 0.000 } },
|
||||
["Q303116_T303116_N10000005"] = { pos = { x = -5.287, y = 128.087, z = -1.356 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303116_T303116_N1005"] = { pos = { x = -6.036, y = 128.044, z = -0.684 }, rot = { x = 0.000, y = 48.230, z = 0.000 } },
|
||||
["Q303116_T303116_N1056"] = { pos = { x = -5.346, y = 128.087, z = 1.231 }, rot = { x = 0.000, y = 182.600, z = 0.000 } },
|
||||
["Q303201_guide"] = { pos = { x = -8.509, y = 128.043, z = 0.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q303201_N1056"] = { pos = { x = -4.512, y = 128.057, z = -1.242 }, rot = { x = 0.000, y = 281.900, z = 0.000 } },
|
||||
["Q303201_T303201_N10000005"] = { pos = { x = -7.004, y = 128.044, z = 0.250 }, rot = { x = 0.000, y = 88.700, z = 0.000 } },
|
||||
["Q303201_T303201_N1005"] = { pos = { x = -6.968, y = 128.044, z = 1.227 }, rot = { x = 0.000, y = 111.680, z = 0.000 } },
|
||||
["Q303201_T303201_N1056"] = { pos = { x = -4.423, y = 128.087, z = -1.984 }, rot = { x = 0.000, y = 304.000, z = 0.000 } },
|
||||
["Q303201_T303201_N1065"] = { pos = { x = -4.677, y = 128.087, z = -0.131 }, rot = { x = 0.000, y = 274.500, z = 0.000 } },
|
||||
["Q303202_N12827"] = { pos = { x = -4.325, y = 128.044, z = 2.016 }, rot = { x = 0.000, y = 222.040, z = 0.000 } },
|
||||
["Q303204_N12827"] = { pos = { x = -17.573, y = 129.100, z = 0.784 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
|
||||
}
|
72
Resources/Scripts/Scene/1075/scene1075_group201075001.lua
Normal file
72
Resources/Scripts/Scene/1075/scene1075_group201075001.lua
Normal file
@ -0,0 +1,72 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 201075001
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1001, gadget_id = 71700563, pos = { x = -3.327, y = 129.399, z = 0.032 }, rot = { x = 25.000, y = 90.000, z = 0.000 }, level = 1, room = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1001 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
42
Resources/Scripts/Scene/1076/scene1076.lua
Normal file
42
Resources/Scripts/Scene/1076/scene1076.lua
Normal file
@ -0,0 +1,42 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -512.0, z = -512.0 },
|
||||
size = { x = 1024.0, z = 1024.0 },
|
||||
born_pos = { x = 0.195, y = 0.000, z = 7.002 },
|
||||
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
|
||||
born_point_list = {
|
||||
{ pos = { x = -1.750, y = 0.000, z = 5.785 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
{ pos = { x = -1.592, y = 0.000, z = 8.734 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
{ pos = { x = 0.000, y = 0.000, z = 8.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
{ pos = { x = 0.000, y = 0.000, z = 6.228 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
|
||||
},
|
||||
die_y = -20,
|
||||
room_safe_pos = {
|
||||
scene_id = 3,
|
||||
safe_pos = {
|
||||
x = 2300.000,
|
||||
y = 214.000,
|
||||
z = -922.000
|
||||
},
|
||||
safe_rot = {
|
||||
x = 0.000,
|
||||
y = 0.000,
|
||||
z = 0.000
|
||||
}
|
||||
},
|
||||
vision_anchor = { x = -1000.0, z = -1000.0 }
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 1076 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
6
Resources/Scripts/Scene/1076/scene1076_block1076.lua
Normal file
6
Resources/Scripts/Scene/1076/scene1076_block1076.lua
Normal file
@ -0,0 +1,6 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 201076001, pos = { x = -0.108, y = 0.000, z = 12.116 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 201076002, refresh_id = 1000, pos = { x = -10.319, y = 0.000, z = 9.667 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
|
||||
{ id = 201076003, pos = { x = 20.435, y = 0.777, z = 11.985 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
|
||||
}
|
28
Resources/Scripts/Scene/1076/scene1076_dummy_points.lua
Normal file
28
Resources/Scripts/Scene/1076/scene1076_dummy_points.lua
Normal file
@ -0,0 +1,28 @@
|
||||
dummy_points = {
|
||||
["Q7052401_N10011"] = { pos = { x = 15.090, y = 0.010, z = 21.928 }, rot = { x = 359.450, y = 107.615, z = 0.098 } },
|
||||
["Q7052401_N10012"] = { pos = { x = 15.178, y = 0.010, z = 20.232 }, rot = { x = 0.000, y = 60.062, z = 0.000 } },
|
||||
["Q7066502_N1061"] = { pos = { x = -14.230, y = 0.021, z = 8.648 }, rot = { x = 0.000, y = 221.724, z = 0.000 } },
|
||||
["Q7066502_N1431"] = { pos = { x = 0.735, y = 0.000, z = 9.546 }, rot = { x = 0.000, y = 13.001, z = 0.000 } },
|
||||
["Q7066502_N1712"] = { pos = { x = 1.192, y = 0.000, z = 12.903 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
|
||||
["Q7066502_N1713"] = { pos = { x = 0.069, y = 1.294, z = 11.571 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
|
||||
["Q7066503_N10000005"] = { pos = { x = -0.035, y = 0.003, z = 9.688 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
|
||||
["Q7066503_N1005"] = { pos = { x = 1.804, y = 0.000, z = 9.586 }, rot = { x = 0.000, y = 0.701, z = 0.000 } },
|
||||
["Q7066503_N1019"] = { pos = { x = -0.846, y = 0.000, z = 9.734 }, rot = { x = 0.000, y = 39.246, z = 0.000 } },
|
||||
["Q7066503_N1707"] = { pos = { x = 30.543, y = 0.010, z = 8.694 }, rot = { x = 0.000, y = 347.174, z = 0.000 } },
|
||||
["Q7066503_N1708"] = { pos = { x = 15.881, y = 0.000, z = 8.680 }, rot = { x = 0.000, y = 196.762, z = 0.000 } },
|
||||
["Q7066503_N1709"] = { pos = { x = 10.699, y = 0.000, z = 7.146 }, rot = { x = 0.000, y = 265.468, z = 0.000 } },
|
||||
["Q7066503_N1710"] = { pos = { x = 12.033, y = 0.000, z = 13.660 }, rot = { x = 0.000, y = 222.325, z = 0.000 } },
|
||||
["Q7066503_N1711"] = { pos = { x = 17.905, y = 0.010, z = 21.440 }, rot = { x = 0.000, y = 229.461, z = 0.000 } },
|
||||
["Q7066504_N10000005"] = { pos = { x = 19.747, y = 0.000, z = 11.829 }, rot = { x = 0.000, y = 57.775, z = 0.000 } },
|
||||
["Q7066504_N1005"] = { pos = { x = 20.136, y = 0.000, z = 11.405 }, rot = { x = 0.000, y = 48.034, z = 0.000 } },
|
||||
["Q7066504_N1019"] = { pos = { x = 19.676, y = 0.000, z = 12.797 }, rot = { x = 0.000, y = 149.144, z = 0.000 } },
|
||||
["Q7066504_N1061"] = { pos = { x = 21.422, y = 0.000, z = 11.347 }, rot = { x = 0.000, y = 320.084, z = 0.000 } },
|
||||
["Q7066506_N1009"] = { pos = { x = 19.472, y = 0.000, z = 11.089 }, rot = { x = 0.000, y = 48.034, z = 0.000 } },
|
||||
["Q7066509_N1061"] = { pos = { x = -2.605, y = 0.317, z = 12.822 }, rot = { x = 359.824, y = 358.222, z = 359.994 } },
|
||||
["Q7066515_N10000005"] = { pos = { x = 17.411, y = 0.010, z = 17.066 }, rot = { x = 0.000, y = 338.007, z = 0.000 } },
|
||||
["Q7066515_N10011"] = { pos = { x = 15.059, y = 0.010, z = 22.372 }, rot = { x = 0.000, y = 143.908, z = 0.000 } },
|
||||
["Q7066515_N10012"] = { pos = { x = 16.461, y = 0.010, z = 20.355 }, rot = { x = 0.000, y = 327.909, z = 0.000 } },
|
||||
["Q7066515_N1005"] = { pos = { x = 16.842, y = 0.010, z = 16.906 }, rot = { x = 0.000, y = 338.007, z = 0.000 } },
|
||||
["Q7066515_N1019"] = { pos = { x = 17.923, y = 0.010, z = 21.155 }, rot = { x = 0.000, y = 280.965, z = 0.000 } },
|
||||
["Q70665guide"] = { pos = { x = 12.227, y = 0.000, z = 10.648 }, rot = { x = 0.000, y = 98.806, z = 0.000 } }
|
||||
}
|
99
Resources/Scripts/Scene/1076/scene1076_group201076001.lua
Normal file
99
Resources/Scripts/Scene/1076/scene1076_group201076001.lua
Normal file
@ -0,0 +1,99 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 201076001
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1001, gadget_id = 70350454, pos = { x = -4.041, y = 1.449, z = 7.698 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true, room = 1 },
|
||||
{ config_id = 1002, gadget_id = 70290732, pos = { x = 16.597, y = -0.022, z = 15.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, room = 1 },
|
||||
{ config_id = 1003, gadget_id = 70290732, pos = { x = 24.435, y = -0.033, z = 10.057 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, room = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ config_id = 1001004, name = "QUEST_FINISH_1004", event = EventType.EVENT_QUEST_FINISH, source = "7066518", condition = "", action = "action_EVENT_QUEST_FINISH_1004" },
|
||||
{ config_id = 1001005, name = "QUEST_FINISH_1005", event = EventType.EVENT_QUEST_FINISH, source = "7052605", condition = "", action = "action_EVENT_QUEST_FINISH_1005" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1001, 1002, 1003 },
|
||||
regions = { },
|
||||
triggers = { "QUEST_FINISH_1004", "QUEST_FINISH_1005" },
|
||||
rand_weight = 100,
|
||||
ban_refresh = true
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_FINISH_1004(context, evt)
|
||||
-- 将configid为 1001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_FINISH_1005(context, evt)
|
||||
-- 将configid为 1001 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Default) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
106
Resources/Scripts/Scene/1076/scene1076_group201076002.lua
Normal file
106
Resources/Scripts/Scene/1076/scene1076_group201076002.lua
Normal file
@ -0,0 +1,106 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 201076002
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 2001, monster_id = 28020511, pos = { x = -4.974, y = 0.288, z = 6.038 }, rot = { x = 0.000, y = 57.828, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2002, monster_id = 28020511, pos = { x = 0.186, y = 0.036, z = 6.875 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2003, monster_id = 28020511, pos = { x = -0.981, y = 0.036, z = 8.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2004, monster_id = 28020512, pos = { x = 1.262, y = 0.036, z = 6.553 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2005, monster_id = 28020512, pos = { x = 0.386, y = 0.036, z = 8.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2006, monster_id = 28020512, pos = { x = 1.072, y = 0.036, z = 7.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2007, monster_id = 28020513, pos = { x = -5.636, y = 0.000, z = 11.891 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2008, monster_id = 28020513, pos = { x = -4.861, y = 0.000, z = 12.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2009, monster_id = 28020513, pos = { x = -4.241, y = 0.000, z = 12.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2013, monster_id = 28020506, pos = { x = -3.220, y = 0.020, z = 7.251 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2014, monster_id = 28020506, pos = { x = -2.917, y = 0.020, z = 9.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2015, monster_id = 28020506, pos = { x = -2.135, y = 0.036, z = 8.335 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2016, monster_id = 28020501, pos = { x = -9.786, y = 0.000, z = 9.585 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2017, monster_id = 28020501, pos = { x = -8.707, y = 0.000, z = 9.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 },
|
||||
{ config_id = 2018, monster_id = 28020501, pos = { x = -9.371, y = 0.000, z = 10.559 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1, room = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { 2001, 2006, 2009, 2015, 2018 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { 2002, 2004, 2007, 2013, 2016 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 3,
|
||||
-- description = ,
|
||||
monsters = { 2003, 2005, 2008, 2014, 2017 },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
require "V3_2/PubAnimal"
|
81
Resources/Scripts/Scene/1076/scene1076_group201076003.lua
Normal file
81
Resources/Scripts/Scene/1076/scene1076_group201076003.lua
Normal file
@ -0,0 +1,81 @@
|
||||
-- 基础信息
|
||||
local base_info = {
|
||||
group_id = 201076003
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 3001, gadget_id = 70710896, pos = { x = 20.652, y = 0.790, z = 11.979 }, rot = { x = 0.000, y = 90.001, z = 0.000 }, level = 1, room = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
end_suite = 0,
|
||||
rand_suite = false
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 2,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 3001 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
@ -163,13 +163,13 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
|
||||
ScriptLib.PrintLog(context, "enter condition judge")
|
||||
ScriptLib.PrintLog("enter condition judge")
|
||||
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_2 ~= evt.param2 then
|
||||
ScriptLib.PrintLog(context, "judge false")
|
||||
ScriptLib.PrintLog("judge false")
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "judge true")
|
||||
ScriptLib.PrintLog("judge true")
|
||||
return true
|
||||
end
|
||||
|
||||
@ -186,14 +186,14 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_20(context, evt)
|
||||
ScriptLib.PrintLog(context, "enter condition judge")
|
||||
ScriptLib.PrintLog("enter condition judge")
|
||||
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_3 ~= evt.param2 then
|
||||
ScriptLib.PrintLog(context, "judge false")
|
||||
ScriptLib.PrintLog("judge false")
|
||||
return false
|
||||
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "judge true")
|
||||
ScriptLib.PrintLog("judge true")
|
||||
return true
|
||||
end
|
||||
|
||||
@ -210,13 +210,13 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_21(context, evt)
|
||||
ScriptLib.PrintLog(context, "Enter condition judge")
|
||||
ScriptLib.PrintLog("Enter condition judge")
|
||||
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_4 ~= evt.param2 then
|
||||
ScriptLib.PrintLog(context, "judge false")
|
||||
ScriptLib.PrintLog("judge false")
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "judge true")
|
||||
ScriptLib.PrintLog("judge true")
|
||||
return true
|
||||
end
|
||||
|
||||
@ -287,10 +287,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GATHER_24(context, evt)
|
||||
-- 创生gadget 5009
|
||||
-- 创建id为5009的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5009 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -83,21 +83,21 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_GADGET_DIE_25(context, evt)
|
||||
ScriptLib.PrintLog(context, "enter condition")
|
||||
ScriptLib.PrintLog("enter condition")
|
||||
if defs.gadget_id_2 ~= evt.param1 then
|
||||
ScriptLib.PrintLog(context, "configid judge false")
|
||||
ScriptLib.PrintLog("configid judge false")
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "configid judge true")
|
||||
ScriptLib.PrintLog("configid judge true")
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_GADGET_DIE_25(context, evt)
|
||||
ScriptLib.PrintLog(context, "enter action")
|
||||
ScriptLib.PrintLog("enter action")
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
|
||||
ScriptLib.PrintLog(context, "create gadget fail")
|
||||
ScriptLib.PrintLog("create gadget fail")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
@ -84,9 +84,9 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_26(context, evt)
|
||||
ScriptLib.PrintLog(context, "enter firebox condition")
|
||||
ScriptLib.PrintLog("enter firebox condition")
|
||||
if defs.gadget_id_1 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
ScriptLib.PrintLog(context, "fire box not match")
|
||||
ScriptLib.PrintLog("fire box not match")
|
||||
return false
|
||||
end
|
||||
|
||||
@ -95,10 +95,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_26(context, evt)
|
||||
-- 创生gadget 31
|
||||
-- 创建id为31的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 31 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -75,10 +75,10 @@ suites = {
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GATHER_48(context, evt)
|
||||
-- 创生gadget 67
|
||||
-- 创建id为67的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 67 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -145,10 +145,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_55(context, evt)
|
||||
-- 创生gadget 90
|
||||
-- 创建id为90的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 90 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -113,7 +113,7 @@ function action_EVENT_SELECT_OPTION_57(context, evt)
|
||||
-- 激活gadget_id为91的封印战斗,战斗区域半径为10,圈内进度每秒增长1,圈外进度每秒衰减2,进度达到60时判定为战斗成功(填0则取默认值100),进度衰减到0后5秒判定为战斗失败
|
||||
if 24 == evt.param2 then
|
||||
local ret = ScriptLib.StartSealBattle(context, 91, {radius = 10, in_add = 1, out_sub = 2, fail_time = 5, max_progress = 60})
|
||||
--ScriptLib.PrintLog(context, "StartSealBattle ret: " ..ret)
|
||||
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
|
||||
end
|
||||
|
||||
-- 重新生成指定group,指定suite
|
||||
|
@ -169,13 +169,13 @@ function action_EVENT_GADGET_STATE_CHANGE_94(context, evt)
|
||||
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
|
||||
local c_num = c_num_1 + 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
|
||||
ScriptLib.PrintLog(context, "c_num="..c_num)
|
||||
ScriptLib.PrintLog("c_num="..c_num)
|
||||
return -1
|
||||
end
|
||||
|
||||
if c_num == 12 then
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_12 }) then
|
||||
ScriptLib.PrintLog(context, "create")
|
||||
ScriptLib.PrintLog("create")
|
||||
return -1
|
||||
end
|
||||
end
|
||||
|
@ -151,13 +151,13 @@ function action_EVENT_GADGET_STATE_CHANGE_98(context, evt)
|
||||
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
|
||||
local c_num = c_num_1 + 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
|
||||
ScriptLib.PrintLog(context, "c_num="..c_num)
|
||||
ScriptLib.PrintLog("c_num="..c_num)
|
||||
return -1
|
||||
end
|
||||
|
||||
if c_num == 9 then
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
|
||||
ScriptLib.PrintLog(context, "create")
|
||||
ScriptLib.PrintLog("create")
|
||||
return -1
|
||||
end
|
||||
end
|
||||
|
@ -151,13 +151,13 @@ function action_EVENT_GADGET_STATE_CHANGE_102(context, evt)
|
||||
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
|
||||
local c_num = c_num_1 + 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
|
||||
ScriptLib.PrintLog(context, "c_num="..c_num)
|
||||
ScriptLib.PrintLog("c_num="..c_num)
|
||||
return -1
|
||||
end
|
||||
|
||||
if c_num == 9 then
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
|
||||
ScriptLib.PrintLog(context, "create")
|
||||
ScriptLib.PrintLog("create")
|
||||
return -1
|
||||
end
|
||||
end
|
||||
|
@ -95,7 +95,7 @@ function action_EVENT_GADGET_STATE_CHANGE_86(context, evt)
|
||||
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
|
||||
local c_num = c_num_1 + 1
|
||||
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
|
||||
ScriptLib.PrintLog(context, "c_num="..c_num)
|
||||
ScriptLib.PrintLog("c_num="..c_num)
|
||||
return -1
|
||||
end
|
||||
|
||||
|
@ -99,7 +99,7 @@ function action_EVENT_CLIENT_EXECUTE_128(context, evt)
|
||||
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_3, GadgetState.Default) then
|
||||
--ScriptLib.PrintLog(context, "Faild to change 371 state default when evt.param1 == defs.gadget_id_5")
|
||||
--ScriptLib.PrintLog("Faild to change 371 state default when evt.param1 == defs.gadget_id_5")
|
||||
return -1
|
||||
end
|
||||
|
||||
|
@ -155,6 +155,6 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_PLATFORM_REACH_POINT_171(context, evt)
|
||||
ScriptLib.PrintLog(context, "## point_id = "..evt.param3)
|
||||
ScriptLib.PrintLog("## point_id = "..evt.param3)
|
||||
return 0
|
||||
end
|
@ -103,10 +103,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_9(context, evt)
|
||||
-- 创生gadget 54
|
||||
-- 创建id为54的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 54 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -160,10 +160,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_26(context, evt)
|
||||
-- 创生gadget 400
|
||||
-- 创建id为400的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 400 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(461,-11,174),持续时间为2秒,并且为强制注目形式,不广播其他玩家
|
||||
@ -205,10 +205,10 @@ function action_EVENT_ENTER_REGION_48(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 368
|
||||
-- 创建id为368的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 368 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -234,10 +234,10 @@ function action_EVENT_ENTER_REGION_49(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 383
|
||||
-- 创建id为383的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 383 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -263,10 +263,10 @@ function action_EVENT_ENTER_REGION_50(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 384
|
||||
-- 创建id为384的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 384 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -292,10 +292,10 @@ function action_EVENT_ENTER_REGION_51(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 370
|
||||
-- 创建id为370的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 370 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -315,10 +315,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_52(context, evt)
|
||||
-- 创生gadget 385
|
||||
-- 创建id为385的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 385 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -344,10 +344,10 @@ function action_EVENT_ENTER_REGION_53(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 387
|
||||
-- 创建id为387的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 387 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -373,10 +373,10 @@ function action_EVENT_ENTER_REGION_55(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 388
|
||||
-- 创建id为388的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 388 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 调用提示id为 1010007 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
|
||||
@ -408,10 +408,10 @@ function action_EVENT_ENTER_REGION_56(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 367
|
||||
-- 创建id为367的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 367 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -437,10 +437,10 @@ function action_EVENT_ENTER_REGION_58(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 374
|
||||
-- 创建id为374的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 374 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -333,10 +333,10 @@ function action_EVENT_ANY_MONSTER_DIE_57(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 365
|
||||
-- 创建id为365的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 365 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -371,10 +371,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_TIMER_EVENT_60(context, evt)
|
||||
-- 创生gadget 247
|
||||
-- 创建id为247的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 247 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -91,10 +91,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_22(context, evt)
|
||||
-- 创生gadget 242
|
||||
-- 创建id为242的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 242 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -85,7 +85,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_41(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30707) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30707) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -93,7 +93,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_42(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30708) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30708) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -101,7 +101,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_43(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30709) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30709) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -327,10 +327,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_23(context, evt)
|
||||
-- 创生gadget 140
|
||||
-- 创建id为140的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 140 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 杀死Group内指定的monster和gadget
|
||||
@ -422,10 +422,10 @@ function action_EVENT_ENTER_REGION_31(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 139
|
||||
-- 创建id为139的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 139 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -445,10 +445,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_32(context, evt)
|
||||
-- 创生gadget 141
|
||||
-- 创建id为141的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 141 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 杀死Group内指定的monster和gadget
|
||||
@ -471,10 +471,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_GADGET_DIE_34(context, evt)
|
||||
-- 创生gadget 142
|
||||
-- 创建id为142的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 142 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -497,10 +497,10 @@ function action_EVENT_ANY_GADGET_DIE_36(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 180
|
||||
-- 创建id为180的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 180 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -526,10 +526,10 @@ function action_EVENT_ENTER_REGION_37(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 179
|
||||
-- 创建id为179的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 179 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -250,7 +250,7 @@ end
|
||||
function action_EVENT_CLIENT_EXECUTE_43(context, evt)
|
||||
-- 针对groupid为 220009002 中该config对应的物件进行状态改变操作
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
--ScriptLib.PrintLog(context, "config_id="..this_gadget)
|
||||
--ScriptLib.PrintLog("config_id="..this_gadget)
|
||||
|
||||
|
||||
ScriptLib.SetGadgetEnableInteract(context, 220009002, this_gadget, true)
|
||||
|
@ -130,10 +130,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_2(context, evt)
|
||||
-- 创生gadget 6
|
||||
-- 创建id为6的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -224,10 +224,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_48(context, evt)
|
||||
-- 创生gadget 264
|
||||
-- 创建id为264的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 264 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -258,10 +258,10 @@ function action_EVENT_ENTER_REGION_55(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 265
|
||||
-- 创建id为265的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 265 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -88,7 +88,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_28(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30607) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30607) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -96,7 +96,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_29(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30608) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30608) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -104,7 +104,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_30(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30609) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30609) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -112,7 +112,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_56(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30612) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_4 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30612) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_4 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -279,16 +279,16 @@ function action_EVENT_ENTER_REGION_13(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 1041
|
||||
-- 创建id为1041的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1041 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 1049
|
||||
-- 创建id为1049的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1049 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -416,10 +416,10 @@ function action_EVENT_ENTER_REGION_36(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 1042
|
||||
-- 创建id为1042的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1042 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -126,10 +126,10 @@ function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 2014
|
||||
-- 创建id为2014的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2014 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 调用提示id为 1041042 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
|
||||
|
@ -190,10 +190,10 @@ function action_EVENT_VARIABLE_CHANGE_12(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 3019
|
||||
-- 创建id为3019的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -252,10 +252,10 @@ function action_EVENT_ENTER_REGION_26(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 3020
|
||||
-- 创建id为3020的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -187,10 +187,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_43(context, evt)
|
||||
-- 创生gadget 69
|
||||
-- 创建id为69的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 69 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -307,10 +307,10 @@ function action_EVENT_ENTER_REGION_53(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 98
|
||||
-- 创建id为98的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 98 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 调用提示id为 1041026 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
|
||||
|
@ -88,7 +88,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_49(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30807) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30807) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -96,7 +96,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_50(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30808) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30808) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -104,7 +104,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_51(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30809) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30809) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
@ -112,7 +112,7 @@ end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_55(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30812) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_4 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30812) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_4 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -167,10 +167,10 @@ function action_EVENT_ANY_MONSTER_DIE_10(context, evt)
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 3020
|
||||
-- 创建id为3020的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(48,45,120),持续时间为3秒,并且为强制注目形式,不广播其他玩家
|
||||
|
@ -124,10 +124,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
|
||||
-- 创生gadget 7012
|
||||
-- 创建id为7012的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7012 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 杀死Group内所有monster
|
||||
@ -243,10 +243,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_15(context, evt)
|
||||
-- 创生gadget 7012
|
||||
-- 创建id为7012的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7012 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -468,10 +468,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_29(context, evt)
|
||||
-- 创生gadget 5055
|
||||
-- 创建id为5055的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5055 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -489,10 +489,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_30(context, evt)
|
||||
-- 创生gadget 5056
|
||||
-- 创建id为5056的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5056 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -510,10 +510,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_31(context, evt)
|
||||
-- 创生gadget 5057
|
||||
-- 创建id为5057的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5057 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -531,10 +531,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_32(context, evt)
|
||||
-- 创生gadget 5058
|
||||
-- 创建id为5058的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5058 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -552,10 +552,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_33(context, evt)
|
||||
-- 创生gadget 5059
|
||||
-- 创建id为5059的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5059 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -573,10 +573,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_34(context, evt)
|
||||
-- 创生gadget 5060
|
||||
-- 创建id为5060的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5060 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -594,10 +594,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_35(context, evt)
|
||||
-- 创生gadget 5061
|
||||
-- 创建id为5061的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5061 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -615,10 +615,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_36(context, evt)
|
||||
-- 创生gadget 5062
|
||||
-- 创建id为5062的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5062 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
@ -636,10 +636,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_37(context, evt)
|
||||
-- 创生gadget 5063
|
||||
-- 创建id为5063的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5063 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -114,10 +114,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_15(context, evt)
|
||||
-- 创生gadget 38
|
||||
-- 创建id为38的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 38 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -97,28 +97,28 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_19(context, evt)
|
||||
-- 创生gadget 50
|
||||
-- 创建id为50的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 50 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 51
|
||||
-- 创建id为51的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 51 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 52
|
||||
-- 创建id为52的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 52 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 53
|
||||
-- 创建id为53的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 53 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -105,7 +105,7 @@ function condition_EVENT_QUEST_FINISH_8(context, evt)
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog(context, "quest 46306 finish")
|
||||
ScriptLib.PrintLog("quest 46306 finish")
|
||||
return true
|
||||
end
|
||||
|
||||
|
@ -175,10 +175,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_8002(context, evt)
|
||||
-- 创生gadget 8001
|
||||
-- 创建id为8001的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 8001 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
@ -81,7 +81,7 @@ suites = {
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_4(context, evt)
|
||||
if ScriptLib.GetEntityType(context, evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 46302) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 46302) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
|
||||
return true
|
||||
end
|
||||
return false
|
||||
|
@ -84,10 +84,10 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_9002(context, evt)
|
||||
-- 创生gadget 9001
|
||||
-- 创建id为9001的gadget
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 9001 }) then
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
|
||||
return -1
|
||||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user