//机关

{

    "ID": 2020905,

    "EventTypeTag": [

        "CameraMoveToCenter"

    ],

    "Specials": {

        "BattleID":0

    },

    "Events": {

        "OnStart": {

            "Actions": [

                {

                    "$type":"Share.CConfigEmpty"

                },  

                {

                    "$type": "Share.CConfigIf",

                    "OnSuccess":"Right",

                    "OnFailure":"Wrong",

                    "Conditions": [

                        {

                            "$type": "Share.CConfigEventByEventState",

                            "Position": "Relative",

                            "X":0,

                            "Y":0,

                            "Radius":1,

                            "NodeType":"All",

                            "EventType":"Dialog",

                            "VisibleState":["Visible"],

                            "State":["Locked"],

                            "EventTags":["{scenevar(CorrectColor_2020901)}"],

                            // "EventID":["202090{scenevar(CorrectColor_2020901)}"],

                            "Count":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                //周围是否有指定颜色事件 CConfigEventByEventState

                //以上述为依据判断是否寻找成功

                //揭露颜色事件点

                //成功--结束

                //失败--选项告知，然后发惩罚（战斗、curse随机）

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Wrong": {

            "Actions": [

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020902 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020912],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020903 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020913],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020904 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020914],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigOpenDialog"

                },

                {

                    "$type": "Share.CConfigChoiceServer",

                    "OptionsMode": "Normal",

                    "Title":"Event_2020905_Title",//问答时刻

                    "Description": "Event_2020905_Des1_{scenevar(CorrectColor_2020901)}",

                    "QuestionDescription": "Event_2010905_QuestionDes1",

                    "Choices": [

                        {

                            "OptionText": "Event_2020905_OP1_1",

                            "OptionIcon1": 109,

                            "OptionContents": [

                                {

                                    "Actions": 

                                    [

                                        {

                                            "$type": "Share.CConfigJump",

                                            "Jump": "TriggerBattle"

                                        }

                                    ]

                                }

                            ]

                        }

                    ]

                }

            ]

        },

        "TriggerBattle": {

            "Actions": [

                {

                  "$type":"Share.CConfigRandomBattleID",

                  "Type":["Normal","Elite"],

                  "Tags":["Normal"],

                  "SpecialName":"BattleID"

                },

                {

                    "$type": "Share.CConfigTriggerBattle",

                    "BattleID": "specials(BattleID)",

                    "OnSuccess": "OnFinish"

                }

            ]

        },

        "OnFinish": {

            "Actions": [

                {

                    "$type": "Share.CConfigPreset",

                    "PerformKey" : "Chessboard_BattleEnd_None"

                },

                {

                    "$type": "Share.CConfigCloseDialog",

                    "CameraMove":false

                },

                // {

                //     "$type":"Share.CConfigFreezeChessBoardCamera",

                //     "StretchKey":"Far",

                //     "IndexX":53,

                //     "IndexY":121

                // },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020901,2020906 ],//空

                    "TargetEventType": 1,

                    // "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020906 ],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Right": {

            "Actions": [

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020902 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020912],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020903 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020913],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 0,

                    "Y": 0,

                    "Position": "Relative",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020904 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020914],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                //-----------------------------

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060068,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":

                    [

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CorrectColor_2020901",

                            "CompareType": "Equal",

                            "Count": 2

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060070,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":

                    [

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CorrectColor_2020901",

                            "CompareType": "Equal",

                            "Count": 3

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060069,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":

                    [

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "CorrectColor_2020901",

                            "CompareType": "Equal",

                            "Count": 4

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigSetHollowVariable",

                    "Key": "Complete_2020905",

                    "Value": "scenevar(Complete_2020905)+1"

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "Calculate",

                    "Predicates":

                    [

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Complete_2020905",

                            "CompareType": "Equal",

                            "Count": 4

                        }

                    ]

                },

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        },

        "Calculate":{

            "Actions":

            [

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Far",

                    "Type": "CustomBound",

                    "BoundIndexX":53,

                    "BoundIndexY":121,

                    "CanControl":false,

                    "UseStretchZ":true

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020902 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020902],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020903 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020903],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020904 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020904],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.1

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 2,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020902 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020902],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 2,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020903 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020903],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 2,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020904 ],//空

                    "TargetEventType": 1,

                    "TargetVisibleState":[ "Visible"],

                    "EventID": [ 2020904],//zzz

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": 10,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020905 ],//zzz

                    "TargetEventType": 1,

                    "EventID": [ 2020905 ],//d

                    "EventState": "Finished",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": "rand(2,3)",

                    "ModificationType": 1,

                    "TargetEventID": [ 2020905 ],//zzz

                    "TargetEventType": 1,

                    "EventID": [ 1005 ],//d

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.1

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 20,

                    "ModificationNum": "rand(2,3)",

                    "ModificationType": 1,

                    "TargetEventID": [ 2020905 ],//zzz

                    "TargetEventType": 1,

                    "EventID": [ 1005 ],//d

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible",

                    "ExcludePlayerPos":true

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 0.5

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 7,

                    "Y": 5,

                    "Position": "Absolute",

                    "Radius": 0,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventID": [ 2020901,2020906 ],//zzz

                    "TargetEventType": 1,

                    "EventID": [ 2020915 ],//d

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigWaitSeconds",

                    "Time": 1

                },

                {

                    "$type": "Share.CConfigCameraMoveV2",

                    "StretchKey": "Back",

                    "Type": "Back",

                    "CanControl":true,

                    "UseStretchZ":false

                },

                //------观测任务------

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"color_count",

                    "SpecialValue":"specials(color_count)+1",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":5,

                            "NodeType":"All",

                            "EventID":[2020912],

                            "Position":"Absolute",

                            "Radius":10,

                            "VisibleState":["Visible"],

                            "State":["ShowEvent"],

                            "Count":1,

                            "CompareType":"GreaterEqual"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"color_count",

                    "SpecialValue":"specials(color_count)+1",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":5,

                            "NodeType":"All",

                            "EventID":[2020913],

                            "Position":"Absolute",

                            "Radius":10,

                            "VisibleState":["Visible"],

                            "State":["ShowEvent"],

                            "Count":1,

                            "CompareType":"GreaterEqual"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"color_count",

                    "SpecialValue":"specials(color_count)+1",

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":5,

                            "NodeType":"All",

                            "EventID":[2020914],

                            "Position":"Absolute",

                            "Radius":10,

                            "VisibleState":["Visible"],

                            "State":["ShowEvent"],

                            "Count":1,

                            "CompareType":"GreaterEqual"

                        }

                    ]

                },

                {

                    "$type":"Share.CConfigSetSpecial",

                    "SpecialName":"full",

                    "SpecialValue":1,

                    "Predicates":[

                        {

                            "$type":"Share.CConfigEventByEventState",

                            "X":7,

                            "Y":5,

                            "NodeType":"All",

                            "EventID":[2020912,2020913,2020914],

                            "Position":"Absolute",

                            "Radius":10,

                            "VisibleState":["Visible"],

                            "State":["ShowEvent"],

                            "Count":10,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //完全正确通过

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060106,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "color_count",

                            "Param":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //点亮了三种颜色

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060107,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "color_count",

                            "Param":3,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //点亮了两种颜色

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060108,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "color_count",

                            "Param":2,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //点亮了三种颜色

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060109,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventBySpecials",

                            "ParamName": "full",

                            "Param":1,

                            "CompareType":"Equal"

                        }

                    ]

                },

                {

                    //不借助提示完成任务

                    "$type":"Share.CConfigSetConditionProgress",

                    "ConditionID":30060105,

                    "Progress":1,

                    "ModifyType":"Add",

                    "Predicates":[

                        {

                            "$type": "Share.CConfigEventByHollowVariable",

                            "Key": "Tips_2020906",

                            "CompareType": "Equal",

                            "Count": 0

                        }

                    ]

                },

                //------------

                {

                    "$type": "Share.CConfigFinishEvent"

                }



            ]

        }

    }

}

