Improvement Watchtower (Help)

Riker13

King
Joined
Nov 9, 2001
Messages
859
Location
UK
I would like to make a watchtower improvement made by a engineer with the ability to see (View) 10 squares around it, now I know the Units have this ability but not sure if Building or Improvements do?
Any idea?

Riker13:crazyeye:
 
I was working on something like this and there's a partial implementation in my mod that is not currently live. My concept was to use a unit rather than an improvement. This works for most purposes, except I didn't create a way yet to add the unit to the map.
 
Yes I was thinking on the same lines but would prefer an improvement, maybe something Ed will add later. :)
All the best.
 
It's easy with Lua. I suppose you want to add "permanent" visibility, same as a unit has within 2-tiles.
So, in Event ImprovementAddedToMap you must check if this is Watchtower. If so, for the player who owns it, reveal tiles around it within given radius for full visibility (RevealedState,VISIBLE).
That's all.
More problematic would be to hide those tiles once it is pillaged or destroyed. They need to go back to REVEALED state, but some of them could stay visible due to units / borders / other watchtowers.
 
Yes permanent visibility, well as long as its standing. ;)
Im no good with Lua, I really should have a bash at it sometime, its finding the time.
But thanks for info Infixo :)
 
Do you think it would be possible to reuse the national park watchtower model?
 
@Infixo Art is not my thing, so I expect I will use something that is already available or wait until someone makes something.
 
Back
Top Bottom