OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: greg147 on 30 Jan 2005, 20:16:53
-
Hi all,
How do I make a briefing have extra pages, like a 'current situation' page which can be accesed via link from the objectives page? I've looked at the tutorials, but they only tell me the basics of briefings.
Thanks in advance ;)
-
there is such a tutorial - its very good
http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=briefing (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&catselected=-1_-1&catagory=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchwhat=1&searchlevel=0&searchwhat=1&searchopts=&searchstring=briefing)
the one by snYpir is the one you want
-
Put the following some where on your objectives page:
<a href="#CurSit">[Current Situation]</a>
The above code is the link to your extra page.
Then, put the following some where underneath the "plans" section in your briefing.html file:
<h2><a name="CurSit">Current Situation</a></h2>
<p>
***INSERT YOUR TEXT HERE***
<a href="#Plan">Back</a>
</p><hr>
The above code is the extra page that will be displayed. it can only be accessed through the link you inserted.
-
Thanks guys ;D
-
Hmmm...... I tried what you said j-man, but in the game it deleted the main plan, and added the page to the end of the notes section. I've attached what I have. Can anyone have a look and see where I've messed up? :-\
-
If you can't find the error, use the Briefing.html in the Tutorial Mission as a template. It has a link to another page: copy, paste and edit text as appropriate.
-
fixed, see attached - you were missing an <hr>....
also, i would advise against using a link back to the plan from anywhere as this messes up the page background, a bug in opf.
on top of that the spelling and grammar need a good look over :P
good luck :)
EDIT: helps if you attach the file bedges ::)
-
Thanks Bedges, it works perfectly now ;D
I have another problem someone might be able to help me out on, but I won't waste space with a new topic, so...
I'm having trouble with Objective status's. "1" ObjStatus "DONE" works for me, but I can't get an objective to be hidden and then not hidden. I've tried "1" ObjStatus "HIDDEN" and "ACTIVE", but they don't work for me.
ObjStatus "ACTIVE" makes the objective disapear, and "HIDDEN" just doesn't work at all. Can anyone help? :P
-
most weird. not having the thing in front of me i'm not sure i can help, but the syntax is fine from the looks of it, so it should work no bother. sorry :-\
-
It may be some dodgy syntax elsewhere in the Briefing. No, don't ask how, but it happens. I had a problem with an Overview the other day. Change one thing here, and something way over there gets screwed up.
-
Check the order you close your tags. You have to close them in the reverse order you opened them.
E.x.
<h1><b><u><i>blah blah</i></u></b></h1>