I've been trying my hand at creating a mod using sql, and it has been very interesting so far, but it seems that I run into some sort of load issue. Does anyone have any idea why that would be ?
The goal of this small mod is to change the leader trait of Wilhelmina to have an extra economic policy slot
This is what I have in my Billionaire.modinfo file,
And this is the contents of my Billionaire.sql file
Any and all help is appreciated.
The goal of this small mod is to change the leader trait of Wilhelmina to have an extra economic policy slot
This is what I have in my Billionaire.modinfo file,
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="5a49c033-8f55-486a-a238-4a10de74eb66" version="1">
<Properties>
<Name>Queen Wilhelmina Billionaire</Name>
<Teaser>Adds Economic Policy slot to Wilhelmina</Teaser>
<Description>Changes Wilhelmina's leader trait from "Radio Oranje" to "Billionaire", which simply adds an economic policy slot.</Description>
<Authors>Put your name here</Authors>
</Properties>
<Files>
<File>Billionaire.sql</File>
</Files>
<Components>
<UpdateDatabase id="Gameplay">
<Items>
<File>Billionaire.sql</File>
</Items>
</UpdateDatabase>
</Components>
</Mod>
And this is the contents of my Billionaire.sql file
Code:
UPDATE LeaderTraits SET TraitType='TRAIT_BILLIONAIRE' WHERE LeaderType='LEADER_WILHELMINA';
INSERT INTO TraitModifiers
(TraitType, ModifierId)
VALUES ('TRAIT_BILLIONAIRE', 'TRAIT_ECONOMIC_GOVERNMENT_SLOT');
INSERT INTO Modifiers
(ModifierId, ModifierType, Permanent)
VALUES ('TRAIT_ECONOMIC_GOVERNMENT_SLOT', 'MODIFIER_PLAYER_CULTURE_ADJUST_GOVERNMENT_SLOTS_MODIFIER', 0);
INSERT INTO ModifierArguments
(ModifierId, Name, Value)
VALUES ('TRAIT_ECONOMIC_GOVERNMENT_SLOT', 'GovernmentSlotType', 'SLOT_ECONOMIC');
Any and all help is appreciated.