Home   Help Search Login Register  

Author Topic: Please help a poor Noob  (Read 1879 times)

0 Members and 1 Guest are viewing this topic.

lewisdark

  • Guest
Please help a poor Noob
« on: 14 Jul 2005, 14:53:25 »
Hi, I've been playing flashpoint for a while now and im just beggining to get the hang of scripting, but I just can't figure out how to make things 'end'....

For instance, at the start of a mission I have made, I use a scripted camera, but when it has finished I am stuck looking at where it finishes and nothing happens. Is there a command I can type in at the end of the script or something to terminate it?

I have the same problem with making missions end, Im not clear on how to use 'forceend'.

I have used the search function and read many tutorials, but none of them have helped me....

anyone? please......?

Offline Pilot

  • Contributing Member
  • **
Re:Please help a poor Noob
« Reply #1 on: 14 Jul 2005, 15:11:48 »
First of all, Welcome to the Forums! :wave:

One question, do you edit in the easy mode or the advanced mode?

Ok, now to the problem.

To get things to end, you will want to get to know End Triggers.  These triggers are what make missions, intros, and outros end.  You can get an end trigger by making a trigger, and then changing it's type to End1, End2, End3, ect.  Either the trigger parameters or global variables can be used to trigger an end trigger.  The parameters of course being anything in the activation field of a trigger, East Present, West Not Present, ect.  When these parameters are met the End Trigger fires and the mission ends.

Global variables are variables that are usually defined in the init.sqs.  They can be anything like:
MissionEnd
MissionDone
PlayNoFurther
ect

Global variables are usually defined as being false in the init.sqs, ex:
MissionEnd=false

Then, when you want the mission to end, in the On Activation field of a trigger, or in a script, type:
MissionEnd=true

Then, in the Condition field of an End Trigger, type:
MissionEnd

Now when MissionEnd is set to true, it will activate the End Trigger and end the mission.

My above explanation may seem like a lot of garbage.  It takes time to learn the different aspects of mission making, and can be frustrating at times.  However, the feeling of making a finished mission far exceeds the learning frustrations.

If you have any questions, feel free to ask.  I'm sure someone else will be here to clarify everything I said :P, so don't worry if you don't get it at first.

Good luck!

-Student Pilot

Dane

  • Guest
Re:Please help a poor Noob
« Reply #2 on: 14 Jul 2005, 17:29:49 »
There are lot's of camera tutorials in the editors depot:
http://www.ofpec.com/editors/browse.php?category=1_3 :)

edit. Oops didn't read the last line, what you need at the end of your'e cam script is these lines:

_cam cameraeffect ["terminate", "back"]
camdestroy _cam
« Last Edit: 15 Jul 2005, 14:00:13 by Dane »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Please help a poor Noob
« Reply #3 on: 15 Jul 2005, 04:43:05 »
^ thats 2 lines  ;D

Quote
Then, when you want the mission to end, in the On Activation field of a trigger, or in a script, type:
MissionEnd=true

whoa, explain this to me pilot.
if you are going to make the global variable true in a trigger why not just make the end trigger activate however the global variable one would.

instead of:
trigger1
condition: (something)
activation: variable = true

trigger2
condition: variable
activation: end the mission (yes i know it doesn't go in the activation line but you get the point  :P)

why not:
trigger1
condition: (something)
activation: end the mission

Dane

  • Guest
Re:Please help a poor Noob
« Reply #4 on: 15 Jul 2005, 14:02:05 »
Quote
^ thats 2 lines  

Dunno what your'e talking about ::)

lewisdark

  • Guest
Re:Please help a poor Noob
« Reply #5 on: 15 Jul 2005, 23:26:35 »
Thanks very much for your help  ;D

Yeah, I work in Advanced mode. I figured how to end camera myself eventually after a lotof experimenting, but that stuff about ending missions really helps, never did get the hang of that.

Oh, while I'm here....I've tried downloading some add ons, but lots won't work because I have version 1.85 and I need version 1.9.......is there anyway I can upgrade for free?

(I picked up the 3 disc game of the year edition for £1.99 i na charity shop :D)
« Last Edit: 15 Jul 2005, 23:27:27 by *dark* »

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Please help a poor Noob
« Reply #6 on: 16 Jul 2005, 00:12:00 »
all versions up to 1.96 (or is it 1.97?) anyway you'll be able to upgrade to that from 1.85 for free, just search for it, you'll get a few links

Quote
Quote:
^ thats 2 lines

Dunno what your'e talking about

hey you edited you post you cheater!
« Last Edit: 16 Jul 2005, 00:13:15 by Triggerhappy »

lewisdark

  • Guest
Re:Please help a poor Noob
« Reply #7 on: 16 Jul 2005, 18:38:58 »
all versions up to 1.96 (or is it 1.97?) anyway you'll be able to upgrade to that from 1.85 for free, just search for it, you'll get a few links
:-\ I tried looking but couldn't find anything...could you post any links?


Offline Pilot

  • Contributing Member
  • **
Re:Please help a poor Noob
« Reply #9 on: 16 Jul 2005, 23:47:04 »
Quote
whoa, explain this to me pilot.
if you are going to make the global variable true in a trigger why not just make the end trigger activate however the global variable one would.
I was just making the point that it can be done different ways.  But one situation does come to mind where a trigger with an end global variable does not necessarily end the mission.  What about a mission that requires two global variables to end?  Each global variable is set to true in different triggers, yet each global variable is required for the ending.  In this case a third trigger would be required that checks for both variables being true before it ends.

-Student Pilot

lewisdark

  • Guest
Re:Please help a poor Noob
« Reply #10 on: 18 Jul 2005, 12:27:42 »
@Triggerhappy

Thanks for the link, but when I click it it says it's expired, and browsing the site I can't tell which add on it is that I need  :-\

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Please help a poor Noob
« Reply #11 on: 18 Jul 2005, 17:06:56 »
so just search for ofp patch and you'll get a crapload

Offline oyman

  • Members
  • *
  • king of pings
Re:Please help a poor Noob
« Reply #12 on: 18 Jul 2005, 17:15:40 »
or you can go to ofp.info's patch section
http://ofp.gamezone.cz/index.php?sekce=patches

lewisdark

  • Guest
Re:Please help a poor Noob
« Reply #13 on: 19 Jul 2005, 21:52:34 »
ok thanks everyone, everything's working, but I still have a problem with the intro....

At the end of the intro I made a trigger with the condition missionend and the activation missionend=true, activated by west. But when the west guy steps into it the intro doesnt end....

is this because there is a seperate 'introend' command or something? or is it becuase i am still onyl previewing the mission?

Offline Triggerhappy

  • Contributing Member
  • **
  • Llama, it's what's for dinner.
Re:Please help a poor Noob
« Reply #14 on: 19 Jul 2005, 22:46:03 »
you just want it to end when the guy enters the trigger?

activation: west present (or grouped to a specific guy if you want, still present)
condition: this
and set the trigger to "end" in the dropdown menu just above condition