Advertisement

Author Topic: How to make a basic briefing in ArmA 2  (Read 53067 times)

0 Members and 1 Guest are viewing this topic.

Offline fleepee

  • Members
  • *
  • Enter the Matrix!
Re: How to make a basic briefing in ArmA 2
« Reply #15 on: 29 Jun 2009, 07:47:53 »
Quote
What about multilanguage briefings? Do you need to use stringtable.csv to make them?

Yes, that's what I've done... ;)

Re: How to make a basic briefing in ArmA 2
« Reply #16 on: 06 Jul 2009, 20:01:09 »
<SOLVED>

Hello,

I'm trying to have completion of task1 create a new task: task4. Here is the code I'm using:

Code: [Select]
if task4trigger == go then {
task4 = player createSimpleTask["Free Hostages"];
task4 setSimpleTaskDescription["Free the <marker name=""taskmarker4"">hostages</marker>.", "Free Hostages", "Free Hostages"];
task4 setSimpleTaskDestination markerpos "taskmarker4";
};

task1 = player createSimpleTask["Insertion"];
task1 setSimpleTaskDescription["Infiltrate into the area of operations by Zodiac <marker name=""taskmarker1"">here</marker>.", "Insertion", "Insertion"];
task1 setSimpleTaskDestination markerpos "taskmarker1";
player setCurrentTask task1;

In the editor I have a radio-activated trigger with the following in On Act:

Code: [Select]
task1 setTaskState "SUCCEEDED"; task4trigger = go

Unfortunately no new tasks show up. Any help would be appreciated. :)

<SOLVED>

EDIT: I got it to work in the trigger on act field:

Code: [Select]
task2 setTaskState "SUCCEEDED";
hint "New objective added: Rescue the hostages";
 _taskmarker3 = createMarker ["taskmarker3", position campfire];
"taskmarker3" setMarkerType "mil_objective";
"taskmarker3" setMarkerText "Rescue hostages";
"taskmarker3" setMarkerPos getMarkerPos "taskmarker3ghost";
task3 = recon1 createSimpleTask["Rescue Hostages"];
task3 setSimpleTaskDestination (getMarkerPos "taskmarker3ghost");
task3 setSimpleTaskDescription["Rescue the hostages from their Russian captors.", "Hostage Rescue", "Hostage Rescue"]


« Last Edit: 07 Jul 2009, 21:41:11 by [BBE] Soul Assassin »

Offline Rommel92

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #17 on: 07 Jul 2009, 06:09:14 »
Heres how I set up mine:
Code: [Select]
_briefing =
[
[
"Command and Signals",
[
"Order of Seniority",
"Call signs (C/S)",
"Location of HQ"
]
],
[
"Administration and Logistics",
[
"Weapons and Ammunition",
"Equipment and Special Equipment",
"Equipment (Maps, watches and radios etc), Special Equipment (Laser Markers, Satchel Charges etc)",
"Medical"
]
],
[
"Execution",
[
...
]
],
[
"Mission",
[
...
]
],
[
"Situation",
[
...
"Neutral Forces",
...
"Friendly Forces",
...
"Enemy Forces"
]
]
];
{
_title = _x select 0;
_messages = _x select 1;
{
player createDiaryRecord ["Diary", [_title, _x]];
}foreach _messages;
} foreach _briefing;

tasksInMission = [];
tasksInMission set [1, player createSimpleTask ["taskRTB"]];
(tasksInMission select 1) setSimpleTaskDescription ["1st Platoon must return to C.HQ NLT 070000h July 2009", "Return to C.HQ", "RTB"];
(tasksInMission select 1) setSimpleTaskDestination (getMarkerPos "respawn_west");

tasksInMission set [0, player createSimpleTask ["taskClearTAOR"]];
(tasksInMission select 0) setSimpleTaskDescription ["TAOR must be clear NLT 062200h July 2009", "Patrol TAOR Alpha", "TAOR"];
(tasksInMission select 0) setSimpleTaskDestination (getMarkerPos "taskMkrTAOR");

