Advanced stuff? Modifying an AI behavior tree

Lord Shadow

Admiral
Joined
Oct 14, 2005
Messages
2,177
Hey guys. The XML is rather cryptic, but I'd like to shorten the Barbarian scouting behavior, so that raids are triggered as soon as a recon unit spots a city.

Here's what I've been able to find related to the Barbarian Found City behavior:
Code:
Search "Barbarian Found City" (22 hits in 1 file)
  C:\SteamLibrary\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Gameplay\Data\BehaviorTrees.xml (22 hits)
    Line 453:     <Row TreeName="Barbarian Found City" />
    Line 493:     <Row NodeType="Sequence" NodeId="0" TreeName="Barbarian Found City" JumpTo="6" />
    Line 494:     <Row NodeType="Decode Trigger" NodeId="1" TreeName="Barbarian Found City" />
    Line 495:     <Row NodeType="Concurrent" NodeId="2" TreeName="Barbarian Found City" JumpTo="5" />
    Line 496:     <Row NodeType="Protect Unit" NodeId="3" TreeName="Barbarian Found City" />
    Line 497:     <Row NodeType="Move Unit" NodeId="4" TreeName="Barbarian Found City" />
    Line 498:     <Row NodeType="Notify Owner" NodeId="5" TreeName="Barbarian Found City" />
    Line 1058:     <Row DefnId="0" NodeId="1" TreeName="Barbarian Found City" />
    Line 1059:     <Row DefnId="1" NodeId="1" TreeName="Barbarian Found City" />
    Line 1060:     <Row DefnId="2" NodeId="1" TreeName="Barbarian Found City" />
    Line 1061:     <Row DefnId="3" NodeId="1" TreeName="Barbarian Found City" />
    Line 1062:     <Row DefnId="4" NodeId="1" TreeName="Barbarian Found City" />
    Line 1063:     <Row DefnId="5" NodeId="1" TreeName="Barbarian Found City" Tag="Home Camp" />
    Line 1064:     <Row DefnId="6" NodeId="1" TreeName="Barbarian Found City" />
    Line 1065:     <Row DefnId="7" NodeId="1" TreeName="Barbarian Found City" />
    Line 1066:     <Row DefnId="8" NodeId="1" TreeName="Barbarian Found City" Tag="Tribe Index" />
    Line 1067:     <Row DefnId="1" NodeId="3" TreeName="Barbarian Found City" DefaultData=".25" />
    Line 1068:     <Row DefnId="1" NodeId="4" TreeName="Barbarian Found City" Tag="Home Camp" />
    Line 1069:     <Row DefnId="2" NodeId="4" TreeName="Barbarian Found City" DefaultData="1" />
    Line 1070:     <Row DefnId="3" NodeId="4" TreeName="Barbarian Found City" DefaultData="false" />
    Line 1071:     <Row DefnId="4" NodeId="4" TreeName="Barbarian Found City" DefaultData="1" />
    Line 1072:     <Row DefnId="0" NodeId="5" TreeName="Barbarian Found City" Tag="Tribe Index" />

So the question is, which chunk should I chop off so to skip from "city spotted" to "raid triggered"? Anyone got the faintest clue? :think:
 
Back
Top Bottom