Kinda lost motivation with artist falling through, but still working here and there. Was wondering if it's possible to disable a civ's unique unit. Want to make an alt leader that doesn't have it.
Since since your alternate leader would necessarily load after the civilization, wouldn't the simplest thing simply be to insert a line deleting the unique unit at the beginning of your mod? Of course, the drawback is that if you wanted to play with any other leaders who use the unit you would have to disable your mod.
Actually, scratch that. Insert code at the beginning of your mod that changes the unit you want to delete from a civilization ability to a leader ability and attach it to the existing leader.
DELETE FROM CivilizationTraits
WHERE TraitType = 'TRAIT_CIVILIZATION_UNIT_IMMORTAL';
INSERT INTO LeaderTraits (LeaderType, TraitType)
VALUES
('LEADER_CYRUS', 'TRAIT_CIVILIZATION_UNIT_IMMORTAL');
This changes it from a civilization ability to a leader ability, so the unit will not show up for alternate leaders.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.