Jump to content

Recommended Posts

Hi guys! I hope that i'm posting in the right section, anyway here is the problem,i want try to make a mission and i want to open the strategic map via an addAction to a whiteboard or another objects (i made this thing a lot of time ago and now i'm not able to make this work again) i tried a lot yesterday but with no luck :/ i'm going crazy...there is someone that know how to make this thing to work? 

 

Thanks guys :D

Share this post


Link to post
Share on other sites

This is how I made it.

//stratigic map[    "",    [getMarkerPos "base" select 0, getMarkerPos "base" select 1],    [        //mission_1        [            [_mrkSpawnPos_transport select 0,  _mrkSpawnPos_transport select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk1", 2]},            "Hilfsgüter",            "Bringen Sie die Hilfsgüter zur Abladezone",            "3 Punkte",            "mission_title\transport.jpg",            0.3,            [_mrkSpawnPos_transport]        ],		//mission_2        [            [_mrkSpawnPos_immobilized select 0, _mrkSpawnPos_immobilized select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk2", 2]},            "Laster",            "Bringen Sie das beschädigte Fahrzeug zurück in die Basis.",            "5 Punkte",            "mission_title\immobilized.jpg",            0.5,            [_mrkSpawnPos_immobilized]        ],		//mission_3        [            [_mrkSpawnPos_konvoy select 0, _mrkSpawnPos_konvoy select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk3", 2]},            "Konvoi",            "Bringen Sie den Konvoi zum Bestimmungsort",            "5 Punkte",            "mission_title\konvoy.jpg",            0.5,            [_mrkSpawnPos_konvoy]        ],		//mission_4        [            [_mrkSpawnPos_clear select 0, _mrkSpawnPos_clear select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk4", 2]},            "Gebiet befreien",            "Befreien Sie das Gebiet",            "8 Punkte",            "mission_title\clear.jpg",            0.8,            [_mrkSpawnPos_clear]        ],		//mission_5        [            [_mrkSpawnPos_crash select 0, _mrkSpawnPos_crash select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk5", 2]},            "Helikopterabsturz",            "Bergen Sie den abgestürzten Piloten und zerstören Sie das Wrack",            "5 Punkte",            "mission_title\crash.jpg",            0.5,            [_mrkSpawnPos_crash]        ],		//mission_6        [            [_mrkSpawnPos_neutralize select 0, _mrkSpawnPos_neutralize select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk6", 2]},            "Neutralisieren",            "Neutralisieren Sie die Zielperson",            "5 Punkte",            "mission_title\neutralize.jpg",            0.5,            [_mrkSpawnPos_neutralize]        ],		//mission_7        [            [_mrkSpawnPos_cache select 0, _mrkSpawnPos_cache select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk7", 2]},            "Waffendepot",            "Vernichten Sie das Waffendepot",            "5 Punkte",            "mission_title\cache.jpg",            0.5,            [_mrkSpawnPos_cache]        ],		//mission_8        [            [_mrkSpawnPos_arty select 0, _mrkSpawnPos_arty select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk8", 2]},            "Artillerie Stellung",            "Vernichten Sie die Artillerie Stellung",            "6 Punkte",            "mission_title\arty.jpg",            0.6,            [_mrkSpawnPos_arty]        ],		//mission_9        [            [_mrkSpawnPos_free select 0, _mrkSpawnPos_free select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk9", 2]},            "Geiselbefreiung",            "Befreien Sie die Geiseln auf den Händen der Rebellen",            "7 Punkte",            "mission_title\free.jpg",            0.7,            [_mrkSpawnPos_free]        ],		//mission_10        [            [_mrkSpawnPos_roadblock select 0, _mrkSpawnPos_roadblock select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk10", 2]},            "Straßensperre",            "Räumen Sie die Straßensperre",            "10 Punkte",            "mission_title\roadblock.jpg",            1,            [_mrkSpawnPos_roadblock]        ],		//mission_11        [            [_mrkSpawnPos_rescue select 0, _mrkSpawnPos_rescue select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk11", 2]},            "Helikopterrettung",            "Retten Sie die eingeschlossenen Kameraden",            "6 Punkte",            "mission_title\transport.jpg",            0.6,            [_mrkSpawnPos_rescue]        ],		//mission_12        [            [_mrkSpawnPos_patrole select 0, _mrkSpawnPos_patrole select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk12", 2]},            "Hinterhalt",            "Überfallen Sie den rebellen Trupp",            "3 Punkte",            "mission_title\patrol.jpg",            0.3,            [_mrkSpawnPos_patrole]        ],		//mission_13        [            [_mrkSpawnPos_ied select 0, _mrkSpawnPos_ied select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk13", 2]},            "Kampfmittelräumdienst",            "Prüfen Sie die Straße auf Befahrbarkeit",            "3 Punkte",            "mission_title\ied.jpg",            0.3,            [_mrkSpawnPos_ied]        ],		//mission_14        [            [_mrkSpawnPos_aa select 0, _mrkSpawnPos_aa select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk14", 2]},            "AA Stellung",            "Vernichten Sie die AA Stellung",            "6 Punkte",            "mission_title\aa.jpg",            0.6,            [_mrkSpawnPos_aa]        ],		//mission_15        [            [_mrkSpawnPos_drone select 0, _mrkSpawnPos_drone select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk15", 2]},            "Abgestürzte Drone",            "Zerstören Sie die abgestürzte Drone",            "5 Punkte",            "mission_title\drone.jpg",            0.5,            [_mrkSpawnPos_drone]        ],		//mission_16        [            [_mrkSpawnPos_wrack select 0, _mrkSpawnPos_wrack select 1],  //pos mission in format [x,y,y]			{[_this select 9] remoteExecCall ["DES_mission_fnc_tsk16", 2]},            "Flugschreiber sichern",            "Sichern Sie den Flugschreiber des abgestüzten Flugzeuges",            "6 Punkte",            "mission_title\wrack.jpg",            0.6,            [_mrkSpawnPos_wrack]        ],		//mission_17		[            [getMarkerPos "base" select 0, getMarkerPos "base" select 1],  //pos mission in format [x,y,y]			{des_sideMissionCyle = true; publicVariableServer "des_sideMissionCyle"; [] remoteExec ["des_fnc_randomSideMission", 2]},            "Zufallsmission",            "Zufallsmissions Schleife",            "n/a",            "",            1,            []        ]    ],    [],    [],    [],    0.8,    false,    1,    true,    "Wählen Sie eine Mission",    true,	"\A3\Ui_f\data\Map\GroupIcons\badge_rotate_%1_gs.paa"] call BIS_fnc_StrategicMapOpen;

