{ "ID": 2010008,//安全屋钉子户 "Specials": { "Hp": 10, "Price":500, "Difficult":11, "BattleID": 0 }, "Events": { "OnStart": { "Actions": [ { "$type": "Share.CActionChangeHollowEventWeightCfg", "EventID": 2010008, "WeightFactor": 0 }, { "$type": "Share.CConfigOpenDialog" }, { "$type": "Share.CConfigChoiceServer", "OptionsMode": "Normal", "Title":"Event2010008_Title", "Description": "Event2010008_1", "QuestionDescription": "Event2010008_2", "Choices": [ { "OptionText": "Event2010008_3", "OptionText2":"Event2010008_4", "OptionIcon1": 103, "Predicates":[ { "$type": "Share.CConfigEventByItemID", "ItemID": 1, "CompareType": "GreaterEqual", "Count": "specials(Price)" } ], "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigJump", "Jump": "End_A" } ] } ] }, { "OptionText": "Event2010008_5", "OptionText2":"Event2010008_6", "OptionIcon1": 109, "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnBattle" } ] } ] }, { "OptionText": "Event2010008_7", "OptionText2":"Event2010008_8", "OptionIcon1": 106, "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigJump", "Jump": "Quit" } ] } ] } ] } ] }, "OnBattle":{ "Actions":[ { "$type":"Share.CConfigLogText", "Messages":[ "Event2010008_10", "Event2010008_10_1" ] }, { "$type": "Share.CConfigCloseDialog" }, { "$type":"Share.CConfigDropBattleID", "Type":["specials(Difficult)"], "SpecialName":"BattleID" }, { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID)", "OnSuccess": "OnEndBattle", "OnFailure":"OnEndBattle" } ] }, "OnEndBattle":{ "Actions":[ { "$type": "Share.CConfigPreset", //无交互 "PerformKey" : "Chessboard_BattleEnd_None" }, { "$type": "Share.CConfigJump", "Jump": "End_B" } ] }, "End_A":{ //付钱 "Actions":[ { "$type":"Share.CConfigLogText", "Messages":["Event2010008_9" ] }, //扣钱 { "$type": "Share.CConfigAddItem", "ItemID": 1, "Count": "-specials(Price)" }, //生命恢复10% { "$type": "Share.CConfigModifyProperty", "Property": "Hp", "Count": "property(HpMax_Battle)*specials(Hp)*0.01" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] }, "End_B":{ //战斗后,恢复生命 "Actions":[ //生命恢复10% { "$type": "Share.CConfigModifyProperty", "Property": "Hp", "Count": "property(HpMax_Battle)*specials(Hp)*0.01" }, { "$type": "Share.CConfigJump", "Jump": "OnEnd2" } ] }, "Quit":{ "Actions":[ { "$type": "Share.CConfigJump", "Jump": "OnEnd" } ] }, "OnEnd":{ "Actions": [ { "$type": "Share.CConfigCloseDialog" }, { "$type": "Share.CConfigFinishEvent" } ] }, "OnEnd2":{ "Actions": [ { "$type": "Share.CConfigFinishEvent" } ] } } }