sarogahtyp 1105 Posted June 19, 2021 is it possible to have a dynamic description like described in Example 3 of localize command. There %1 is used to format a dynamic changable string. I know how this could be used to create the description directly with 3rd parameter of BIS_fnc_taskCreate _location = [] call my_function_to_get_location_string; [player, "destroy_fuel_supplies", format [localize "STR_Do_this_in", _location] call BIS_fnc_taskCreate; // string of STR_Do_this_in in stringtable.xml is "do this in %1" but how can I do this (use dynamically changing string) with the task description of CfgTaskDescriptions ? I know that I have to use $STR_Do_this_in in CfgTaskDescriptions, but how to get it dynamic? Share this post Link to post Share on other sites
sarogahtyp 1105 Posted June 19, 2021 ok I guess I found the solution: _description_string = ("destroy_fuel_supplies" call BIS_fnc_taskDescription) select 0; [player, "destroy_fuel_supplies", format [_description_string, _location] call BIS_fnc_taskCreate; Share this post Link to post Share on other sites
sarogahtyp 1105 Posted June 19, 2021 does not work. diag_log "destroy_fuel_supplies" call BIS_fnc_taskDescription; //logs [] gives me an empty array. my CfgTaskDescriptions: class CfgTaskDescriptions { class destroy_fuel_supplies { title = $STR_TSK_destroy_fuel_supplies; description = $STR_TSK_destroy_fuel_supplies_description marker = "myTaskDestinationMarker"; }; }; I guess I need some help Share this post Link to post Share on other sites
sarogahtyp 1105 Posted June 19, 2021 finally this is working: _location_name = [_location_trigger] call saro_fnc_get_name_of_location; [player, "destroy_fuel_supplies", ""] call BIS_fnc_taskCreate; _description_array = "destroy_fuel_supplies" call BIS_fnc_taskDescription; _description = format [ ( _description_array # 0 # 0), _location_name]; _title = _description_array # 1 # 0; _marker = _description_array # 2 # 0; [ "destroy_fuel_supplies", [_description, _title, _marker ] ] call BIS_fnc_taskSetDescription; Share this post Link to post Share on other sites