1. Currently, the unit is revealed only when an enemy steps next to it: I'd like a range=x key be added that would specify the range (in hexes) at which the unit could be detected. So, a unit with a [hides] ability with range=3 would be detected if an enemy moved within 3 hexes of it.

2. The text to be displayed when the "ambush" is triggered should be customizable. Currently it's always "Ambushed!". A new key to specify the text to be used when the unit is revealed should be added to allow this to be customized as well.

So, the current ambush ability (in the [hides] tag) would, after these changes, simply receive these additional keys:

range=1
alert= _ "Ambushed!"

range= could default to 1 or 0. A value of 0 would mean that the unit would only be revealed when an attempt is made to move onto the hex where it is hidden. If this is hard to implement, it can be discarded (and thus make range=0 be illegal), but it'd be nice to have. Do note that currently the unit is revealed only when an enemy moves next to it (into its ZoC), whereas with a range of >1 the discovering unit should stop immediately when stepping into range (just like when sighting a unit) even when it's not stepping into anyone's ZoC. This might be obvious to whoever implements this, but I'd thought I'd mention it just in case.

alert= should default to an empty string. Could default to "Ambushed!" too, it doesn't really matter IMO.

Copyright (C) 2004-2006, the Gna! people. Posted items are owned by whoever posted them.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.