Home   Help Search Login Register  

Author Topic: make mission fail or complete  (Read 918 times)

0 Members and 1 Guest are viewing this topic.

Offline punisher

  • Members
  • *
make mission fail or complete
« on: 09 Jan 2003, 21:56:02 »
hi
in a mission i want an officer to be protected so if he is shot mission failed.And i want to kill the sniper so when i do that mission complete.
But i dont know how to do that
HELP!
The Gimp clan- pushing the limits of OFP
http://www.youtube.com/user/Pigdogmeat

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:make mission fail or complete
« Reply #1 on: 10 Jan 2003, 16:47:00 »
Easy peasy. Make two triggers, one will activate the win, the other will activate the loss.

For the loss;
Give your officer a name, you need this for later.
Open the trigger propeties and in the TYPE box, drop it down and select Loose at the bottom of the menu (yes it really is spelt like that in the game).
In the activation field of the trigger put;

!(Alive OfficerName)


This is the loss trigger done.

For the win;
Give your sniper a name, again, you need this for later.
Open the trigger propeties and in the TYPE box, drop it down and select END#1 near the middle of the menu.

In the activation field of the trigger put;

!(Alive SNIPERName)

And thats the win trigger done.

Now when the officer dies, you lose the game and when the sniper dies you win the game.

Offline Wolfrug

  • Addons Depot
  • Former Staff
  • ****
  • Official OFPEC Old Timer
Re:make mission fail or complete
« Reply #2 on: 10 Jan 2003, 17:27:13 »
Icarus. You're becoming senile. In case you didn't know that.  :o

he meant that you're supposed to write it in the condition field, not the on activation field  ::) the on activation field is what happens when the condition field is fulfilled, in this case that the officer is not alive, another way to write it would be not(alive officerName). Although in this case you don't need to write anything in the on activation field since it's a straight win/loose situation ;)

other than that little thing, all he said was correct :P


 ::) :D ;)

Wolfrug out.
« Last Edit: 10 Jan 2003, 17:28:55 by Wolfrug »
"When 900 years YOU reach, look as good you will not!"

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
Re:make mission fail or complete
« Reply #3 on: 10 Jan 2003, 18:40:01 »
The voices!!!  The voices in my head are telling me to do things.

No no I musnt, I musnt.

Whats that you say my precious?

Yes I must

Lets burn the OFPEC!!

Yes The voices!

Yes the condition field yes yes!

Diepvriezer

  • Guest
Re:make mission fail or complete
« Reply #4 on: 11 Jan 2003, 00:12:36 »
Make 2 trigger, the first one has this settings:

Trigger 1:
Name: wewon
X: 0
Y: 0
Once
Type: End #1
Condition: not(alive snipername)
On activation: forceEnd

Trigger 2:
Name: weloose
X: 0
Y: 0
Once
Type: Loose
Condition: not(alive officername)
On activation: forceEnd

And for a singleplayer game, add this trigger:

Trigger 3
Name: medead
X: 0
Y: 0
Once
Type: Loose
Condition: not(alive playername)
On Activation: forceEnd

Ok, now replace "snipername, officername and playername" with the name of the sniper, officier and player. (You dont have to give the player a name if you make a multiplayer game, because there are many players in multiplayer.)

Gr. Marcel