"tasksPublicVariable" addPublicVariableEventHandler {
{
_state = "SUCCEEDED";
if (count _x > 1) then {
_state = (_x select 1);
};
(_x select 0) setTaskState _state;
if (count _x > 2) then {
_color = "ColorGreen";
if (count _x > 3) then {
_color = (_x select 3);
};
(_x select 2) setMarkerColorLocal _color;
};
} foreach (_this select 0);
};

Offline VanhA

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #18 on: 09 Jul 2009, 08:46:05 »
I've had the briefing working fine so far.But I've only had 2 objectives.
Now I'm making a new one with 4 objectives and ran into a problem where only 2 of them show up.
(Objectives 3 & 4 aka two first ones in the briefing.sqf)

Is there some limit how many objectives  are shown at briefing?  :blink:

BR
VanhA

Offline Rommel92

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #19 on: 09 Jul 2009, 16:56:36 »
There is no limit AFAIK. No problems as so far as I've seen.

Offline VanhA

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #20 on: 10 Jul 2009, 08:47:15 »
True.
When I tried it with template by Mikey I got it working fine.
Sorted.  :good:

Offline mikey

  • Former Staff
  • ****
  • Whitespace Whore
Re: How to make a basic briefing in ArmA 2
« Reply #21 on: 19 Jul 2009, 15:42:43 »
Updated the tutorial and the briefing template to 0.02

Changelog:
- Added an example to manipulate image width and/or height
- Added info about my mk_taskHint function
- No longer using "isNil {player}" anymore, since that was so 2006  (thnx to spooner for that one) :)
- Changed the variable name used for briefing respawn
- No longer a Zeus briefing, so the template name was changed

Future plans:
Making a briefing template that will use public var's, so the task states will be synced on JIP and when respawning.

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: How to make a basic briefing in ArmA 2
« Reply #22 on: 30 Jul 2009, 16:08:32 »
mikey, could you include / package the files up into a demo mission as well?
Xbox Rocks

Offline mikey

  • Former Staff
  • ****
  • Whitespace Whore
Re: How to make a basic briefing in ArmA 2
« Reply #23 on: 01 Aug 2009, 16:27:39 »
Simple example mission added.

Offline Trexian

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #24 on: 15 Sep 2009, 14:36:29 »
Quote
<img image='img\C3_PLHlagushina_ca.paa' width='256' />

Is .paa the only acceptable format for pics in the briefing now?  I coulda sworn I used jpg in A1.   :scratch:

And, I have an old .paa plugin for photoshop, but had heard there may be different compression now?  Any confirmation of that?

TIA.
T

Edit: oh, and what's the max size? :)
« Last Edit: 15 Sep 2009, 14:59:09 by Trexian »
Sic semper tyrannosauro.

Offline mikey

  • Former Staff
  • ****
  • Whitespace Whore
Re: How to make a basic briefing in ArmA 2
« Reply #25 on: 15 Sep 2009, 15:52:54 »
You can use jpg's as wel, and I do not know of a max image size, but don't forget that the little briefing window isn't that big to begin with...


edit:
kegetys made an update for his PS paa plugin
« Last Edit: 15 Sep 2009, 15:54:43 by mikey »

Offline Trexian

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #26 on: 15 Sep 2009, 16:36:36 »
Yeah, but I think I screwed something up.  I had jpgs, but they were just black in the briefing.  And I agree - there ain't much room there. :)

Thanks for the Kegetys update! :)
Sic semper tyrannosauro.

Offline mikey

  • Former Staff
  • ****
  • Whitespace Whore
Re: How to make a basic briefing in ArmA 2
« Reply #27 on: 15 Sep 2009, 16:50:10 »
I sometimes used to have problems with black jpg's as well in arma1. I think it had to do something with the compression or amount of compression used, or the colourspace, i dunno. Sometimes it's a black art getting something to work with BIS games  ;)

Offline Undeceived

  • Members
  • *
    • My missions and campaigns
Re: How to make a basic briefing in ArmA 2
« Reply #28 on: 25 Sep 2009, 10:05:07 »
Thank you very much for this, mikey!
Current project: Black Lands (Arma 3)

Offline K9PT

  • Members
  • *
Re: How to make a basic briefing in ArmA 2
« Reply #29 on: 23 Aug 2010, 21:58:52 »
Quote
What about multilanguage briefings? Do you need to use stringtable.csv to make them?

Yes, that's what I've done... ;)


How you do this?