View Full Version : Kamikaze [WIP]


CrazyAce
Oct 02, 2010, 10:54 PM
The goal of this mod is to allow the Japanese to build a new Unique Unit known as the Kamikaze. This unit will have its stats set as they are for the Zero by default, except when they bombard anything, they will do a suicide run on their target.

At least this is what I'm hoping for, this is still in experimental phase as this new unit has not been done before and I don't have time to testit, let alone play Civ as much as I want to.

Enjoy!

:EDIT:
Mod is now uploaded.

::XML::

<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 10/2/2010 10:00:05 PM -->
<GameData>
<Units>
<Row>
<Class>UNITCLASS_KAMIKAZE</Class>
<Type>UNIT_KAMIKAZE</Type>
<PrereqTech>TECH_FLIGHT</PrereqTech>
<RangedCombat>50</RangedCombat>
<Cost>420</Cost>
<Moves>2</Moves>
<Immobile>true</Immobile>
<Range>8</Range>
<Special>SPECIALUNIT_MISSILE</Special>
<Valid>true</Valid>
<CityLoad>true</CityLoad>
<CombatClass>UNITCOMBAT_FIGHTER</CombatClass>
<Domain>DOMAIN_AIR</Domain>
<DefaultUnitAI>UNITAI_DEFENSE_AIR</DefaultUnitAI>
<Description>TXT_KEY_UNIT_KAMIKAZE</Description>
<Civilopedia>TXT_KEY_CIV5_INDUSTRIAL_FIGHTER_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_JAPANESE_ZERO_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_KAMIKAZE</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
<Mechanized>true</Mechanized>
<Suicide>true</Suicide>
<AdvancedStartCost>50</AdvancedStartCost>
<AirUnitCap>1</AirUnitCap>
<RangedCombatLimit>100</RangedCombatLimit>
<CombatLimit>0</CombatLimit>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>2</XPValueDefense>
<UnitArtInfo>ART_DEF_UNIT_U_JAPANESE_ZERO</UnitArtInfo>
<UnitFlagIconOffset>63</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_2</IconAtlas>
<PortraitIndex>40</PortraitIndex>
<MoveRate>AIR_REBASE</MoveRate>
</Row>
</Units>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<UnitAIType>UNITAI_DEFENSE_AIR</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<UnitAIType>UNITAI_CARRIER_AIR</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<UnitClassType>UNITCLASS_JET_FIGHTER</UnitClassType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>12</Flavor>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>16</Flavor>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<FlavorType>FLAVOR_AIR</FlavorType>
<Flavor>16</Flavor>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_INTERCEPTION_IV</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_ANTI_FIGHTER</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_AIR_SWEEP</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_WEAK_RANGED</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_AIR_RECON</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<PromotionType>PROMOTION_ANTI_HELICOPTER</PromotionType>
</Row>
<Row>
<UnitType>UNIT_KAMIKAZE</UnitType>
<ResourceType>RESOURCE_OIL</ResourceType>
</Row>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_KAMIKAZE">
<Text>Kamikaze</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_KAMIKAZE">
<Text>The Kamikaze were suicide attacks by military aviators from the Empire of Japan against Allied naval vessels in the closing stages of the Pacific campaign of World War II, designed to destroy as many warships as possible.</Text>
</Row>
</Language_en_US>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_JAPAN</CivilizationType>
<UnitClassType>UNITCLASS_ZERO</UnitClassType>
<UnitType>UNIT_ZERO</UnitType>
</Row>
</Civilization_UnitClassOverrides>
</GameData>


::modinfo::

<?xml version="1.0" encoding="utf-8"?>
<Mod id="29db449b-2680-41a5-884b-d50dabd50739" version="1">
<Properties>
<Name>Kamikaze</Name>
<Stability>Experimental</Stability>
<Description>The goal of this mod is to allow the Japanese to build a new Unique Unit known as the Kamikaze. This unit will have its stats set as they are for the Zero by default, except when they bombard anything, they will do a suicide run on their target.</Description>
<Authors>CrazyAce</Authors>
<SpecialThanks>Kael, Dale, Firaxis, 2K Games and for everyone’s support.</SpecialThanks>
<Homepage>http://forums.civfanatics.com/showthread.php?p=9710461#post9710461</Homepage>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>1</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="1C95CD148746A78601B04E582B62939D">KamikazeUU.xml</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>KamikazeUU.xml</UpdateDatabase>
</OnModActivated>
</Actions>
</Mod>

CrazyAce
Oct 04, 2010, 05:46 PM
I'm putting the code up for all to see.

Thalassicus
Oct 07, 2010, 12:27 AM
Interesting idea! For some reason, it brings to memory the armies of Fanatics the AI would have in Civ II. :)

CrazyAce
Oct 07, 2010, 05:11 PM
I don't think this mod is working... :sad: The tags look right, but I don't see any Kamikaze units, or Civilopedia entries.

I'm still convinced ModBuddy is broke in relaying information to the database for most users.

R0GERSHRUBBER
Oct 09, 2010, 08:19 AM
Perhaps Kamikaze should be a special mission for the Zero unit? The AI might not be able to handle that, though.