Can somebody please link me to a detailed guide or tell me how to edit an existing units values.
I want to edit the production cost of pikemen from 200 to 180.
Here is what I have, it does not work for me.
If somebody knows what is wrong please let me know I am new to modding and SQL but not new to coding.
C# and C++
My modinfo file: (PikemenCost.modinfo)
<?xml version="1.0" encoding="utf-8"?>
<Mod id="77773a5c-a91a-7cc8-ae88-991777a777bd" version="1">
<Properties>
<Name>PikeMenCost</Name>
<Description>PikemenCost180</Description>
<Teaser>PikemenCost180 Teaser</Teaser>
<Authors>LPG</Authors>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsHotSeat>1</SupportsHotSeat>
</Properties>
<FrontEndActions />
<InGameActions>
<UpdateDatabase id="UNIT_PIKEMEN">
<File>PikemenCost.sql</File>
</UpdateDatabase>
</InGameActions>
<Files>
<File>PikemenCost.sql</File>
</Files>
</Mod>
My SQL file: (PikemenCost.sql)
UPDATE Units SET Cost=180 WHERE UnitType='UNIT_PIKEMEN';
I want to edit the production cost of pikemen from 200 to 180.
Here is what I have, it does not work for me.
If somebody knows what is wrong please let me know I am new to modding and SQL but not new to coding.
C# and C++
My modinfo file: (PikemenCost.modinfo)
<?xml version="1.0" encoding="utf-8"?>
<Mod id="77773a5c-a91a-7cc8-ae88-991777a777bd" version="1">
<Properties>
<Name>PikeMenCost</Name>
<Description>PikemenCost180</Description>
<Teaser>PikemenCost180 Teaser</Teaser>
<Authors>LPG</Authors>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsHotSeat>1</SupportsHotSeat>
</Properties>
<FrontEndActions />
<InGameActions>
<UpdateDatabase id="UNIT_PIKEMEN">
<File>PikemenCost.sql</File>
</UpdateDatabase>
</InGameActions>
<Files>
<File>PikemenCost.sql</File>
</Files>
</Mod>
My SQL file: (PikemenCost.sql)
UPDATE Units SET Cost=180 WHERE UnitType='UNIT_PIKEMEN';