Home   Help Search Login Register  

Author Topic: How to make an objective change and such.  (Read 722 times)

0 Members and 1 Guest are viewing this topic.

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
How to make an objective change and such.
« on: 24 Sep 2003, 13:54:23 »
Okay i couldnt think of a good subject name, but thats not the point.

How can i make it so that when an a trigger is activated,  it will make another trigger happen. I want it so if you activate the trigger "alarm" that you get ending 2 but if you dont, you get ending 1

Would it be something like
alarm=true for the one i want it activated, and
alarm=false for the other one?

Thanks in advance, insane.
Hey kid, wanna see a dead body!?

Knut Erik

  • Guest
Re:How to make an objective change and such.
« Reply #1 on: 24 Sep 2003, 15:43:19 »
If you want end2 to activate if the alarm if set off you must have the condicion "ALARM" on that trigger..

And if you want end1 to activate is the alarm if off, you must have the condicion "NOT (ALARM)"

Then.. In your alarm trigger, put this in the on activation field: Alarm = True

NOTE:
You'll need another condicion in the End1 trigger because the variable "Alarm" is False by default..
« Last Edit: 24 Sep 2003, 15:43:35 by Knut Erik »

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to make an objective change and such.
« Reply #2 on: 24 Sep 2003, 19:38:55 »
the variable "Alarm" is False by default..

This is not strictly correct.    When the game encounters an undefinded variable it treats the whole expression containing the variable as false.    So, for example, if the variable alarm had not previously been defined and the game met the expression

alarm

it would treat that expression as false.     To that extent, Knut Erik is exactly right.   However, suppose alarm was undefined (i.e. you're treating it as false) and another variable var1 was set to true.    The game would treat the expression

(not alarm) and (var1)

as false.  
Plenty of reviewed ArmA missions for you to play

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:How to make an objective change and such.
« Reply #3 on: 25 Sep 2003, 13:53:40 »
 :oUhm...thanks :-\...but that wasnt actually the help i was looking for. Sorry if i wasn't clear. How would I do it if, say, I had 2 triggers called
OBJ1
OBJ2
and i needed them both to be completed for the other one to work. What would I put in the "Condition" line of the third trigger?
Hey kid, wanna see a dead body!?

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:How to make an objective change and such.
« Reply #4 on: 25 Sep 2003, 14:15:01 »
trigger1
activation:  as you like
on activation:   done1=true

trigger2
activation:  as you like
on activation:    done2=true

trigger3
condition:   done1 and done2
on activation:  whatever you want


is that what you mean?
Plenty of reviewed ArmA missions for you to play

Offline Insanoblan

  • Members
  • *
  • Look! Im a chicken Marge!
Re:How to make an objective change and such.
« Reply #5 on: 26 Sep 2003, 00:32:26 »
yea, thanks alot
Hey kid, wanna see a dead body!?