//战斗模板 { "ID": 9991173, "Events": { "OnStart": { "Actions": [ { "$type": "Share.CConfigOpenDialog" }, { "$type": "Share.CConfigJump", "Jump": "OnRandomBattle" } ] }, "OnRandomBattle": { "Actions": [ { "$type": "Share.CConfigLogText", "Messages": [ "JsonText_1354" // 前方遭遇敌人,准备战斗 ] }, { "$type": "Share.CConfigSwitchServer", "Switch": [ { "Weight": 20, "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnBattle1" } ] }, { "Weight": 20, "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnBattle2" } ] }, { "Weight": 20, "Actions": [ { "$type": "Share.CConfigJump", "Jump": "OnBattle3" } ] } ] } ] }, "OnBattle1": { "Actions": [ { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID1)", "OnSuccess": "OnEnd" } ] }, "OnBattle2": { "Actions": [ { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID2)", "OnSuccess": "OnEnd" } ] }, "OnBattle3": { "Actions": [ { "$type": "Share.CConfigTriggerBattle", "BattleID": "specials(BattleID3)", "OnSuccess": "OnEnd" } ] }, "OnEnd": { "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" } ] } ] }, { "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)" } ] } ] }, { "SelectGroup": 3, "OptionText": "Event_Common_StaminaDown", "OptionText2": "NormalBattleChoice3_Title_split", "OptionItemID1": "specials(ShowStamina)", "OptionDesc1": "Event_Common_StaminaDown_Des", "TitleText": "Item_TeamMedicinePr_02_name", "OptionContents": [ { "Actions": [ { "$type": "Share.CConfigModifySceneProperty", "Property": "Stamina", "Count": "-specials(Stamina)" } ] } ] } ] // "ExtraChoice": { // "OptionContents": [ // { // "Actions": [ // ] // } // ] // } }, { "$type": "Share.CConfigLogText", "Messages": [ "JsonText_1355" // 所有目标均已消灭,继续行动吧 ] }, { "$type": "Share.CConfigCloseDialog" }, //------------ { "$type":"Share.CConfigSetHollowVariable", "Key":"NormalBattle.9991175", "Value": "scenevar(NormalBattle.9991175)+1" }, { //战斗 "$type":"Share.CConfigSetConditionProgress", "ConditionID":30060029, "Progress":1, "ModifyType":"Add" }, //------------ { "$type": "Share.CConfigFinishEvent" } ] } }, "Specials": { "BattleID1": 2010116, "BattleID2": 2010109, "BattleID3": 2010107, "Gold": 300, "Stamina": 20, "Hp": 10, "ShowGold": 900001, "ShowStamina": 900002, "ShowHp": 900003 } }