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.

4,811 views 6 replies
Reply #1 Top

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.

Reply #2 Top

Just as an aside, I kind of wish this improvement was still in v1.1.

Reply #3 Top

 

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.

Reply #4 Top

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.

 

Reply #5 Top

Thanks a lot impinc.

Reply #6 Top

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).