OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: greg147 on 30 Jan 2005, 20:16:53

Title: Briefing pages
Post 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  ;)
Title: Re:Briefing pages
Post by: bored_onion on 30 Jan 2005, 20:39:30
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
Title: Re:Briefing pages
Post by: j-man on 30 Jan 2005, 20:42:23
Put the following some where on your objectives page:
Code: [Select]
<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:
Code: [Select]
<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.
Title: Re:Briefing pages
Post by: greg147 on 30 Jan 2005, 20:58:15
Thanks guys  ;D
Title: Re:Briefing pages
Post by: greg147 on 30 Jan 2005, 22:23:30
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?  :-\
Title: Re:Briefing pages
Post by: macguba on 30 Jan 2005, 22:28:39
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.
Title: Re:Briefing pages
Post by: bedges on 31 Jan 2005, 14:50:53
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 ::)
Title: Re:Briefing pages
Post by: greg147 on 31 Jan 2005, 17:46:51
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
Title: Re:Briefing pages
Post by: bedges on 31 Jan 2005, 18:24:23
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  :-\
Title: Re:Briefing pages
Post by: macguba on 31 Jan 2005, 18:44:11
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.  
Title: Re:Briefing pages
Post by: Tyger on 01 Feb 2005, 01:28:12
Check the order you close your tags. You have to close them in the reverse order you opened them.
E.x.
Code: [Select]
<h1><b><u><i>blah blah</i></u></b></h1>
Code: [Select]