Home   Help Search Login Register  

Author Topic: Boolean problem  (Read 518 times)

0 Members and 1 Guest are viewing this topic.

Mandible

  • Guest
Boolean problem
« on: 07 Dec 2004, 18:20:34 »
Hi,

after more than a year off I'm trying myself at mission editing again. Back to basics now and I've got following problem.

I try to set a trigger if soldier 1 or soldier 2 or soldier 3...dies

I'm using the following command in the trigger

condition: (not (alive name01) or (not (alive name02)....

activation: alarm

this always used to work, but now it doesn't. Tried to find something about it in the Forum on this, tried different commands using the command reference, but nothing helps. the trigger doesn't fire...

Anyone could help?

I'm using OFP 1.91

AK-Chester

  • Guest
Re:Boolean problem
« Reply #1 on: 07 Dec 2004, 18:29:21 »
Hm, since you didn't post the whole condition line, I can't be sure, but I'd say: check the brackets. Or leave them away completely, like...

Code: [Select]
not alive unit01 or not alive unit02 or not alive unit03...or...

Code: [Select]
!alive unit01 || !alive unit02 || !alive unit03...and so on.

Mandible

  • Guest
Re:Boolean problem
« Reply #2 on: 07 Dec 2004, 21:28:41 »
Hi,

sorry to have bothered, but after 3 hours of trying I found the solution :P : just did it in an sqs file. Works now. However, still intreagues me why that didn't work.

Thanks for the help.  

Offline Morglor9

  • Members
  • *
Re:Boolean problem
« Reply #3 on: 07 Dec 2004, 23:38:37 »
I agree with AK-Chester. I find brackets to be screwy, and don't use them unless absolutely necessary.
Cymbaline

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Boolean problem
« Reply #4 on: 08 Dec 2004, 11:10:43 »
Brackets are your livesaver, but you have to know where to use 'em.

:beat: *Gets Shot* :beat: