1
EaW and FoC Mods / Coding the AI
« on: March 29, 2018, 08:59:33 AM »
I have a question about a line of code found in the source file for FOC. Under XML\AI\Goals there are many files like AI_Goals_Underworld_Galactic.xml that have code that looks like this for example:
<Corrupt_Planet>
<AIGoalApplicationFlags> Enemy </AIGoalApplicationFlags>
<GameMode>Galactic</GameMode>
<Category>Infrastructure</Category>
<Reachability>Any</Reachability>
<Time_Limit>60.0</Time_Limit>
<Build_Time_Delay_Tolerance>1.25</Build_Time_Delay_Tolerance>
<Tracking_Duration>300.0</Tracking_Duration>
<Per_Failure_Desire_Adjust>-20.0</Per_Failure_Desire_Adjust>
</Corrupt_Planet>
What I am curious about is if the tag <Corrupt_Planet> is hard-coded or not? If that's the case then does only the code inside the tags matter more?
<Corrupt_Planet>
<AIGoalApplicationFlags> Enemy </AIGoalApplicationFlags>
<GameMode>Galactic</GameMode>
<Category>Infrastructure</Category>
<Reachability>Any</Reachability>
<Time_Limit>60.0</Time_Limit>
<Build_Time_Delay_Tolerance>1.25</Build_Time_Delay_Tolerance>
<Tracking_Duration>300.0</Tracking_Duration>
<Per_Failure_Desire_Adjust>-20.0</Per_Failure_Desire_Adjust>
</Corrupt_Planet>
What I am curious about is if the tag <Corrupt_Planet> is hard-coded or not? If that's the case then does only the code inside the tags matter more?