DarkAlzara
Chieftain
- Joined
- Jul 1, 2020
- Messages
- 39
Hey all,
Another question here. So, I'm trying to use the Cree Okihtcitaw as a base for a unique unit in my mod. My mod itself relies on anno domini, which deletes the Type for the Okihtcitaw as shown below:
<Types>
<Delete Type="UNIT_CREE_OKIHTCITAW"/>
</Types>
If I comment this delete out (within the anno domini mod) and use the following insert in my own mod, everything works fine:
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_NAERALITH_SCARTHIA', 'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW' );
However, if I leave the anno domini mod as-is (without uncommenting the Type deletion) and try and re-insert the type, nothing works lol.
INSERT INTO Types
(Type, Kind )
VALUES ('UNIT_CREE_OKIHTCITAW', 'KIND_UNIT' );
I even tried all of this code below to restore the unit, but it doesn't seem to work! Any advice?
INSERT OR REPLACE INTO Types
(Type, Kind )
VALUES ('UNIT_CREE_OKIHTCITAW', 'KIND_UNIT' );
INSERT OR REPLACE INTO TypeTags
(Type, Tag )
VALUES ('UNIT_CREE_OKIHTCITAW', 'CLASS_RECON' ),
('UNIT_CREE_OKIHTCITAW', 'CLASS_CREE_OKIHTCITAW' );
INSERT OR REPLACE INTO Units
(UnitType,
BaseMoves,
Cost,
AdvisorType,
BaseSightRange,
ZoneOfControl,
Domain,
FormationClass,
Name,
Description,
PurchaseYield,
PromotionClass,
Combat,
TraitType)
VALUES ('UNIT_CREE_OKIHTCITAW',
3,
40,
'ADVISOR_CONQUEST',
2,
1,
'DOMAIN_LAND',
'FORMATION_CLASS_LAND_COMBAT',
'LOC_UNIT_CREE_OKIHTCITAW_NAME',
'LOC_UNIT_CREE_OKIHTCITAW_DESCRIPTION',
'YIELD_GOLD',
'PROMOTION_CLASS_RECON',
20,
'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW');
INSERT OR REPLACE INTO UnitAiInfos
(UnitType, AiType )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNITAI_EXPLORE' ),
('UNIT_CREE_OKIHTCITAW', 'UNITTYPE_LAND_COMBAT' );
INSERT OR REPLACE INTO UnitUpgrades
(Unit, UpgradeUnit )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNIT_SKIRMISHER' );
INSERT OR REPLACE INTO UnitReplaces
(CivUniqueUnitType, ReplacesUnitType )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNIT_SCOUT' );
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_NAERALITH_SCARTHIA', 'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW' );
Another question here. So, I'm trying to use the Cree Okihtcitaw as a base for a unique unit in my mod. My mod itself relies on anno domini, which deletes the Type for the Okihtcitaw as shown below:
<Types>
<Delete Type="UNIT_CREE_OKIHTCITAW"/>
</Types>
If I comment this delete out (within the anno domini mod) and use the following insert in my own mod, everything works fine:
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_NAERALITH_SCARTHIA', 'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW' );
However, if I leave the anno domini mod as-is (without uncommenting the Type deletion) and try and re-insert the type, nothing works lol.
INSERT INTO Types
(Type, Kind )
VALUES ('UNIT_CREE_OKIHTCITAW', 'KIND_UNIT' );
I even tried all of this code below to restore the unit, but it doesn't seem to work! Any advice?
INSERT OR REPLACE INTO Types
(Type, Kind )
VALUES ('UNIT_CREE_OKIHTCITAW', 'KIND_UNIT' );
INSERT OR REPLACE INTO TypeTags
(Type, Tag )
VALUES ('UNIT_CREE_OKIHTCITAW', 'CLASS_RECON' ),
('UNIT_CREE_OKIHTCITAW', 'CLASS_CREE_OKIHTCITAW' );
INSERT OR REPLACE INTO Units
(UnitType,
BaseMoves,
Cost,
AdvisorType,
BaseSightRange,
ZoneOfControl,
Domain,
FormationClass,
Name,
Description,
PurchaseYield,
PromotionClass,
Combat,
TraitType)
VALUES ('UNIT_CREE_OKIHTCITAW',
3,
40,
'ADVISOR_CONQUEST',
2,
1,
'DOMAIN_LAND',
'FORMATION_CLASS_LAND_COMBAT',
'LOC_UNIT_CREE_OKIHTCITAW_NAME',
'LOC_UNIT_CREE_OKIHTCITAW_DESCRIPTION',
'YIELD_GOLD',
'PROMOTION_CLASS_RECON',
20,
'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW');
INSERT OR REPLACE INTO UnitAiInfos
(UnitType, AiType )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNITAI_EXPLORE' ),
('UNIT_CREE_OKIHTCITAW', 'UNITTYPE_LAND_COMBAT' );
INSERT OR REPLACE INTO UnitUpgrades
(Unit, UpgradeUnit )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNIT_SKIRMISHER' );
INSERT OR REPLACE INTO UnitReplaces
(CivUniqueUnitType, ReplacesUnitType )
VALUES ('UNIT_CREE_OKIHTCITAW', 'UNIT_SCOUT' );
INSERT INTO CivilizationTraits
(CivilizationType, TraitType )
VALUES ('CIVILIZATION_NAERALITH_SCARTHIA', 'TRAIT_CIVILIZATION_UNIT_CREE_OKIHTCITAW' );