Need help Modding

Hajee

Prince
Joined
Nov 4, 2014
Messages
361
Hello, I am a Basic Modder, got a Mod I am working on, However I do have an issue.

I am using Modbuddy XML format (dont know how to use Sql)

I am trying to get a Tech to Revel the Map. Here is the line I got

<Technologies>
<Update>
<Set MapVisible="Yes"/>
<Where Type="TECH_PLANETARY_SURVEY"/>
</Update>
</Technologies>

Issue I have is that the icon shows up on the tech in the Tree, however it does not show to Map. I would think since there is not a column line on that Tech I would have to add it. So i tired using a <Insert> Function (not sure if that is even possible)


Another Issue Is I am trying to make it so You can not settle a city more then 8 titles away form another city. So I got it to where it has to been 4 tiles instead of 3, but I would like it to be no more then 8, so you have to be within 8 to settle a city


Any insight would be helpful
 
Change "Yes" to "true" or "1" and it should work.

It's <Row> rather than <Insert>, but that would give you an error that TECH_PLANETARY_SURVEY already exists.
[The column exists whether or not a given row has a set value for it, because instead the default is used--in this case, 0 or false.]

For your maximum distance idea, since there's no MAX_CITY_RANGE Define, the only way would be to write some custom Lua.
 
Back
Top Bottom