Welcome, Guest Friday 10th September 2010, 12:38:59
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: How to make a basic briefing in ArmA 2  (Read 13076 times)
0 Members and 2 Guests are viewing this topic.
fleepee
*
Offline Offline


Enter the Matrix!


« Reply #15 on: 29 Jun 2009, 06:47:53 »

Quote
What about multilanguage briefings? Do you need to use stringtable.csv to make them?

Yes, that's what I've done... Wink
Logged
[BBE] Soul Assassin
*
Offline Offline


« Reply #16 on: 06 Jul 2009, 19: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:
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:
task1 setTaskState "SUCCEEDED"; task4trigger = go

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

<SOLVED>

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

Code:
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, 20:41:11 by [BBE] Soul Assassin » Logged
Rommel92
*
Offline Offline


« Reply #17 on: 07 Jul 2009, 05:09:14 »

Heres how I set up mine:
Code:
_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);
};
Logged

VanhA
*
Offline Offline


« Reply #18 on: 09 Jul 2009, 07: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
Logged
Rommel92
*
Offline Offline


« Reply #19 on: 09 Jul 2009, 15:56:36 »

There is no limit AFAIK. No problems as so far as I've seen.
Logged

VanhA
*
Offline Offline


« Reply #20 on: 10 Jul 2009, 07:47:15 »

True.
When I tried it with template by Mikey I got it working fine.
Sorted.  Good
Logged
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #21 on: 19 Jul 2009, 14: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) Smiley
- 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.
Logged
hoz
OFPEC Site
Administrator
*****
Offline Offline



« Reply #22 on: 30 Jul 2009, 15:08:32 »

mikey, could you include / package the files up into a demo mission as well?
Logged

Xbox Rocks
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #23 on: 01 Aug 2009, 15:27:39 »

Simple example mission added.
Logged
Trexian
*
Offline Offline



« Reply #24 on: 15 Sep 2009, 13: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 Chin

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? Smiley
« Last Edit: 15 Sep 2009, 13:59:09 by Trexian » Logged

Sic semper tyrannosauro.
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #25 on: 15 Sep 2009, 14: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, 14:54:43 by mikey » Logged
Trexian
*
Offline Offline



« Reply #26 on: 15 Sep 2009, 15: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. Smiley

Thanks for the Kegetys update! Smiley
Logged

Sic semper tyrannosauro.
mikey
Editors Depot Staff
*****
Offline Offline


Whitespace Whore


« Reply #27 on: 15 Sep 2009, 15: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  Wink
Logged
Undeceived
*
Offline Offline



WWW
« Reply #28 on: 25 Sep 2009, 09:05:07 »

Thank you very much for this, mikey!
Logged

K9PT
*
Offline Offline


« Reply #29 on: 23 Aug 2010, 20:58:52 »

Quote
What about multilanguage briefings? Do you need to use stringtable.csv to make them?

Yes, that's what I've done... Wink


How you do this?
Logged
Pages: 1 [2] 3  All   Go Up
  Send this topicPrint  
 
Jump to: