More trades routes (with the civic "foreign trade")

Misplay

Chieftain
Joined
Nov 6, 2016
Messages
18
Hi folks!
The civic "Foreign trade" provides 1 trade route. How can I increase this number?

EDIT: Here's the solution. Add a "." between "foreigntrade" and "modinfo"/"sql". And delete ".txt".
 

Attachments

Last edited:
In SQL:
Code:
UPDATE ModifierArguments SET Value = '2' WHERE ModifierId = 'CIVIC_GRANT_ONE_TRADE_ROUTE' AND Name = 'Amount';

Set Value to whatever you desire.
 
Last edited:
Thx a lot guys!
@ Horem: I will use your code.

I never learnt to code, but I'm curious. Here's the code I tried:

Code:
    <Civics>
       <Update>
           <Where ModifierId="CIVIC_GRANT_ONE_TRADE_ROUTE" />
           <Set Value="X" />
       </Update>
   </Civics>
It's messy and doesn't work.

Questions:
> What should I write after the "<Where "?
> WHat's wrong with this try?
 
1. The sql is working. I'll update the first post asap.
2. Xml file:
Code:
<GameInfo>
   <Civics>
       <Update>
           <Where ModifierArguments="CIVIC_GRANT_ONE_TRADE_ROUTE" />
           <Set Value="2" />
       </Update>
   </Civics>
</GameInfo>
Right?
 
No, the XML would need to look like this:
Code:
<GameInfo>
     <ModifierArguments>
          <Update>
               <Where ModifierId="CIVIC_GRANT_ONE_TRADE_ROUTE" Name="Amount"/>
               <Set Value="2"/>
          </Update>
     </ModifierArguments>
</GameInfo>
The ModifierArguments table is separate from the Civics table.
 
Back
Top Bottom