I'm making modifications to many of the vanilla Generals campaign missions, adding extra elements and making them more challenging. In the GLA mission outside Incirlik Air Base, for example, you capture a Chinese hacker at the spy outpost who helps you bring down the Patriot batteries guarding the base if you manage to capture a power plant in town. Originally, destroying the outpost didn't accomplish much except giving you a vantage point from which to launch Scuds; now you use this guy to cause a massive power surge deactivating the (buffed up) Patriot batteries. If you leave him unguarded, however, he calls the American base for help, prompting them to send a Chinook full of rangers to airdrop into the building he's in. I accomplished this with a simple trigger area and a script identifying if you have no (armed) units inside it.
For the final GLA mission, capturing the Baikonur Cosmodrome, I'm going for something different. The same hacker you captured at Incirlik is again in your charge. To succeed in your mission, in addition to completing the original game objectives, you have to escort him with an armed guard to the Ground Control Center after capturing it. However, the idea is that if you don't keep a Rebel near him at all times, he makes a run for either the American base or the Chinese base depending on which is closer (again, controlled by a trigger area) - if he reaches them, a chinook is sent to retrieve him and the mission is failed. If he dies, the mission is failed.
The one element I'm having trouble with is getting him to recognize when there is a guard nearby. I tried using the "If False" tab in combination with the "Unit has sighted a unit of type GLA_InfantryRebel belonging to player PLAYER," but even when this should be registering as true, the code meant to operate when it is false is executed.
Is the "Unit Sighted" command bugged, or is negation in general inoperative?
Again, original Generals here, not Zero Hour. Thanks in advance. I look forward to sharing the finished products.
Edited by user
8 years ago |
Reason: Not specified