rarmonio8920
Chieftain
- Joined
- Oct 15, 2008
- Messages
- 28
I had a rough idea of what I want to do, but I didn't want to waste time rebuilding the Mod each time and waiting for it to start up. I figured I would just ask if it'd work.
Three Questions:
1.) Is my idea possible?
My Idea: A land unit that can embark and carry other land units as cargo. (i.e. an amphibious transport unit which could hold, say, Marines.) (And yes, I'm aware that they can embark.)
2.) If yes, does the following work?:
- Create an XML file for a new unit with land characteristics. (Civ5Units.xml as a reference)
- Include the <SpecialCargo>SPECIAL_MARINE_UNIT</SpecialCargo> and <DomainCargo>DOMAIN_LAND</DomainCargo> tags.
- Create/modify units that will be able to be carried. For instance, a Marine unit.
- These new/updated units must be designated with <Special> tags.
- Create a "SPECIAL_MARINE_UNIT" Type for the <SpecialCargo> tag. (This will be for the Land Cargo). (Civ5SpecialUnits.xml as a reference.)
- The Land Unit needs one of the Cargo Promotions.
3.) How will AI work?
I'm assuming I would just give the Land Unit Carrier the "UNITAI_CARRIER_SEA" AI. I just don't know what to give the Land Units (the Marines). I'd hate for the computer to create these Land Carriers, Marines load up on them, and then they just stay there... floating around. Or rather, the Marines don't realize they can load up on the Land Carriers.
Thoughts?
Three Questions:
1.) Is my idea possible?
My Idea: A land unit that can embark and carry other land units as cargo. (i.e. an amphibious transport unit which could hold, say, Marines.) (And yes, I'm aware that they can embark.)
2.) If yes, does the following work?:
- Create an XML file for a new unit with land characteristics. (Civ5Units.xml as a reference)
- Include the <SpecialCargo>SPECIAL_MARINE_UNIT</SpecialCargo> and <DomainCargo>DOMAIN_LAND</DomainCargo> tags.
- Create/modify units that will be able to be carried. For instance, a Marine unit.
- These new/updated units must be designated with <Special> tags.
- Create a "SPECIAL_MARINE_UNIT" Type for the <SpecialCargo> tag. (This will be for the Land Cargo). (Civ5SpecialUnits.xml as a reference.)
- The Land Unit needs one of the Cargo Promotions.
3.) How will AI work?
I'm assuming I would just give the Land Unit Carrier the "UNITAI_CARRIER_SEA" AI. I just don't know what to give the Land Units (the Marines). I'd hate for the computer to create these Land Carriers, Marines load up on them, and then they just stay there... floating around. Or rather, the Marines don't realize they can load up on the Land Carriers.

Thoughts?