Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Ending the mission  (Read 1888 times)

0 Members and 1 Guest are viewing this topic.

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Ending the mission
« on: 29 Jun 2003, 22:41:22 »
I can make an object turn true, but the problem is trying to set up the end trigger.  What I want is the group to go somewhere, destroy an object and return to base.  Everything works except the ending, because the final objective is return to base, but they trip this objective true at the start of the mission, not at the end.  I tried to make this trigger:
condition: obj1 == 1
on activation: obj2 == 1

the end trrigger goes off when:
condition: obj1 == 1 AND obj2==1

  which works, but then as soon as they accomplish obj1 the ending happens.  What am I missing?

PheliCan

  • Guest
Re:Ending the mission
« Reply #1 on: 01 Jul 2003, 15:54:23 »
Hmm... I need to know where you set the obj1 variable...

Otherwise, this should work:

In the base, make a trigger:
Activation: east (if played east) present, set it to repeatedly
Text: basetrigger
Name: basetrigger
Condition: this
On Activation: inbase = true
On Deactivation: inbase = false

When the objective is finished, set the variable "objectivefinished" to "true"...

Make a third trigger to end the mission:
Text: endtrigger
Name: endtrigger
Type: End#1
Condition: inbase AND objectivefinished

That should do the trick!  8)

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Ending the mission
« Reply #2 on: 02 Jul 2003, 00:37:10 »
That was the trick.  I keep forgetting about that OnDeactivation line, thanks for the help