QuasarNebula
Chieftain
Hello my good friends ! It's been a while.
I've come with a new problem. I'm creating a series of mods to incorporate some RWBY leaders and civilizations. Right now I'm working on one that has a unique unit, replacing infantry, that does not cost oil, but iron.
The problem is that no matter how I turn the code it doesn't seem to work.
My theory is that by trying to "Insert into" the "units" table, I can't insert "ResourceCost" because it's not in the base game, it's in gathering storm that this exists. I was trying to update the gathering storm file then, "Expansion2_Units" but can't manage to do that. Any idea how I could do it ?
Here is some of the code if you don't want to look in the document :
And thanks for any help provided !
I've come with a new problem. I'm creating a series of mods to incorporate some RWBY leaders and civilizations. Right now I'm working on one that has a unique unit, replacing infantry, that does not cost oil, but iron.
The problem is that no matter how I turn the code it doesn't seem to work.
My theory is that by trying to "Insert into" the "units" table, I can't insert "ResourceCost" because it's not in the base game, it's in gathering storm that this exists. I was trying to update the gathering storm file then, "Expansion2_Units" but can't manage to do that. Any idea how I could do it ?
Here is some of the code if you don't want to look in the document :
INSERT INTO Units (
UnitType,
Name,
Description,
TraitType,
BaseMoves,
Cost,
PurchaseYield,
AdvisorType,
Combat,
RangedCombat,
Range,
BaseSightRange,
ZoneOfControl,
Domain,
FormationClass,
PromotionClass,
Maintenance,
MandatoryObsoleteTech,
PrereqTech,
PrereqCivic
)
SELECT 'UNIT_QUA_ATLESIAN_KNIGHT', -- UnitType
'LOC_UNIT_QUA_ATLESIAN_KNIGHT_NAME', -- Name
'LOC_UNIT_QUA_ATLESIAN_KNIGHT_DESCRIPTION', -- Description
'TRAIT_CIVILIZATION_QUA_ATLESIAN_KNIGHT', -- TraitType
BaseMoves,
Cost - 130,
PurchaseYield,
AdvisorType,
Combat,
RangedCombat,
Range,
BaseSightRange,
ZoneOfControl,
Domain,
FormationClass,
PromotionClass,
Maintenance - 5,
MandatoryObsoleteTech,
PrereqTech,
PrereqCivic
FROM Units
WHERE UnitType = 'UNIT_INFANTRY';
INSERT INTO UnitReplaces
INSERT INTO Units_XP2 (
StrategicResource,
ResourceCost
)
SELECT 'RESOURCE_IRON',
'20'
FROM Units_XP2
WHERE UnitType = 'UNIT_QUA_ATLESIAN_KNIGHT';
And thanks for any help provided !
Last edited: