Files
turnbasedgamedata/Config/ConfigAI/Adventure/NPCMonster/ST_NPCMonster_Sub_Relax.json
2025-09-25 21:02:32 +02:00

139 lines
3.6 KiB
JSON

{
"AIName": "ST_Sub_NPCMonster_Relax",
"VariableList": [],
"GlobalVariableList": [
{
"$type": "RPG.GameCore.AIVariableFloat",
"Name": "Int_PatrolType",
"IsPrivate": false
}
],
"DecisionList": [],
"TransitionTable": [],
"RootState": {
"Name": "Root",
"TaskList": [
{
"$type": "RPG.GameCore.ST_Side_OverrideVision",
"VisionSetName": "DefaultVision_Relaxed",
"Visions": []
},
{
"$type": "RPG.GameCore.ST_Side_RecordGuardPosition"
}
],
"TransitionList": [],
"SubStateList": [
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"EnterCondition": {
"$type": "RPG.GameCore.ST_ByHasBornSmartObject"
},
"TaskList": [
{
"$type": "RPG.GameCore.ST_Main_PlaySmartObject",
"ParamType": "BornSmartOjbect",
"RecordContext": true
}
],
"Name": "SmartObject"
},
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"EnterCondition": {
"$type": "RPG.GameCore.ByAnd",
"PredicateList": [
{
"$type": "RPG.GameCore.ST_ByCompareVariableFloat",
"VarName": "Int_PatrolType",
"CompareType": "Equal"
},
{
"$type": "RPG.GameCore.ST_ByHasPatrolPath"
}
]
},
"TaskList": [
{
"$type": "RPG.GameCore.ST_Main_Patrol",
"MoveStance": "Walk"
}
],
"Name": "Patrol"
},
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"EnterCondition": {
"$type": "RPG.GameCore.ByAnd",
"PredicateList": [
{
"$type": "RPG.GameCore.ST_ByCompareVariableFloat",
"VarName": "Int_PatrolType",
"CompareType": "Equal",
"CompareValue": 1
},
{
"$type": "RPG.GameCore.ST_ByHasPatrolPath"
}
]
},
"TaskList": [
{
"$type": "RPG.GameCore.ST_Main_MoveAlongPath",
"MoveStance": "Walk"
}
],
"Name": "Patrol"
},
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"TaskList": [],
"SubStateList": [
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"EnterCondition": {
"$type": "RPG.GameCore.ST_ByDistanceToTarget",
"TargetType": "BornPosition",
"CompareType": "Greater",
"CompareValue": 1
},
"TaskList": [
{
"$type": "RPG.GameCore.ST_Main_MoveToPosition",
"PositionType": "BornPos",
"MoveStance": "Walk",
"AlignRotation": true
}
],
"TransitionList": [
{
"Trigger": "OnStateSucceeded",
"TransitionToType": "NextState",
"BoolVariableList": [],
"FloatVariableList": []
}
],
"Name": "IdleMove"
},
{
"$type": "RPG.GameCore.StateTreeStateConfig",
"TaskList": [
{
"$type": "RPG.GameCore.ST_Main_Wait",
"Time": -1
}
],
"Name": "IdleWait"
}
],
"Name": "Idle"
}
]
},
"OnDisable": {
"$type": "RPG.GameCore.TaskConfig"
},
"OnInit": {
"$type": "RPG.GameCore.TaskConfig"
}
}