Sweeper Scan

OrionVeteran

Deity
Joined
Dec 25, 2003
Messages
2,443
Location
Newport News VA
I want to make a scan of a max range of 3 plots in all directions from the Mine Sweeper unit. The scan should reveal the plots, within range, where invisible enemy mines may exist. The scan should only be allowed before the Sweeper unit has moved.

The coding approach should be similar to how ranged bombardment works, only the highlighted plots need to reveal the invisible enemy mines and I need to turn off the scan when the unit moves to another plot.

I have 2 issues to resolve:

1. I'm not sure how to reveal the invisible enemy mines (visually).
2. I'm not sure how to limit the scan to happen only before the sweeper unit has moved.

Any help to solve these issues would be appreciated.
 
This scanning feature is interesting, but I think it would make things more complicated.

1. However, maybe the button could trigger the see invisibility function temporarily. I was experimenting with DPII's see invisible promotion from conquerer's delight, but I think a little bit of the code was missing.

2. The scan is a mission? So changeMoves should probably go in the mission function. That is the only thing I could think of.
 
This scanning feature is interesting, but I think it would make things more complicated.

1. However, maybe the button could trigger the see invisibility function temporarily. I was experimenting with DPII's see invisible promotion from conquerer's delight, but I think a little bit of the code was missing.

2. The scan is a mission? So changeMoves should probably go in the mission function. That is the only thing I could think of.

At first, I used range code to highlight all plots within a 3 plot range from the Sweeper. Then I changed the color of the plots that had enemy mines. Lastly, I limited the highlighted plots to show only the plots that had an enemy mine within range. It works great. This scan feature provides human players the same capability the AI does automatically. There are no buttons involved. It just works. The decision to make the Sweeper invisible became mandatory, as visible Sweepers made for easy targets. All you needed was a tactical nuke to eliminate the threat to your mine defences. So, the decision was made to make both the Sweepers and mines invisible, like spies. The result is every sweeper has a fighting chance to not only survive, but to accomplish the mission it was intended for: The removal of enemy mines.
 
Interesting. I'm glad it is moving to sdk because I had to remove the land portion part in python (tediously) to remove python errors. As you prob know many of my Scenerios are heavily dependant on this feature. You've also given me the idea to move other things to sdk, such as the lawyer mod/great diplomat mod.
 
Back
Top Bottom