XML and SQL are great if you know the value to put in the DB at boot time.
What if you want to update it at runtime?
I asked this over in http://forums.2kgames.com/forums/showthread.php?p=1199212#post1199212 too.
I am trying to make a mod to provide incremental ranges to the city range attacks based on known techs. I have implemented this by setting:
<Defines>
<Update>
<Where Name="CITY_ATTACK_RANGE" />
<Set Value="4" />
</Update>
</Defines>
and then place further restrict it to range 1-4 based on known techs.
I have it working great... for the player. The AI however does not seem to run though the same code [in WorlView.lua InterfaceModeMessageHandler[InterfaceModeTypes.INTERFACEMODE_CITY_RANGE_ATTACK][MouseEvents.LButtonUp] to be very specifc]
The AI's restriction is only CITY_ATTACK_RANGE == 4;
So I am back to wishing I could alter the DB at runtime... specifically at the beginning of everyone's turn, human and AI player alike.
I have the will, is there a way?
What if you want to update it at runtime?
I asked this over in http://forums.2kgames.com/forums/showthread.php?p=1199212#post1199212 too.
I am trying to make a mod to provide incremental ranges to the city range attacks based on known techs. I have implemented this by setting:
<Defines>
<Update>
<Where Name="CITY_ATTACK_RANGE" />
<Set Value="4" />
</Update>
</Defines>
and then place further restrict it to range 1-4 based on known techs.
I have it working great... for the player. The AI however does not seem to run though the same code [in WorlView.lua InterfaceModeMessageHandler[InterfaceModeTypes.INTERFACEMODE_CITY_RANGE_ATTACK][MouseEvents.LButtonUp] to be very specifc]
The AI's restriction is only CITY_ATTACK_RANGE == 4;
So I am back to wishing I could alter the DB at runtime... specifically at the beginning of everyone's turn, human and AI player alike.
I have the will, is there a way?