Files
turnbasedgamedata/Config/Level/Props/Chap02/InitLevelGraph_Prop_Chap02_RotatableBridge_01.json
2025-07-03 10:50:43 +02:00

393 lines
11 KiB
JSON

{
"OnInitSequece": [],
"OnStartSequece": [
{
"TaskList": [
{
"$type": "RPG.GameCore.WaitEntityEvent",
"EventName": {
"Value": "Clt_TriggerOpen"
},
"OnEvent": [
{
"$type": "RPG.GameCore.PredicateTaskList",
"Predicate": {
"$type": "RPG.GameCore.ByCompareEntityAuthoritySide"
},
"SuccessTaskList": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvClientChangePropState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"ToState": "Open"
}
]
}
]
}
],
"FailedTaskList": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"OnSuccess": [
{
"$type": "RPG.GameCore.PropReqInteract",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"InteractID": {
"IsDynamic": false,
"FixedValue": {
"Value": 1010
}
}
}
]
}
]
}
]
}
]
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.WaitEntityEvent",
"EventName": {
"Value": "Clt_TriggerClose"
},
"OnEvent": [
{
"$type": "RPG.GameCore.PredicateTaskList",
"Predicate": {
"$type": "RPG.GameCore.ByCompareEntityAuthoritySide"
},
"SuccessTaskList": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"Case": "Open",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvClientChangePropState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"FromState": "Open"
}
]
}
]
}
],
"FailedTaskList": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"Case": "Open",
"OnSuccess": [
{
"$type": "RPG.GameCore.PropReqInteract",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"InteractID": {
"IsDynamic": false,
"FixedValue": {
"Value": 1100
}
}
}
]
}
]
}
]
}
]
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.LoopWaitEntityServerEvent"
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.LoopWaitEntityServerEvent"
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.WaitPropStateChange",
"FromAnyState": true,
"ToAnyState": true,
"OnChange": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvSetColliderGroupState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"GroupName": "State01"
},
{
"$type": "RPG.GameCore.SetNavMeshState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"Name": {
"Value": "State01"
}
}
]
},
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"Case": "Open",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvSetColliderGroupState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"GroupName": "State02"
},
{
"$type": "RPG.GameCore.SetNavMeshState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"Name": {
"Value": "State02"
}
}
]
}
]
}
]
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvSetColliderGroupState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"GroupName": "State01"
},
{
"$type": "RPG.GameCore.SetNavMeshState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"Name": {
"Value": "State01"
}
}
]
},
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"Case": "Open",
"OnSuccess": [
{
"$type": "RPG.GameCore.AdvSetColliderGroupState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"GroupName": "State02"
},
{
"$type": "RPG.GameCore.SetNavMeshState",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"Name": {
"Value": "State02"
}
}
]
}
]
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.WaitEntityEvent",
"EventName": {
"Value": "Clt_ToggleTest"
},
"OnEvent": [
{
"$type": "RPG.GameCore.GenericSwitchCase",
"SwitchRef": {
"$type": "RPG.GameCore.SwitchRefPropState"
},
"Cases": [
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"OnSuccess": [
{
"$type": "RPG.GameCore.TriggerEntityEvent",
"EventName": {
"Value": "Clt_TriggerOpen"
}
}
]
},
{
"$type": "RPG.GameCore.PropStateCaseContainer",
"Case": "Open",
"OnSuccess": [
{
"$type": "RPG.GameCore.TriggerEntityEvent",
"EventName": {
"Value": "Clt_TriggerClose"
}
}
]
}
]
}
]
}
]
},
{
"IsLoop": true,
"TaskList": [
{
"$type": "RPG.GameCore.WaitPropStateChange",
"FromAnyState": true,
"ToAnyState": true,
"OnChange": [
{
"$type": "RPG.GameCore.TriggerSound",
"SoundName": {
"Value": "Ev_sfx_xianzhou_rotatebridge_vertical_start"
},
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
}
},
{
"$type": "RPG.GameCore.WaitSecond",
"WaitTime": {
"IsDynamic": false,
"FixedValue": {
"Value": 5
}
}
},
{
"$type": "RPG.GameCore.TriggerSound",
"SoundName": {
"Value": "Ev_sfx_xianzhou_rotatebridge_vertical_end"
},
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
}
}
]
}
]
},
{
"TaskList": [
{
"$type": "RPG.GameCore.AdvSetupCustomTaskTrigger",
"TargetType": {
"$type": "RPG.GameCore.TargetFetchAdvPropEx"
},
"TriggerName": "DetectNPC"
}
]
}
],
"ValueSource": {
"Values": [
{
"$type": "RPG.GameCore.SharedInt",
"Key": "CanInteractDuringLocked"
}
]
},
"Type": "Entity",
"EntityEventList": [
{
"Name": "Clt_TriggerOpen"
},
{
"Name": "Clt_TriggerClose"
},
{
"Name": "Srv_TriggerOpen",
"IsClient": false
},
{
"Name": "Srv_TriggerClose",
"IsClient": false
},
{
"Name": "Clt_ToggleTest"
}
]
}