212 lines
No EOL
6.7 KiB
JSON
212 lines
No EOL
6.7 KiB
JSON
{
|
|
|
|
//小怪战
|
|
|
|
"ID": 3001,
|
|
|
|
"EventTypeTag": [
|
|
|
|
"CameraMoveToCenter",
|
|
|
|
"Battle"
|
|
|
|
],
|
|
|
|
"Events": {
|
|
|
|
"OnStart": {
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type":"Share.CConfigEmpty"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigSwitchServer",
|
|
|
|
"Switch": [
|
|
|
|
{
|
|
|
|
"Weight": 60,
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type":"Share.CConfigRandomBattleID",
|
|
|
|
"Type":["Normal"],
|
|
|
|
"Tags":["Normal"],
|
|
|
|
"SpecialName":"BattleID"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
//战斗计数器+1
|
|
|
|
"$type": "Share.CConfigSetHollowVariable",
|
|
|
|
"Key": "BonusBattle_3001",
|
|
|
|
"Value":0
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"Weight": 30,
|
|
|
|
"Conditions":[
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigEventByCompareParam",
|
|
|
|
"Param1":"scenevar(BonusBattle_3001)",
|
|
|
|
"Param2":0,
|
|
|
|
"CompareType":"Equal"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type":"Share.CConfigRandomBattleID",
|
|
|
|
"Type":["Normal"],
|
|
|
|
"Tags":["Bonus"],
|
|
|
|
"SpecialName":"BattleID"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
//战斗计数器+1
|
|
|
|
"$type": "Share.CConfigSetHollowVariable",
|
|
|
|
"Key": "BonusBattle_3001",
|
|
|
|
"Value":1
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$type":"Share.CConfigRandomBattleID",
|
|
|
|
"Type":["Normal"],
|
|
|
|
"Tags":["Normal"],
|
|
|
|
"SpecialName":"BattleID",
|
|
|
|
"Predicates":[
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigEventByCompareParam",
|
|
|
|
"Param1":"specials(BattleID)",
|
|
|
|
"Param2":0,
|
|
|
|
"CompareType":"Equal"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigTriggerBattle",
|
|
|
|
"BattleID": "specials(BattleID)",
|
|
|
|
"OnSuccess": "OnRandomResult"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OnRandomResult":{
|
|
|
|
"Actions":[
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigIf",
|
|
|
|
"OnSuccess": "OnChooseNormal",
|
|
|
|
"OnFailure": "OnFinish",
|
|
|
|
"Conditions":[
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigEventByRandom",
|
|
|
|
"Odds": "specials(odd)" //跳转概率
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OnChooseNormal": {
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigPreset",
|
|
|
|
"PerformKey" : "Chessboard_BattleEnd_Pre"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$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",
|
|
|
|
"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"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OnFinish": {
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigPreset",
|
|
|
|
//无交互
|
|
|
|
"PerformKey" : "Chessboard_BattleEnd_None"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigFinishEvent"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"OnEnd": {
|
|
|
|
"Actions": [
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigPreset",
|
|
|
|
//无交互
|
|
|
|
"PerformKey" : "Chessboard_BattleEnd_After"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"$type": "Share.CConfigFinishEvent"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"Specials": {
|
|
|
|
"odd":0,
|
|
|
|
"BattleID": 0,
|
|
|
|
|
|
|
|
"Gold": 500,
|
|
|
|
"Stamina": 30,
|
|
|
|
"Hp": 15,
|
|
|
|
"ShowGold": 900001,
|
|
|
|
"ShowStamina": 900002,
|
|
|
|
"ShowHp": 900003
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|