Home   Help Search Login Register  

Author Topic: End Trigger Complications  (Read 1204 times)

0 Members and 1 Guest are viewing this topic.

Offline Taggart

  • Members
  • *
End Trigger Complications
« on: 17 Mar 2005, 19:03:10 »
The scenario is East defend West attack. There are two Russian Generals that must be killed by the West. An area is defined on the map that the generals cannot leave. The end trigger must then say that either one of the generals has left the area, which is forbidden, or both are dead. Have tried the generals as a group and as individuals, but cannot get it to work. When testing the ending, if as one of the generals, you shoot the other, it ends because the other one, although dead, has also left the area. Have even tried a condition group count, so that when the count is less than one "or" general one is dead and general two is dead, then the mission should end. Am now totally lost.  ??? Any help most appreciated  :)
Tried in vain got an artery

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:End Trigger Complications
« Reply #1 on: 17 Mar 2005, 19:18:40 »
Easy, one you could do:
Code: [Select]
@((not Alive GeneralDude)or(not alive OtherGeneralDude))
?(not alive Generaldude):hint"The GeneralDude! Hes... DEAD!"
?(not alive OtherGeneralDude):hint"The OtherGeneralDude! Hes... DEAD!"
?((not Alive GeneralDude)&&(not alive OtherGeneralDude)):Hint"Heck, there both dead!"
exit
for the distance you could just do
Code: [Select]
@((GeneralDude distance Base > 200)or(otherGeneralDude distance Base > 200))
hint"DANG! one of em got away!"
exit
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline Taggart

  • Members
  • *
Re:End Trigger Complications
« Reply #2 on: 17 Mar 2005, 19:25:17 »
I was just working on the distance theory to solve the problem, excellent thanks, will give it a go. Thanx for speedy response  ;D
Tried in vain got an artery

Offline Taggart

  • Members
  • *
Re:End Trigger Complications
« Reply #3 on: 18 Mar 2005, 11:22:22 »
Got it working last night with the a BAS object sign in the central location and the following end condition "(!alive gen1) && (!alive gen2) or (Gen1 distance Sign > 250) or (Gen2 distance Sign > 250)". Thanx alot can apply this in many other types of map now.  :)
Tried in vain got an artery