Home   Help Search Login Register  

Author Topic: Alternate endings  (Read 1624 times)

0 Members and 1 Guest are viewing this topic.

pazuzu

  • Guest
Alternate endings
« on: 10 Dec 2004, 06:28:28 »
Hi, I'm making a map with 6 objectives. The 1rst obj is to cature Taliban leader & the 5th is to rescue hostage.

I have a problem with how to make the alternative endings where the leader or hostage die or both.

Leader has to be injured to be "1" objstatus "done"; obj=true

If he dies then "1" objstatus "failed"; obj=false

The same with the hostage. She's either rescued or dies

So my qestion is how do I write it out in my End1 trigger to end game?

I got 6 obj & 1rst & 5th are not completed....

Right now I have: obj1 AND obj2 AND obj3 AND obj4 AND obj5 AND obj6 in the condition field for End1 trigger.

What do I put for condition for these alternate endings?

Thanks.

CptBravo

  • Guest
Re:Alternate endings
« Reply #1 on: 10 Dec 2004, 07:15:35 »
"1" objStatus "Failed"; "2" objStatus "Done"

The above is the combo you use for alt. endings.

just add in trig with whatever combination you have so 1 & 2 & 3 "Done" and 4 & 5 "Failed"

pazuzu

  • Guest
Re:Alternate endings
« Reply #2 on: 17 Dec 2004, 20:17:09 »
How would you write that out in the condition field for end trigger?

My attempts failed.

Thanks.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Alternate endings
« Reply #3 on: 17 Dec 2004, 21:41:17 »
can you directly check to see if an objective is "done", "failed" etc?
the way i've done it is using global variables with booleans
Ex: when an objective is done you make a global variable true:
"1" objstatus "done";Obj1 = true
then you do that for each, and you can check for any possible variation:
in the trigger condition:
obj1 && obj2 && obj3 && obj4 && !(obj5) && !(obj6)
! means the opposite, or not. so if you have !(obj5) it means not obj5, or that it is false/null

pazuzu

  • Guest
Re:Alternate endings
« Reply #4 on: 18 Dec 2004, 00:50:59 »
Ok that makes sense....

I usually write it as: obj1 AND obj2 AND etc

You have && instead.....I'm assuming its the same thing?


Thanks again.

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Alternate endings
« Reply #5 on: 18 Dec 2004, 05:20:17 »
yes, exactly
just like:
? = if
|| = or

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Alternate endings
« Reply #6 on: 18 Dec 2004, 14:09:27 »
And emmmm:

== = =  .............for conditional statements

Hehehehehehe


Planck
I know a little about a lot, and a lot about a little.