mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-23 14:32:27 +08:00
更新配置表
This commit is contained in:
@@ -93,8 +93,11 @@ suites = {
|
||||
function action_EVENT_SELECT_OPTION_1002(context, evt)
|
||||
if evt.param2 == 603 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 604)
|
||||
else
|
||||
@@ -103,18 +106,27 @@ function action_EVENT_SELECT_OPTION_1002(context, evt)
|
||||
else
|
||||
if evt.param2 == 604 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 604)
|
||||
end
|
||||
|
||||
if evt.param2 == 614 then
|
||||
ScriptLib.SetGroupVariableValue(context, "room2", 1)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp3", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 603)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 1001, 614)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -122,8 +134,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_1004(context, evt)
|
||||
if evt.source_name == "temp" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 23)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,614})
|
||||
@@ -131,6 +145,7 @@ function action_EVENT_TIME_AXIS_PASS_1004(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -138,11 +153,14 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_1005(context, evt)
|
||||
if evt.source_name == "temp2" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 25)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp2" and evt.param1 == 2 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -150,11 +168,14 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_1006(context, evt)
|
||||
if evt.source_name == "temp3" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 25)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,1003, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp3" and evt.param1 == 2 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -162,14 +183,20 @@ end
|
||||
function action_EVENT_SELECT_OPTION_1007(context, evt)
|
||||
if evt.param2 == 621 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
|
||||
ScriptLib.ShowReminder(context, 201420101)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 1)
|
||||
end
|
||||
|
||||
if evt.param2 == 622 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
|
||||
ScriptLib.ShowReminder(context, 201420101)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 1)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -178,6 +205,7 @@ function action_EVENT_TIME_AXIS_PASS_1008(context, evt)
|
||||
if evt.source_name == "message1" and evt.param1 == 1 and ScriptLib.GetGroupVariableValue(context, "message") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 0)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -291,6 +319,7 @@ end
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_1013(context, evt)
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 0)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {603,604})
|
||||
else
|
||||
@@ -300,6 +329,7 @@ function action_EVENT_GROUP_LOAD_1013(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 1001, {621,622})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -333,5 +363,6 @@ function action_EVENT_SELECT_OPTION_1015(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -98,52 +98,88 @@ suites = {
|
||||
function action_EVENT_SELECT_OPTION_2003(context, evt)
|
||||
if evt.param2 == 606 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
|
||||
else
|
||||
if evt.param2 == 605 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
|
||||
end
|
||||
|
||||
if evt.param2 == 607 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp3", {2,3,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
|
||||
end
|
||||
|
||||
if evt.param2 == 615 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp4", {2,7}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "room2", 1)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
|
||||
end
|
||||
|
||||
if evt.param2 == 616 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp5", {2,3,7}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "room3", 1)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 605)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 606)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 607)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 615)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 2001, 616)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -151,8 +187,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_2004(context, evt)
|
||||
if evt.source_name == "temp" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 25)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
@@ -168,6 +206,7 @@ function action_EVENT_TIME_AXIS_PASS_2004(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -175,8 +214,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_2005(context, evt)
|
||||
if evt.source_name == "temp2" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 24)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp2" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
@@ -184,6 +225,7 @@ function action_EVENT_TIME_AXIS_PASS_2005(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -192,9 +234,11 @@ function action_EVENT_TIME_AXIS_PASS_2006(context, evt)
|
||||
if evt.source_name == "temp3" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 26)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp3" and evt.param1 == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp3" and evt.param1 == 3 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
@@ -202,6 +246,7 @@ function action_EVENT_TIME_AXIS_PASS_2006(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -209,8 +254,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_2007(context, evt)
|
||||
if evt.source_name == "temp4" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 24)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp4" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
@@ -218,6 +265,7 @@ function action_EVENT_TIME_AXIS_PASS_2007(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,616})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -226,9 +274,11 @@ function action_EVENT_TIME_AXIS_PASS_2008(context, evt)
|
||||
if evt.source_name == "temp5" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 26)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp5" and evt.param1 == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,2002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp5" and evt.param1 == 3 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
@@ -236,6 +286,7 @@ function action_EVENT_TIME_AXIS_PASS_2008(context, evt)
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,615,607})
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -243,19 +294,28 @@ end
|
||||
function action_EVENT_SELECT_OPTION_2009(context, evt)
|
||||
if evt.param2 == 623 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
|
||||
ScriptLib.ShowReminder(context, 201420101)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 1)
|
||||
end
|
||||
|
||||
if evt.param2 == 624 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
|
||||
ScriptLib.ShowReminder(context, 201420101)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 1)
|
||||
end
|
||||
|
||||
if evt.param2 == 625 and ScriptLib.GetGroupVariableValue(context, "message") == 0 then
|
||||
ScriptLib.ShowReminder(context, 201420101)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "message1", {3}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 1)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -264,6 +324,7 @@ function action_EVENT_TIME_AXIS_PASS_2010(context, evt)
|
||||
if evt.source_name == "message1" and evt.param1 == 1 and ScriptLib.GetGroupVariableValue(context, "message") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 0)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -437,6 +498,7 @@ end
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_2017(context, evt)
|
||||
ScriptLib.SetGroupVariableValue(context, "message", 0)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "open") == 1 and ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 2001, {606,605,607})
|
||||
else
|
||||
@@ -456,6 +518,7 @@ function action_EVENT_GROUP_LOAD_2017(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -490,5 +553,6 @@ function action_EVENT_SELECT_OPTION_2019(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -98,85 +98,150 @@ suites = {
|
||||
function action_EVENT_SELECT_OPTION_3003(context, evt)
|
||||
if evt.param2 == 608 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
else
|
||||
if evt.param2 == 609 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp2", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
|
||||
if evt.param2 == 610 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp3", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
|
||||
if evt.param2 == 611 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp4", {2,7}, false)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
|
||||
if evt.param2 == 617 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp5", {2,7}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "room2", 1)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
|
||||
if evt.param2 == 618 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp6", {2,7}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "room3", 1)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
|
||||
if evt.param2 == 619 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.Default)
|
||||
|
||||
ScriptLib.InitTimeAxis(context, "temp7", {2,7}, false)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "room4", 1)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 608)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 609)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 610)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 611)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 617)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 618)
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 0, 3001, 619)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -184,8 +249,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3004(context, evt)
|
||||
if evt.source_name == "temp" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 26)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -217,6 +284,7 @@ function action_EVENT_TIME_AXIS_PASS_3004(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -224,8 +292,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3005(context, evt)
|
||||
if evt.source_name == "temp2" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 27)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp2" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -241,6 +311,7 @@ function action_EVENT_TIME_AXIS_PASS_3005(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -248,8 +319,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3006(context, evt)
|
||||
if evt.source_name == "temp3" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 28)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp3" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -257,14 +330,17 @@ function action_EVENT_TIME_AXIS_PASS_3006(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -272,8 +348,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3007(context, evt)
|
||||
if evt.source_name == "temp4" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 29)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp4" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -281,14 +359,17 @@ function action_EVENT_TIME_AXIS_PASS_3007(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -296,8 +377,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3008(context, evt)
|
||||
if evt.source_name == "temp5" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 27)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp5" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room3") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -313,6 +396,7 @@ function action_EVENT_TIME_AXIS_PASS_3008(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -320,8 +404,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3009(context, evt)
|
||||
if evt.source_name == "temp6" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 28)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp6" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -329,14 +415,17 @@ function action_EVENT_TIME_AXIS_PASS_3009(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,619})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room4") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,619})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room4") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -344,8 +433,10 @@ end
|
||||
function action_EVENT_TIME_AXIS_PASS_3010(context, evt)
|
||||
if evt.source_name == "temp7" and evt.param1 == 1 then
|
||||
ScriptLib.ChangeToTargetLevelTag(context, 29)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,3002, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
if evt.source_name == "temp7" and evt.param1 == 2 then
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,610,611})
|
||||
@@ -353,14 +444,17 @@ function action_EVENT_TIME_AXIS_PASS_3010(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,618,611})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 1 and ScriptLib.GetGroupVariableValue(context, "room3") == 0 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,609,618,611})
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "room2") == 0 and ScriptLib.GetGroupVariableValue(context, "room3") == 1 then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 0, 3001, {608,617,610,611})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -607,6 +701,7 @@ function action_EVENT_GROUP_LOAD_3018(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -641,5 +736,6 @@ function action_EVENT_SELECT_OPTION_3020(context, evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -411,17 +411,23 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_4044(context, evt)
|
||||
if evt.param1 == evt.param2 then return -1 end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 and ScriptLib.CheckSceneTag(context, 20142,1056 ) then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_4045(context, evt)
|
||||
if evt.param1 == evt.param2 then return -1 end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 and ScriptLib.CheckSceneTag(context, 20142,1057 ) then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -429,45 +435,58 @@ end
|
||||
function action_EVENT_LEVEL_TAG_CHANGE_4046(context, evt)
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 4)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 or ScriptLib.GetGroupVariableValue(context, "stone1") == 3 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.GearStop)
|
||||
end
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 4)
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1057 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 or ScriptLib.GetGroupVariableValue(context, "stone2") == 3 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.GearStop)
|
||||
end
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 3)
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1058 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
|
||||
end
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142004, 2)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -475,14 +494,18 @@ end
|
||||
function action_EVENT_GROUP_LOAD_4047(context, evt)
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 4)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone1") == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4021, GadgetState.Default)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
|
||||
end
|
||||
else
|
||||
@@ -490,16 +513,21 @@ function action_EVENT_GROUP_LOAD_4047(context, evt)
|
||||
ScriptLib.SetGroupVariableValue(context, "stone1", 1)
|
||||
end
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1057 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone2") == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4032, GadgetState.Default)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
|
||||
end
|
||||
else
|
||||
@@ -507,15 +535,19 @@ function action_EVENT_GROUP_LOAD_4047(context, evt)
|
||||
ScriptLib.SetGroupVariableValue(context, "stone2", 1)
|
||||
end
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1058 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,4003, GadgetState.Default)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
@@ -171,6 +171,7 @@ function action_EVENT_ENTER_REGION_5002(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_5002(context, evt)
|
||||
if evt.param1 == 5002 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
|
||||
ScriptLib.ShowClientTutorial(context, 1178, {})
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -179,6 +180,7 @@ function action_EVENT_ENTER_REGION_5007(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_5007(context, evt)
|
||||
if evt.param1 == 5007 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
|
||||
ScriptLib.ShowClientTutorial(context, 1178, {})
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -187,6 +189,7 @@ function action_EVENT_ENTER_REGION_5009(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_5009(context, evt)
|
||||
if evt.param1 == 5009 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014002) == 0 then
|
||||
ScriptLib.ShowClientTutorial(context, 1178, {})
|
||||
end
|
||||
|
||||
return 0
|
||||
|
||||
@@ -246,9 +246,12 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_6014(context, evt)
|
||||
if evt.param1 == evt.param2 then return -1 end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 and ScriptLib.CheckSceneTag(context, 20142,1053 ) then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -256,29 +259,36 @@ end
|
||||
function action_EVENT_LEVEL_TAG_CHANGE_6015(context, evt)
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 2 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.GearStop)
|
||||
end
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142006, 3)
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1054 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.Default)
|
||||
end
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142006, 2)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -286,26 +296,34 @@ end
|
||||
function action_EVENT_GROUP_LOAD_6016(context, evt)
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "stone") == 2 then
|
||||
ScriptLib.SetGroupVariableValue(context, "stone", 1)
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6011, GadgetState.Default)
|
||||
end
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1054 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 0 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.ChestLocked)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "chest") == 1 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,6003, GadgetState.Default)
|
||||
end
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
@@ -128,13 +128,16 @@ suites = {
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_LEVEL_TAG_CHANGE_7008(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if evt.param2 == 24 then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 2)
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -210,13 +213,16 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_7011(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -254,24 +260,30 @@ function action_EVENT_DUNGEON_ALL_AVATAR_DIE_7017(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_7019(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1053 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_7021(context, evt)
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142007, 4)
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -157,13 +157,16 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_LEVEL_TAG_CHANGE_9008(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if evt.param2 == 27 then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 2)
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -239,13 +242,16 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_9018(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -254,24 +260,30 @@ function action_EVENT_DUNGEON_ALL_AVATAR_DIE_9019(context, evt)
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 2)
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_AVATAR_SLIP_DIE_9020(context, evt)
|
||||
ScriptLib.RefreshGroup(context, { suite=1})
|
||||
ScriptLib.RefreshGroup(context, {group_id=0, refresh_level_revise=0, exclude_prev=false, is_force_random_suite=false, suite=1})
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1056 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
end
|
||||
|
||||
if ScriptLib.GetGroupVariableValue(context, "temp") == 1 then
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 0)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_ALL_AVATAR_DIE_9021(context, evt)
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142009, 4)
|
||||
|
||||
return 0
|
||||
end
|
||||
@@ -104,8 +104,10 @@ function action_EVENT_LEVEL_TAG_CHANGE_10002(context, evt)
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 3)
|
||||
|
||||
ScriptLib.KillEntityByConfigId(context, {group_id=220142010, config_id=10006, entity_type=EntityType.GADGET})
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -115,13 +117,16 @@ function action_EVENT_GROUP_LOAD_10003(context, evt)
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 3)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 3)
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 2)
|
||||
end
|
||||
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1051 ) and ScriptLib.GetGroupVariableValue(context, "letter") == 0 then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142010, 2)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
@@ -103,6 +103,7 @@ function action_EVENT_LEVEL_TAG_CHANGE_11002(context, evt)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142011, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
@@ -113,6 +114,7 @@ function action_EVENT_GROUP_LOAD_11003(context, evt)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142011, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
@@ -169,8 +169,10 @@ function action_EVENT_LEVEL_TAG_CHANGE_12003(context, evt)
|
||||
function action_EVENT_LEVEL_TAG_CHANGE_12003(context, evt)
|
||||
if evt.param2 == 26 then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
else
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142012, 2)
|
||||
|
||||
ScriptLib.RemoveExtraGroupSuite(context, 220142012, 3)
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -178,9 +180,12 @@ end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_12006(context, evt)
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 12002) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 12005) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006512")
|
||||
|
||||
ScriptLib.SetGadgetStateByConfigId(context,12001, GadgetState.GearStart)
|
||||
|
||||
ScriptLib.SetGroupVariableValue(context, "temp", 1)
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -302,6 +307,7 @@ function action_EVENT_ENTER_REGION_12014(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_12014(context, evt)
|
||||
if evt.param1 == 12014 and ScriptLib.GetRegionEntityCount(context, {region_eid = evt.source_eid, entity_type = EntityType.AVATAR}) == 1 and ScriptLib.TryRecordActivityPushTips(context, 2014009) == 0 then
|
||||
ScriptLib.ShowClientTutorial(context, 1179, {})
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -406,6 +412,7 @@ function action_EVENT_GROUP_LOAD_12034(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_GROUP_LOAD_12034(context, evt)
|
||||
if ScriptLib.CheckSceneTag(context, 20142,1055 ) then
|
||||
ScriptLib.AddExtraGroupSuite(context, 0, 2)
|
||||
end
|
||||
|
||||
return 0
|
||||
|
||||
@@ -168,6 +168,7 @@ function action_EVENT_GADGET_STATE_CHANGE_13006(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_13006(context, evt)
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 and ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
|
||||
ScriptLib.SetGadgetStateByConfigId(context,13004, GadgetState.GearStart)
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -314,12 +315,15 @@ function action_EVENT_QUEST_START_13020(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_START_13020(context, evt)
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006521")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006508")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006520")
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -328,12 +332,15 @@ function action_EVENT_QUEST_START_13021(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_START_13021(context, evt)
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006521")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006508")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006520")
|
||||
end
|
||||
|
||||
return 0
|
||||
@@ -342,12 +349,15 @@ function action_EVENT_QUEST_START_13022(context, evt)
|
||||
-- 触发操作
|
||||
function action_EVENT_QUEST_START_13022(context, evt)
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13002) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006521")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13005) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006508")
|
||||
end
|
||||
|
||||
if ScriptLib.GetGadgetStateByConfigId(context, 0, 13008) == 201 then
|
||||
ScriptLib.AddQuestProgress(context, "4006520")
|
||||
end
|
||||
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user