{ //精英战+揭露 "ID": 3020107, "Events": { "OnStart": { "Actions": [ { "$type": "Share.CConfigOpenDialog" }, { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "Title":"Event3020107_1", "Description":"Event3020107_2", "QuestionDescription": "Event3020107_3", "Choices": [ { "OptionText": "Event3020107_4", "OptionText2": "Event3020107_5", "OptionIcon1": 109, "OptionContents": [ { "Actions": [ ] } ] }, { "OptionText": "Event3020107_6", "OptionText2": "Event3020107_7", "OptionIcon1": 106, "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigJump", "Jump": "NoCoin" } ] } ] } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 80, "Actions": [ { //战斗计数器+1 "$type": "Share.CConfigSetHollowVariable", "Key": "BonusBattle_3501", "Value":0 }, { "$type": "Share.CConfigJump", "Jump": "OnBattle" } ] }, { "Weight": 20, "Conditions":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"scenevar(BonusBattle_3501)", "Param2":0, "CompareType":"Equal" } ], "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnChallenge" } ] } ] } ] }, "OnChallenge": { "Actions": [ { "$type":"Share.CConfigRandomBattleID", "Type":["Elite"], "Tags":["Challenge"], "SpecialName":"BattleID" }, { "$type":"Share.CConfigSetSpecial", "SpecialName":"Return", "SpecialValue":1101 }, { "$type": "Share.CConfigJump", "Jump": "ChallengeControl" }, { //CConfigEmpty "$type":"Share.CConfigSetSpecial", "SpecialName":"empty", "SpecialValue":0, "ID":1101 }, { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID)", "OnSuccess": "OnRandomResult" } ] }, "ChallengeControl":{ "Actions":[ { "$type":"Share.CConfigGoto", "GotoID":101, "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":0, "CompareType":"Equal" } ] }, // if battleid==A // challengeID=[a1,a2] { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130011102 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130011302 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141012, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120020002 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120020102 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141013, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130031102 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130031302 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141014, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120030002 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120030102 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141015, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130011101 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":130011301 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141021, "CompareType":"Equal" } ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120010001 } ] }, { "Weight": 50, "Actions": [ { "$type":"Share.CConfigSetChallenge", "ChallengeID":120010101 } ] } ], "Predicates":[ { "$type": "Share.CConfigEventByCompareParam", "Param1":"specials(BattleID)", "Param2":30141022, "CompareType":"Equal" } ] }, { "$type":"Share.CConfigGoto", "GotoID":"specials(Return)" }, //一些容错 if battleid==0 { "$type":"Share.CConfigRandomBattleID", "ID":101, "Type":["Elite"], "Tags":["Normal"], "SpecialName":"BattleID" }, { "$type":"Share.CConfigGoto", "GotoID":"specials(Return)" } ] }, "OnBattle": { "Actions": [ { "$type":"Share.CConfigEmpty" }, { "$type":"Share.CConfigRandomBattleID", "Type":["Elite"], "Tags":["Normal"], "SpecialName":"BattleID" }, { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID)", "OnSuccess": "OnRandomResult" } ] }, "OnRandomResult":{ "Actions":[ // { // "$type": "Share.CConfigPreset", // "PerformKey" : "Chessboard_BattleEnd_Pre" // }, { "$type": "Share.CConfigPreset", //无交互 "PerformKey" : "Chessboard_BattleEnd_None" }, { "$type": "Share.CConfigCloseDialog", "CameraMove":false }, { "$type": "Share.CConfigIf", "OnSuccess": "OnChooseCard", "OnFailure": "OnChooseNormal", "Conditions":[ { "$type": "Share.CConfigEventByRandom", "Odds": "specials(odd)" //跳转概率 } ] } ] }, "OnChooseCard": { "Actions": [ { "$type": "Share.CConfigRandomDropID", "Type": "Card", "SpecialName": [ "RandomCard_1", "RandomCard_2", "RandomCard_3" ] }, { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "ShowMode": "Card", "Choices": [ { "OptionText": "Event_Common_Choose", // 选择 "OptionItemID1": "specials(RandomCard_1)", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigDropPool", "Type": "Card", "ItemID": "specials(RandomCard_1)", "Num": 1 }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] }, { "OptionText": "Event_Common_Choose", // 选择 "OptionItemID1": "specials(RandomCard_2)", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigDropPool", "Type": "Card", "ItemID": "specials(RandomCard_2)", "Num": 1 }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] }, { "OptionText": "Event_Common_Choose", // 选择 "OptionItemID1": "specials(RandomCard_3)", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigDropPool", "Type": "Card", "ItemID": "specials(RandomCard_3)", "Num": 1 }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] } ] } ] }, "OnChooseNormal": { "Actions": [ { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "ShowMode": "Event", "Choices": [ { "OptionText": "Event_Common_RecoverHp", "OptionItemID1": "specials(ShowHp)", "OptionDesc1": "Event_Common_RecoverHp_Des", "TitleText": "Item_TeamMedicineHp_02_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigModifyProperty", "Property": "Hp", "Count": "property(HpMax_Battle)*specials(Hp)*0.01" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] }, { "OptionText": "Event_Common_GetCoin", "OptionItemID1": "specials(ShowGold)", "OptionDesc1": "Event_Common_GetCoin_Des", "TitleText": "Item_RL_Purse_03_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigAddItem", "ItemID": 1, "Count": "specials(Gold)" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] }, { "OptionText": "Event_Common_StaminaDown", "OptionText2": "NormalBattleChoice3_Title_split", "OptionItemID1": "specials(ShowStamina)", "OptionDesc1": "Event_Common_StaminaDown_Des", "TitleText": "Item_TeamMedicinePr_03_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigModifySceneProperty", "Property": "Stamina", "Count": "-specials(Stamina)" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] } ] } ] } ] }, "OnEnd": { "Actions": [ { "$type": "Share.CConfigPreset", "PerformKey" : "Chessboard_BattleEnd_After" }, //判断周围有无硬币 // { // "$type":"Share.CConfigJump", // "Jump":"NoCoin", // "Predicates":[ // { // "$type":"Share.CConfigEventByEventState", // "X":"playerpos(X)", // "Y":"playerpos(Y)", // "Position":"Absolute", // "VisibleState":["Visible"], // "Count":0, // "CompareType":"Equal", // "Radius":10, // "EventID":[3020106] //丁尼 // } // ] // }, { "$type": "Share.CConfigCameraMove", "StretchKey": "Far", "Type": "CustomBound", "BoundHalfW":4, "BoundHalfH":4 }, { "$type": "Share.CConfigWaitSeconds", "Time": "0.5" }, //揭露金币*2 { "$type": "Share.CConfigSetMapState", "X": "playerpos(X)", "Y": "playerpos(Y)", "Position": "Absolute",// Absolute "NodeType": "All", "Radius": 15, "Count": 2, "EventTypeTag":"GoldCoin", "FromState": ["Locked"], "ToState": ["ShowEvent"] }, { "$type": "Share.CConfigWaitSeconds", "Time": "0.5" }, { "$type": "Share.CConfigCameraMove", "Type": "Player", "StretchKey": "Back" }, { "$type": "Share.CConfigFinishEvent" } ] }, "NoCoin":{ "Actions":[ { "$type": "Share.CConfigCloseDialog" }, { "$type": "Share.CConfigFinishEvent" } ] } }, "Specials": { "odd":25, "BattleID": 0, "MessageID": 1009, "RandomCard_1": 0, "RandomCard_2": 0, "RandomCard_3": 0, "Gold": 500, "Stamina": 30, "Hp": 15, "ShowGold": 900001, "ShowStamina": 900002, "ShowHp": 900003, "Return":0 } }