1362 lines
58 KiB
JSON
1362 lines
58 KiB
JSON
//巡逻
|
||
|
||
{
|
||
|
||
"ID": 2011311,
|
||
|
||
"EventTypeTag": [
|
||
|
||
"Patrol"
|
||
|
||
],
|
||
|
||
"Specials":{
|
||
|
||
"Gold": 500,
|
||
|
||
"Stamina": 30,
|
||
|
||
"Hp": 15,
|
||
|
||
"ShowGold": 900001,
|
||
|
||
"ShowStamina": 900002,
|
||
|
||
"ShowHp": 900003,
|
||
|
||
//表格参数
|
||
|
||
"ID":1,
|
||
|
||
"MinX":2,
|
||
|
||
"MaxX":6,
|
||
|
||
"MinY":0,
|
||
|
||
"MaxY":0,
|
||
|
||
"ReliveStrategy":0, //堵路策略,0使用min;1使用max
|
||
|
||
//事件选项
|
||
|
||
"ChoiceOdd":50,
|
||
|
||
"Stamina_Inner":100,
|
||
|
||
//战斗结果
|
||
|
||
"odd":20,
|
||
|
||
//基本信息缓存
|
||
|
||
"CurIdx":0,
|
||
|
||
"NxtIdx":0,
|
||
|
||
//**NxtIdx20113_{specials(ID)}
|
||
|
||
//**CurIdx20113_{specials(ID)}
|
||
|
||
//初始化方向
|
||
|
||
"HDir":0,
|
||
|
||
"VDir":0,
|
||
|
||
//**HDir_{specials(ID)}
|
||
|
||
//**VDir_{specials(ID)}
|
||
|
||
//临时值
|
||
|
||
"temp":0,
|
||
|
||
"tempX":0,
|
||
|
||
"tempY":0,
|
||
|
||
//goto返回标记
|
||
|
||
"Return":0,
|
||
|
||
//标记 1-start 2-trigger
|
||
|
||
"tag":0
|
||
|
||
},
|
||
|
||
"Events": {
|
||
|
||
//正常创建
|
||
|
||
"OnCreate":{
|
||
|
||
"Actions":[
|
||
|
||
//自己在哪
|
||
|
||
{
|
||
|
||
//触发的战斗ID
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "CurIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(0,0,2,0,0)"
|
||
|
||
},
|
||
|
||
//初始化方向
|
||
|
||
//根据Dir和实际情况判断将要去哪。1-左/上;2-右/下。
|
||
|
||
//--如果HDir_{ID}!=0使用HDir_{ID},否则如果HDir!=0,HDir_{ID}=HDir;否则此方向没有移动
|
||
|
||
//--如果VDir_{ID}!=0使用VDir_{ID},否则如果VDir!=0,VDir_{ID}=VDir;否则此方向没有移动
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "HDir_{specials(ID)}",
|
||
|
||
"Value":"specials(HDir)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(HDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//HDir_{specials(ID)}==0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "VDir_{specials(ID)}",
|
||
|
||
"Value":"specials(VDir)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(VDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//HDir_{specials(ID)}==0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//决定实际方向
|
||
|
||
//HDir看左右侧
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "HDir_{specials(ID)}",
|
||
|
||
"Value":2,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(X,2)",
|
||
|
||
"Param2":"specials(MinX)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "HDir_{specials(ID)}",
|
||
|
||
"Value":1,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(X,2)",
|
||
|
||
"Param2":"specials(MaxX)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//VDir看上下侧
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "VDir_{specials(ID)}",
|
||
|
||
"Value":2,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(Y,2)",
|
||
|
||
"Param2":"specials(MinY)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "VDir_{specials(ID)}",
|
||
|
||
"Value":1,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(Y,2)",
|
||
|
||
"Param2":"specials(MaxY)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
|
||
|
||
//计算下一个Index(XY-->INDEX)
|
||
|
||
//取Dir
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"HDir",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"VDir",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//X+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(1,0,2,0,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":2,
|
||
|
||
"Param2":"specials(HDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//X-1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(1,0,2,1,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(HDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//Y+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(0,1,2,0,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":2,
|
||
|
||
"Param2":"specials(VDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//Y+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(0,1,2,0,1)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(VDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//相撞(正常触发)
|
||
|
||
"OnStart": {
|
||
|
||
"Actions": [
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tag",
|
||
|
||
"SpecialValue":1
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigOpenDialog"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Avatar"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//相合(ability触发)
|
||
|
||
"OnTrigger":{
|
||
|
||
"Actions":[//fairy
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tag",
|
||
|
||
"SpecialValue":2
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigShowTip",
|
||
|
||
"TipID": 201130802
|
||
|
||
},
|
||
|
||
//NxtIdx20113_{specials(ID)}
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(CurIdx20113_{specials(ID)})"
|
||
|
||
},
|
||
|
||
// //相机移动
|
||
|
||
// {
|
||
|
||
// "$type": "Share.CConfigCameraMoveV2",
|
||
|
||
// "StretchKey": "Target",
|
||
|
||
// "Type": "CustomBound",
|
||
|
||
// "BoundIndexX":"specials(temp)-1",
|
||
|
||
// "BoundIndexY":"specials(temp)+1",
|
||
|
||
// "CanControl":false,
|
||
|
||
// "UseStretchZ":true
|
||
|
||
// },
|
||
|
||
{
|
||
|
||
//抹除
|
||
|
||
"$type": "Share.CConfigEventModification",
|
||
|
||
"ModificationNum":1,
|
||
|
||
"ModificationType":1,
|
||
|
||
"IndexList":[
|
||
|
||
"specials(temp)"
|
||
|
||
],
|
||
|
||
"TargetCoreNode":0,
|
||
|
||
"TargetEventType":1,
|
||
|
||
"EventID":[
|
||
|
||
1003
|
||
|
||
],
|
||
|
||
"EventState":"Unstable",
|
||
|
||
"VisibleState":"Visible"
|
||
|
||
},
|
||
|
||
//等待
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigWaitSeconds",
|
||
|
||
"Time": 0.1
|
||
|
||
},
|
||
|
||
// //相机归位
|
||
|
||
// {
|
||
|
||
// "$type": "Share.CConfigCameraMoveV2",
|
||
|
||
// "StretchKey": "Back",
|
||
|
||
// "Type": "Back",
|
||
|
||
// "CanControl":true,
|
||
|
||
// "UseStretchZ":false,
|
||
|
||
// "FreezeZ":true
|
||
|
||
// // "Parallel":true
|
||
|
||
// },
|
||
|
||
//播放前置动画
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//左
|
||
|
||
"$type": "Share.CConfigPlayAnim",
|
||
|
||
"WaitingTime": 1,
|
||
|
||
"AnimID":21008,
|
||
|
||
"Indexes":["getindex(0,0,2,0,0)"],
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//右
|
||
|
||
"$type": "Share.CConfigPlayAnim",
|
||
|
||
"WaitingTime": 1,
|
||
|
||
"AnimID":21009,
|
||
|
||
"Indexes":["getindex(0,0,2,0,0)"],
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":2,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//上
|
||
|
||
"$type": "Share.CConfigPlayAnim",
|
||
|
||
"WaitingTime": 1,
|
||
|
||
"AnimID":21010,
|
||
|
||
"Indexes":["getindex(0,0,2,0,0)"],
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//下
|
||
|
||
"$type": "Share.CConfigPlayAnim",
|
||
|
||
"WaitingTime": 1,
|
||
|
||
"AnimID":21011,
|
||
|
||
"Indexes":["getindex(0,0,2,0,0)"],
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(temp)",
|
||
|
||
"Param2":2,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigOpenDialog"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":0
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Avatar"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
"Avatar":{
|
||
|
||
"Actions":[
|
||
|
||
{
|
||
|
||
//战斗计数器+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "EventTriggered_20113",
|
||
|
||
"Value": 1
|
||
|
||
},
|
||
|
||
//躲避
|
||
|
||
//触发战斗
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigChoiceServer",
|
||
|
||
"OptionsMode": "Normal",
|
||
|
||
"Title":"Event2011311_Title",
|
||
|
||
"Description":"Event2011311_1",
|
||
|
||
"QuestionDescription": "Event2011311_2",
|
||
|
||
"Choices": [
|
||
|
||
{
|
||
|
||
"OptionText": "Event2011311_3",
|
||
|
||
"OptionText2": "Event2011311_4",
|
||
|
||
"OptionIcon1": 109,
|
||
|
||
"OptionContents": [
|
||
|
||
{
|
||
|
||
"Actions": [
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Battle"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"OptionText": "Event2011311_5",
|
||
|
||
"OptionText2": "Event2011311_6",
|
||
|
||
"OptionIcon1": 113,
|
||
|
||
"OptionContents": [
|
||
|
||
{
|
||
|
||
"Actions": [
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Evade"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
"Evade":{
|
||
|
||
"Actions":[
|
||
|
||
//重新计算cur和nxt,触发一次全局移动
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"Return",
|
||
|
||
"SpecialValue":1101
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Func_Wait"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//CConfigEmpty
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":0,
|
||
|
||
"ID":1101
|
||
|
||
},
|
||
|
||
|
||
|
||
//文字描述
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":0
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":1,
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByRandom",
|
||
|
||
"Odds": "specials(ChoiceOdd)"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigLogText",
|
||
|
||
"Messages": [
|
||
|
||
"Event2011311_7",
|
||
|
||
"Event2011311_8"
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//+100压力值
|
||
|
||
"$type" : "Share.CConfigModifySceneProperty",
|
||
|
||
"Property" : "Stamina",
|
||
|
||
"Count" : "specials(Stamina_Inner)"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigCloseDialog"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(NxtIdx20113_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//新建
|
||
|
||
"$type": "Share.CConfigEventModification",
|
||
|
||
"ModificationNum":1,
|
||
|
||
"ModificationType":1,
|
||
|
||
"IndexList":[
|
||
|
||
"specials(temp)"
|
||
|
||
],
|
||
|
||
"TargetCoreNode":0,
|
||
|
||
"TargetEventType":1,
|
||
|
||
"EventID":[
|
||
|
||
"2011310+specials(ID)"
|
||
|
||
],
|
||
|
||
"EventState":"ShowEvent",
|
||
|
||
"VisibleState":"Visible",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(tag)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigFinishEvent"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//****
|
||
|
||
"Battle":{
|
||
|
||
"Actions":[
|
||
|
||
//重新计算cur和nxt,需要在两侧挑一个玩家不会触碰的位置重生,倾向于堵路
|
||
|
||
//根据VDir、HDir决定取玩家位置,
|
||
|
||
//----HDir玩家不在堵路位置的时候,cur&nxt坐标都放堵路位置,复活标记更新
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"Return",
|
||
|
||
"SpecialValue":1201
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigJump",
|
||
|
||
"Jump": "Func_Relive"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//CConfigEmpty
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":0,
|
||
|
||
"ID":1201
|
||
|
||
},
|
||
|
||
//***触发战斗内容***
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigRandomBattleID",
|
||
|
||
"Type":["Elite"],
|
||
|
||
"Tags":["Normal"],
|
||
|
||
"SpecialName":"BattleID"
|
||
|
||
},
|
||
|
||
//***难度提升1(最高2)***
|
||
|
||
{
|
||
|
||
//战斗计数器+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "BattleType_20113",
|
||
|
||
"Value":"scenevar(BattleType_20113)+1",
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByHollowVariable",
|
||
|
||
"Key": "BattleType_20113",
|
||
|
||
"CompareType": "Less",
|
||
|
||
"Count": 2
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//***触发战斗***
|
||
|
||
{
|
||
|
||
"$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.CConfigCloseDialog",
|
||
|
||
"CameraMove":false
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigFinishEvent"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
"OnEnd": {
|
||
|
||
"Actions": [
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigPreset",
|
||
|
||
"PerformKey" : "Chessboard_BattleEnd_After"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigCloseDialog",
|
||
|
||
"CameraMove":false
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigFinishEvent"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//****
|
||
|
||
"Func_Relive":{
|
||
|
||
"Actions":[
|
||
|
||
//获取方向
|
||
|
||
// {
|
||
|
||
// "$type":"Share.CConfigSetSpecial",
|
||
|
||
// "SpecialName":"HDir",
|
||
|
||
// "SpecialValue":0
|
||
|
||
// },
|
||
|
||
// {
|
||
|
||
// "$type":"Share.CConfigSetSpecial",
|
||
|
||
// "SpecialName":"VDir",
|
||
|
||
// "SpecialValue":0
|
||
|
||
// },
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"HDir",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"VDir",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
//设定要获取index的XY信息
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempX",
|
||
|
||
"SpecialValue":"playerpos(X)",
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(VDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempX",
|
||
|
||
"SpecialValue":"specials(MaxX)",
|
||
|
||
"Predicates":[
|
||
|
||
//移动方向
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(HDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//两种情况
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByOr",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//最大优先,玩家不在最大位置
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MaxX)",
|
||
|
||
"Param2":"playerpos(X)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//最小优先,玩家在最小
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MinX)",
|
||
|
||
"Param2":"playerpos(X)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempX",
|
||
|
||
"SpecialValue":"specials(MinX)",
|
||
|
||
"Predicates":[
|
||
|
||
//移动方向
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(HDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//两种情况
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByOr",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//最小优先,玩家不在最小位置
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MinX)",
|
||
|
||
"Param2":"playerpos(X)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//最大优先,玩家在最大
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MaxX)",
|
||
|
||
"Param2":"playerpos(X)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempY",
|
||
|
||
"SpecialValue":"playerpos(Y)",
|
||
|
||
"Predicates":[
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(HDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempY",
|
||
|
||
"SpecialValue":"specials(MaxY)",
|
||
|
||
"Predicates":[
|
||
|
||
//移动方向
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(VDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//两种情况
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByOr",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//最大优先,玩家不在最大位置
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MaxY)",
|
||
|
||
"Param2":"playerpos(Y)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//最小优先,玩家在最小
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MinY)",
|
||
|
||
"Param2":"playerpos(Y)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"tempY",
|
||
|
||
"SpecialValue":"specials(MinY)",
|
||
|
||
"Predicates":[
|
||
|
||
//移动方向
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(VDir)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
//两种情况
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByOr",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//最大优先,玩家不在最大位置
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":0,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MinY)",
|
||
|
||
"Param2":"playerpos(Y)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//最小优先,玩家在最小
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigEventByNot",
|
||
|
||
"Predicates":
|
||
|
||
[
|
||
|
||
//堵路策略
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(ReliveStrategy)",
|
||
|
||
"Param2":1,
|
||
|
||
"CompareType":"Equal"
|
||
|
||
},
|
||
|
||
//玩家位置
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"specials(MaxY)",
|
||
|
||
"Param2":"playerpos(Y)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//执行设定
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigGetIndex",
|
||
|
||
"Position":"Absolute",
|
||
|
||
"Index":"NxtIdx",
|
||
|
||
"X":"specials(tempX)",
|
||
|
||
"Y":"specials(tempY)"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigGetIndex",
|
||
|
||
"Position":"Absolute",
|
||
|
||
"Index":"CurIdx",
|
||
|
||
"X":"specials(tempX)",
|
||
|
||
"Y":"specials(tempY)"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "CurIdx20113_{specials(ID)}",
|
||
|
||
"Value":"specials(CurIdx)"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"specials(NxtIdx)"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//复活标记
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "Relive_20113",
|
||
|
||
"Value":1
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigGoto",
|
||
|
||
"ID":201,
|
||
|
||
"GotoID":"specials(Return)"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
"Func_Wait":{
|
||
|
||
"Actions":[
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "HDir_{specials(ID)}",
|
||
|
||
"Value":2,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(X,2)",
|
||
|
||
"Param2":"specials(MinX)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "HDir_{specials(ID)}",
|
||
|
||
"Value":1,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(X,2)",
|
||
|
||
"Param2":"specials(MaxX)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
//VDir看上下侧
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"temp",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "VDir_{specials(ID)}",
|
||
|
||
"Value":2,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(Y,2)",
|
||
|
||
"Param2":"specials(MinY)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//设置初始方向
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "VDir_{specials(ID)}",
|
||
|
||
"Value":1,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":0,
|
||
|
||
"Param2":"specials(temp)",
|
||
|
||
"CompareType":"NotEqual"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":"getpos(Y,2)",
|
||
|
||
"Param2":"specials(MaxY)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"HDir",
|
||
|
||
"SpecialValue":"scenevar(HDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigSetSpecial",
|
||
|
||
"SpecialName":"VDir",
|
||
|
||
"SpecialValue":"scenevar(VDir_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//X+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(1,0,0,0,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":2,
|
||
|
||
"Param2":"specials(HDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//X-1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(1,0,0,1,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(HDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//Y+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(0,1,0,0,0)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":2,
|
||
|
||
"Param2":"specials(VDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//Y+1
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "NxtIdx20113_{specials(ID)}",
|
||
|
||
"Value":"getindex(0,1,0,0,1)",
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(VDir)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "CurIdx20113_{specials(ID)}",
|
||
|
||
"Value":"scenevar(NxtIdx20113_{specials(ID)})"
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//巡逻标记
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "Wait_20113",
|
||
|
||
"Value":1,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":2,
|
||
|
||
"Param2":"specials(tag)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
//巡逻标记
|
||
|
||
"$type": "Share.CConfigSetHollowVariable",
|
||
|
||
"Key": "Wait_20113",
|
||
|
||
"Value":2,
|
||
|
||
"Predicates":[
|
||
|
||
//HDir !=0
|
||
|
||
{
|
||
|
||
"$type": "Share.CConfigEventByCompareParam",
|
||
|
||
"Param1":1,
|
||
|
||
"Param2":"specials(tag)",
|
||
|
||
"CompareType":"Equal"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
},
|
||
|
||
{
|
||
|
||
"$type":"Share.CConfigGoto",
|
||
|
||
"ID":301,
|
||
|
||
"GotoID":"specials(Return)"
|
||
|
||
}
|
||
|
||
]
|
||
|
||
}
|
||
|
||
}
|
||
|
||
}
|
||
|