Moving(or duplicating) table questions

xxhe

Prince
Joined
Mar 10, 2008
Messages
410
Location
California
Hello!

I think one effect in the policy part is interesting. i.e. say, the Policy_CapitalYieldChanges table. And I wanna make one tech (for example Civil Service) be able to give my capital one more food. Here is the table which defines the function in Policies.xml

<Table name="Policy_CapitalYieldChanges">
<Column name="PolicyType" type="text" reference="Policies(Type)"/>
<Column name="YieldType" type="text" reference="Yields(Type)"/>
<Column name="Yield" type="integer" notnull="true"/>
</Table>

My question is: can I move the table to the tech part by introducing this table in the beginning of my tech.xml (And I'll change the PolicyType to TechType or whatever)? Or I have to redifine this table in lua or even dll?

Thanks in advance;)
 
XML tables are used by the source code of the game, and/or the .lua scripts, to set the values the scripts need (and even then, many of the XML-set values aren't used). Adding a new table to the top of an XML file does nothing, because nothing in the engine would understand how to deal with it. And in the case of this sort of table, I doubt a .lua script deals with it, this is game source code sort of stuff to me. So chances are, you can't do it.
 
Back
Top Bottom