Save this as a sqf and add this action:

This addaction ["open map", "openmap.sqf"]

  • Like 1

Share this post


Link to post
Share on other sites

If you want to have the zoom on community maps try this :

https://forums.bistudio.com/topic/186952-strategic-map-module-zoom/

I am sorry if the formating of m posts is shit, I am writing from my phone :P

//edit

OK formatting got fucked up seriously. Just look at the code on github:

https://github.com/DonElSarjo/fata_4_public.fata/blob/master/strmp.sqf

  • Like 2

Share this post


Link to post
Share on other sites

Save this as a sqf

 

 

You're gonna want to post that again with some line breaks please.  :huh:

Share this post


Link to post
Share on other sites

You're gonna want to post that again with some line breaks please. :huh:

Sorry I tried but with my phone it kind of refreshes the formatting o.O

Just have a look at the github stuff

Share this post


Link to post
Share on other sites

Thanks a lot to both, i will try right now the script :P

Share this post


Link to post
Share on other sites

so the script is ok but...how i make a mission? :/

Share this post


Link to post
Share on other sites

That's kind of a large question.  Start with your mission ideas, then you can see how to implement them.  What kind of missions did you want to create?  What's the objective?  What kind of terrain?  What kind of challenges?  What kind of units would be in opposition?  Write out some ideas first, then see where to go from there.  Once you have a few ideas and have made little missions that achieve those goals you'll work out how to generate it all via script, then you can plug that into your strategic map menu system.

  • Like 1

Share this post


Link to post
Share on other sites

Alright i will explain shortly the idea about the mission i want to create

 

I want to make a mission that consist in more missions, accessible via the strategic map, that are mainly (for now) building clearing operation, so all the mission are quick. Enter in the building, clear it and try to not get killed :P when you have cleared he building you can return to the base via an addaction to the player. I will set the mission in the virtual arsenal because i want to put down custom buildings..so here is the idea for my mission. Also i will use only some building addons and i will add the possibility to enter in the virtual arsenal to select the gear and the weapons that you want and in this way you can also play with custom content :D 

 

hope that what i write make sense mate 

  • Like 1

Share this post


Link to post
Share on other sites

Hello,

so I tried out donelsarjo´s intructions with my own variables etc., but there seems to by some problem with "[]" brackets.
Did it work for anybody?

Thanks.

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

×