Sniper and Spotter Idea

LoneGamer

Warlord
Joined
Sep 27, 2010
Messages
138
My goal is to add 2 new units for end game here and play with the invisible infos a little bit. The idea is that both units are invisible and only the spotter has the ability to see them and has extra vision. They must work together in order to fully benefit from the range the sniper will get. Because the sniper won't have the extra vision the spotter does. Question is

Would the A.I. be able to pick up on this and be able to utilize these traits to his advantage? I just woke up with the idea, haven't coded it in yet and tested the A.I. out. I don't think it would be that hard as I have already gathered the info required to add this from questions I have posted before. Again the only main concern here is the A.I.

Any thoughts or info would be great on this and how to get the A.I. to "get it" so to speak.
 
well the AI will likely build it and use it if you give it the appropriate flavor values, but it will never be able to use it like a human would. I mean the AI can't even really use siege weapons and archers effectively, how in the world would it be able to use this? Seeing as the AI is already so dumb it would probably blend in well actually.
 
My main concern would be that the two units stick together. I may be mixing up civ4 with 5 but I can remember settlers having a warrior walking with them to defend against anyone trying to capture the settler. I'm going through the xml's as I write this hoping to find something to give me an idea, but nothing so far. Anyway I'll keep you guys updated on my good or bad news. Cheers
 
I have found something in CIV5MultiUnitFormations.xml

Code:
<Row>
<Name>Settler Escort</Name>
<Type>MUFORMATION_SETTLER_ESCORT</Type>
<Description>MUFORMATION_SETTLER_ESCORT</Description>
</Row>

and

Code:
<Row>
<MultiUnitFormationType>MUFORMATION_SETTLER_ESCORT</MultiUnitFormationType>
<PrimaryUnitType>UNITAI_SETTLE</PrimaryUnitType>
<SecondaryUnitType>UNITAI_SETTLE</SecondaryUnitType>
<MultiUnitPositionType>MUPOSITION_CIVILIAN_SUPPORT</MultiUnitPositionType>
<RequiredSlot>true</RequiredSlot>
</Row>
&#8722;
<Row>
<MultiUnitFormationType>MUFORMATION_SETTLER_ESCORT</MultiUnitFormationType>
<PrimaryUnitType>UNITAI_DEFENSE</PrimaryUnitType>
<SecondaryUnitType>UNITAI_COUNTER</SecondaryUnitType>
<MultiUnitPositionType>MUPOSITION_FRONT_LINE</MultiUnitPositionType>
</Row>

This might be what I am looking for(I could be entirely wrong). I'll document my test runs in case someone is interested in this for another mod.
 
Top Bottom