Jump to content

Recommended Posts

OK so substitute "player" for "x" (x being name of unit) for example?

That's it?

Ill give it a try and thanks :)

Eth

Well, basically thats the idea. However, updating will be a bit more complicated.

Share this post


Link to post
Share on other sites

Hello, i have read & learned a lot from this thread thanks to all those that have contributed. Although in the end (cos of my hopeless memory & general confusion) i chose just to use the "briefing manager" by alimag. Which is working fine for me except i cant figure out how to put an image in before the mission starts, i want the image to be in the mission book before you start the mission.

And does the image have to be no larger than 200x200?

Thx

here is my briefing code

// A2BM W  ƒ € 110
// DO NOT EDIT THIS FILE

waitUntil {!(isNull player)};
waitUntil {player==player};
switch (side player) do
{
case WEST:
{
player createDiaryRecord ["Diary",["Intel:","All the info we have has come straight from our <marker name='sp'>Spotter</marker> who has been watching since the seige began yesterday. He wants you to know that theres a <marker name='c'>Warehouse</marker> that is being used as a weapons cache, rearm yourselves if the need arises.<br/><br/>The Terrorists have not made any demands, it seems they want the town for their own Stronghold maybe! But the CDF dont want to make too much of a fuss over it, they dont want it to get to the media as it always gets messy and political and we dont want that.<br/><br/>Thats why your here, we want this one done swiftly and without any civillian casualties. Hurt them Infidels and hurt them hard, i dont want any of em livin in my backyard!<br/><br/>NOW GET OUT THERE!!! <br/>"]];
MAG_tskObj2=player createSimpleTask ["Assasinate the Leader"];
MAG_tskObj2 setSimpleTaskDescription ["Once you have secured the area, locate and search the <marker name='hr'>Highrise buildings</marker> and find and take down whoever is responsible for this. <br/><br/>Liberate the City and free any Hostages.","Assasinate the Leader","Assasinate the Leader"];
MAG_tskObj1=player createSimpleTask ["Destroy Static Emplacements"];
MAG_tskObj1 setSimpleTaskDescription ["Once inside the walls your first priority is to neutralise <marker name='st'>Static</marker> emplacements at main building to help CDF forces.<br/><br/>Infiltrate Fortifications","Destroy Static Emplacements","Destroy Static Emplacements"];
MAG_tskObj0=player createSimpleTask ["Eliminate the Terrorists"];
MAG_tskObj0 setSimpleTaskDescription ["Situation: An elite force of organised Terrorists have seized control of <marker name='vor'>Vortuka</marker>. At this stage it is unknown if the towns people are being held hostage or not, we wont know untill we get in there. All we know is the Terrorists have setup a Stronghold and have static fortifications in place. All entrances to the town have been blocked.<br/><br/>The CDF will strike from the <marker name='cdf'>South</marker> creating a diversion on the <marker name='mo'>main offensive</marker> while your Black Ops team will infiltrate from the <marker name='nth'>North</marker> making entry via a hole in the towns wall.<br/><br/>Eliminate the Hostiles.","Eliminate the Terrorists","Eliminate the Terrorists"];
};
case EAST:
{
};
case RESISTANCE:
{
};
case CIVILIAN:
{
};
};

where would i slot the code, and is the below correct?

add an image: 		<img image='somePic.jpg'/> 
		         <img image='somePic.jpg' width='200' height='200'/>

can i just use the top code if i resize the image to 200x200 first.. does the bottom one change the pic size by itself?

Thx for ya time in advance :)

Edited by viibez
add code...

Share this post


Link to post
Share on other sites

Picture must be 2^n. ie

2*2

4*4

8*8

16*16

32*32

64*64

128*128

256*256

512*512

1024*1024

I'm sure that should be enough.

Share this post


Link to post
Share on other sites
How do you add multi pages for a briefing in ArmA 2? Is there a command string to make a new page?

There is no spoon.. pages I mean. Just create multiple notes.

Share this post


Link to post
Share on other sites

Is there a way to make the diary page active at startup in multiplayer briefings? At startup it just looks at the player info with ping and other uninteresting things and you have to be interested enough to click on the diary yourself.

Share this post


Link to post
Share on other sites

I have a problem with images, it can't find them, I put the images in the mission folder, but when i view the briefing it says something like 200x200 n^ (my images are set to 200x200).

edit: nvm

Edited by TimeDeatH

Share this post


Link to post
Share on other sites
I have a problem with images, it can't find them, I put the images in the mission folder, but when i view the briefing it says something like 200x200 n^ (my images are set to 200x200).

That means the dimensions have to be 64, 128, 256 and so on.

Share this post


Link to post
Share on other sites
Picture must be 2^n. ie

I'm sure that should be enough.

Lol no sorry it isnt :p

My problem is im not sure where to put the code! in my post above with briefing, where abouts does the "image" code go so it shows in the book before the mission starts?

I tried putting it after create diray.

