Building Vision Help
There used to be a improvement called a Watch Tower. It gave vision. Was wondering if anyone knew the code to give buildings vision because I can't find it and giving it unit sight doesn't work. Thanks.
There used to be a improvement called a Watch Tower. It gave vision. Was wondering if anyone knew the code to give buildings vision because I can't find it and giving it unit sight doesn't work. Thanks.
I can't give you an answer, but I can give you something... In the code for the Eyes of the Eagle spell is the following code.
<GameModifier InternalName="Reveal">
<ModType>Map</ModType>
<Attribute>Reveal</Attribute>
<Duration>1</Duration>
</GameModifier>
I wonder if this GameModifier tag could be adapted to an improvement.... I know it's not much, but it might be a starting point. If I still had v1.09, I could do better, but I don't.
Just as an aside, I kind of wish this improvement was still in v1.1.
I tried:
<GameModifier>
<ModType>City</ModType>
<Attribute>AdjustDefendingUnit</Attribute>
<Value>25</Value>
<Operator>+</Operator>
<StrVal>UnitStat_Sight</StrVal>
<PerTurn>1</PerTurn>
</GameModifier>
and it says all units in the city are getting +25 vision but they aren't actually piercing the fog of war. I will try your idea LightofAbraxas, thanks for the help.
It's actually easier than you think.
<Sight>10</Sight>
That will increase sight from the improvement, not the city center by 10 tiles. Just something to keep in mind.
Thanks a lot impinc.
No problem.
By the way, this is for anyone modding. If you are stuck or need help, you can always drop by the #elemental channel in IRC. Heavenfall, Kenata, and myself usually are in there (at least one of us). We tend to lurk, so don't always expect us to answer right away (we're usually doing other stuff on top of being in IRC so it sometimes takes a while to see the chatter).
Welcome Guest! Please take the time to register with us.