//全局事件

{

    "ID": 3010203,

    "Specials": {

        //表格参数

        "stamina": 100,

        "coin": 1500,

        "HpPercentage":40,

        "RandomCard_1": 0,

        "RandomCard_2": 0,

        "RandomCard_3": 0,

        "genre":0

    },

    "Events": {

        "OnStart": {

            "Actions": 

            [

                {

					"$type": "Share.CConfigOpenDialog"

				},

                {

					//根据选项模式选择选项

					"$type": "Share.CConfigChoiceServer",

                    "ID":101,

					"OptionsMode": "Normal",

					"Title":"Event3010203_1",

					"Description": "Event3010203_2",

					"QuestionDescription": "Event3010203_3",

					"Choices": [

                        {

							"OptionText": "Event3010203_4",

                            "Predicates":

                            [

                                {

                                    "$type": "Share.CConfigEventByItemID",

                                    "ItemID": 1,

                                    "CompareType": "GreaterEqual",

                                    "Count": 1500

                                }

                            ],

                            "OptionText2": "Event3010203_5",

                            "OptionIcon1": 102,

							"OptionContents": [

								{

									"Actions": [

										{

											"$type": "Share.CConfigJump",

											"Jump": "Op_1"

										}

									]

								}

							]

						},

                        {

							"OptionText": "Event3010203_4",

                            "Predicates":

                            [

                                {

                                    "$type": "Share.CConfigEventByItemID",

                                    "ItemID": 1,

                                    "CompareType": "Less",

                                    "Count": 1500

                                }

                            ],

                            "OptionText2": "Event3010203_5",

                            "OptionIcon1": 102,

							"OptionContents": [

								{

									"Actions": [

                                        {

											"$type": "Share.CConfigJump",

											"Jump": "Op_NotAvailable_Coin"

										}

									]

								}

							]

						},

						{

							"OptionText": "Event3010203_6",

                            "Predicates":[

                                {

                                    "$type":"Share.CConfigEventByCurse",

                                    "CompareType":"Less",

                                    "Count":5

                                }

                            ],

                            "OptionText2": "Event3010203_7",

                            "OptionIcon1": 105,

							"OptionContents": [

								{

									"Actions": [

										{

											"$type": "Share.CConfigJump",

											"Jump": "Op_2"

										}

									]

								}

							]

						},

                        {

							"OptionText": "Event3010203_6",

                            "Predicates":

                            [

                                {

                                    "$type":"Share.CConfigEventByCurse",

                                    "CompareType":"Equal",

                                    "Count":5

                                }

                            ],

                            "OptionText2": "Event3010203_7",

                            "OptionIcon1": 105,

							"OptionContents": [

								{

									"Actions": [

                                        {

											"$type": "Share.CConfigJump",

											"Jump": "Op_NotAvailable_Stamina"

										}

									]

								}

							]   

						},

						{

							"OptionText": "Event3010203_8",

                            "OptionText2": "Event3010203_9",

                            "OptionIcon1": 103,

							"OptionContents": [

								{

									"Actions": [

										{

											"$type": "Share.CConfigJump",

											"Jump": "Op_3"

										}

									]

								}

							]

						}

					]

				}

            ]

        },

        "OnReward": {

            "Actions": 

            [

                {

					//根据选项模式选择选项

					"$type": "Share.CConfigChoiceServer",

					"OptionsMode": "Normal",

					"Title":"Event3010203_1",

					"Description": "Event3010203_15",

					"QuestionDescription": "Event3010203_16",

					"Choices": [

                        {

							"OptionText": "Event3010203_17",

                            "OptionText2": "Event3010203_21",

                            "OptionIcon1": 101,

							"OptionContents": [

								{

									"Actions": [

                                        {

											"$type": "Share.CConfigJump",

											"Jump": "Op_4"

										}

									]

								}

							]

						},

						{

							"OptionText": "Event3010203_18",

                            "OptionText2": "Event3010203_22",

                            "OptionIcon1": 107,

							"OptionContents": [

								{

									"Actions": [

                                        {

											"$type": "Share.CConfigJump",

											"Jump": "Op_5"

										}

									]

								}

							]

						}

					]

				}

            ]

        },

        "Op_NotAvailable_Coin":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_11"

                    ]

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":101

                }

            ]

        },

        "Op_NotAvailable_Stamina":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_13"

                    ]

                },

                {

                    "$type":"Share.CConfigGoto",

                    "GotoID":101

                }

            ]

        },

        "Op_1":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_10"

                    ]

                },

                {

                    "$type": "Share.CConfigAddItem",

                    "ItemID": 1,

                    "Count": "-specials(coin)"

                },

                {

                    "$type": "Share.CConfigJump",

					"Jump": "OnReward"

                }

            ]

        },

        "Op_2":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_12"

                    ]

                },

                {

                    "$type": "Share.CConfigModifySceneProperty",

                    "Property": "Stamina",

                    "Count": "specials(stamina)"

                },

                {

                    "$type": "Share.CConfigJump",

					"Jump": "OnReward"

                }

            ]

        },

        "Op_3":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_14"

                    ]

                },

                {

                    "$type": "Share.CConfigModifyProperty",

                    "Property": "Hp",

                    "Count": "-property(HpMax_Battle)*specials(HpPercentage)*0.01"

                },

                {

                    "$type": "Share.CConfigJump",

					"Jump": "OnReward"

                }

            ]

        },

        "Op_4":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_19"

                    ]

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigDropCard",

                    "Type": 0,

                    "Rare": [

                        4

                    ],

                    "Num": 3,

                    "Specials": [

                        "RandomCard_1",

                        "RandomCard_2",

                        "RandomCard_3"

                    ]

                },

                {

                    "$type": "Share.CConfigAddItem",

                    "ItemID": "specials(RandomCard_1)",

                    "Count": 1

                },

                {

                    "$type": "Share.CConfigAddItem",

                    "ItemID": "specials(RandomCard_2)",

                    "Count": 1

                },

                {

                    "$type": "Share.CConfigAddItem",

                    "ItemID": "specials(RandomCard_3)",

                    "Count": 1

                },

                {

                    "$type": "Share.CConfigJump",

                    "Jump": "OnEnd"

                }

            ]

        },

        "Op_5":{

            "Actions":[

                {

                    "$type": "Share.CConfigLogText",

                    "Messages": [

                        "Event3010203_20"

                    ]

                },

                {

                    "$type": "Share.CConfigCloseDialog"

                },

                {

                    "$type": "Share.CConfigEventModification",

                    "X": 1,

                    "Y": 0,

                    "Position": "Absolute",

                    "Radius": 1,

                    "ModificationNum": 1,

                    "ModificationType": 1,

                    "TargetEventType": 1,

                    // "TargetEventState":[ "ShowEvent"],

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

                    "TargetEventID":[ 3010204 ],

                    "EventID": [ 3010205 ],

                    "EventState": "ShowEvent",

                    "VisibleState": "Visible"

                },

                {

                    "$type": "Share.CConfigJump",

					"Jump": "OnEnd"

                }

            ]

        },

        "OnEnd":{

            "Actions":[

                {

                    "$type": "Share.CConfigFinishEvent"

                }

            ]

        }

    }

}