player createDiaryRecord ["Diary",<img image='somePic.jpg' width='200' height='200'/> It didnt work.

Share this post


Link to post
Share on other sites
Lol no sorry it isnt :p

My problem is im not sure where to put the code! in my post above with briefing, where abouts does the "image" code go so it shows in the book before the mission starts?

I tried putting it after create diray.

player createDiaryRecord ["Diary",<img image=somePic.jpg' width='200' height='200'/> It didnt work.

Use this format:

player createDiaryRecord ["Diary",["Entryname","<img image='somePic.jpg' width='200' height='200'/&gt]]

Share this post


Link to post
Share on other sites
Use this format:

player createDiaryRecord ["Diary",["Entryname","<img image=somePic.jpg' width='200' height='200'/&gt]]

Thx celery i see that puts an image in with the notes. :) But i want an image to be displayed in the mission book, so when you select the mission (but have not hit "play" yet) you will see an image on the right side of the book instead of it being blank!.

Share this post


Link to post
Share on other sites
Shouldn't this topic be stickied, as we're in the mission editing forum ?

Absolutely. There's so many damn threads about the same thing that for some topics the search function doesn't help too much. Plus people make ridiculous thread titles that don't provide any insight into the thread. This and a few other threads most definitely should be stickied. There are so many "briefing help" threads when all good info is right here. A sticky may help that. Just my opinion though.

Share this post


Link to post
Share on other sites
Absolutely. There's so many damn threads about the same thing that for some topics the search function doesn't help too much. Plus people make ridiculous thread titles that don't provide any insight into the thread. This and a few other threads most definitely should be stickied. There are so many "briefing help" threads when all good info is right here. A sticky may help that. Just my opinion though.

That is what the FAQ is for, because too many threads need a stick, so their all there. The FAQ is stick-ied.

Share this post


Link to post
Share on other sites
I want an image to be displayed in the mission book, so when you select the mission (but have not hit "play" yet) you will see an image on the right side of the book instead of it being blank!.

CAN ANYONE ANSWER THIS SIMPLE QUESTION PLEASE?

or if u r so concerned about similar threads then just put a link to the answer instead of just talking about it!

Share this post


Link to post
Share on other sites

That is called the overview picture. Open up a BIS mission to figure it out. This is a volunteer help forum mate, don't expect anything, especially with that attitude.

Edited by Rommel

Share this post


Link to post
Share on other sites
That is called the overview picture. Open up a BIS mission to figure it out. This is a volunteer help forum mate, don't expect anything, especially with that attitude.

excuse me! my attitude is fine. but you see it all the time, people make reference to the answer being on another thread but dont dont bother to leave a link etc. ie waste of post :)

Share this post


Link to post
Share on other sites

If A2 is anything like OFP, the preview image and description are done in "overview.html". I don't know much about it myself because I don't make SP missions but you can probably look for more information about it or open up a mission that uses it.

Share this post


Link to post
Share on other sites
How to make a basic Briefing in ArmA 2

You can also show the state of the task with the taskHint command, but since that command is kinda hard to use, we're gonna use a function that I've made to make a lot easier to show the task state.

It's not hard to use, in my opinion. Simply add to the end of the task's trigger something like:

taskhint ["Well Done!\nYou've Completed Whatevertask!", [0, 1, 0, 1], "taskDone"]

No need of adding extra scripts to mission.

Share this post


Link to post
Share on other sites

Try as I might; and I've read/followed this complete thread; I still can't get the task descriptions to show up (setSimpleTaskDescription). Task Objectives show np (createSimpleTask)

I can get them to show in the notes, but the markers are blocked/unviewable under the green textbox. One of my task lines follows:

// secondary objective - second

tskobj2 = player createSimpleTask ["Get to Extraction Area"];

tskobj2 setSimpleTaskDescription ["proceed to <marker name= 'Extraction'>Extraction</marker> area for Little Bird Pick up ."]

(I've tried the other quotation marks and double quotations, still no go)

I'm probably missing something impeccably silly. Any idea anyone?

Share this post


Link to post
Share on other sites

"setSimpleTaskDescription" works like this:

task1 setSimpleTaskDescription ["Description","Task Name","HUD Text"];

"HUD Text" will show a text above the marker in your HUD wich you can set by "setSimpleTaskDestination". It's not necessary to give a HUD Text, istead you can just write "".

This will solve your problem:

tskobj2 setSimpleTaskDescription ["proceed to <marker name= 'Extraction'>Extraction</marker> area for Little Bird Pick up .","Get to Extraction Area",""];

Share this post


Link to post
Share on other sites

Interesting note when placing image in briefing: Images must be 2^N X 2^M size (ex: 512X1024), and if you change the image it'll only change in the game after restarting the game or changing the mission file name in the mission directory and the briefing code - otherwise the game saves the image to memory based on its file name and never reads the image file again (until the entire game is restarted). Also, images wider than 512 pixels will glitch out of the briefing text area and will not be shown properly (they'll get "cut").

Share this post


Link to post
Share on other sites

I have Vista...And whenever I try to rename the file w/o the txt part, I can't open it? anyone know what to do?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×