Add tile visibility for 1 turn in lua?

turingmachine

Emperor
Joined
May 4, 2008
Messages
1,438
First, is there a way to make a specific tile visible (no Fog of War, can see units, etc.) with lua? (I see Plot.ChangeVisibilityCount, is this what's used?)

However, I don't want to make the tile permanently visible for the rest of the game.

Essentially, I want to trigger visibility over an are after a certain event, then the next turn my visibility reverts back to want I could normally see through my units and cities. I can't just set the viability to none manually because it might be too much to keep track of the plots to the next turn (one instance is tied to a moving unit).

I see Plot:UpdateVisibility(). does anyone know what that does.
 
The only thing that comes to mind is giving units a promotion just for that turn.

Have you looked at unit:SetHasPromotion() ?
 
The only thing that comes to mind is giving units a promotion just for that turn.

Have you looked at unit:SetHasPromotion() ?

That wouldn't help as it's not related to any individual unit's sight radius. I want to essentially revel tiles. In some cases this is related to a unit doing a certain actions, in other cases its not.
 
Back
Top Bottom