NumbNutsJunior 61 Posted July 10, 2019 A Notification System A simple notification system with timed hints that are simple and easy to use. Features - Priority message system, messages are sorted from top (highest priority) to bottom (lowest priority). - Personalize each message with whatever color progress timer you want. - Dynamic hint height to hold any length message. - Supports structured text of course.Setup - Define the files found in the example mission into your mission's function library and create any new messages through the script fn_handleMessage.sqf. - You will need to create the rscTitle life_message_hud either through your own system or with the function fn_initMessageHUD.sqf after defining message_hud.hpp in you're mission's rscTitles class.Showcase Download https://github.com/NumbNutsJunior/Notification-System Disclaimer The style of hint produced is not completely original as it was inspired from the types of notifications found on GTA V but the system created for them is designed for arma 3 and to be lightweight and portable across missions. I hope you can find some use for it in your missions, feel free to modify and improve the system of course but just ask to leave my initial author credits. ~ NumbNutsJunior aka Pizza Man 8 Share this post Link to post Share on other sites
HazJ 1288 Posted July 23, 2019 Nice work. Looks great. Don't have to get around to re-writing mine now! Everyone can just use this. 🤣🤣🤣 1 1 2 Share this post Link to post Share on other sites
NumbNutsJunior 61 Posted October 10, 2019 Updated 7/18/2019: Added timer conditions Added cleanup for controls Fixed issue related to RemoteExec/RemoteExecCall Use fn_handleMessage with these commands 1 2 Share this post Link to post Share on other sites
johnnyboy 3743 Posted October 10, 2019 Sweet. And I love your name btw! 🙂 2 2 Share this post Link to post Share on other sites
NumbNutsJunior 61 Posted March 28, 2020 Updated 3/28/2020: Added some file name compatibility. Added a small performance increase to notification queue. 1 1 Share this post Link to post Share on other sites
LSValmont 789 Posted March 28, 2020 10 hours ago, NumbNutsJunior said: Updated 3/28/2020: Added some file name compatibility. Added a small performance increase to notification queue. First of all, thank you for this incredibly useful script @NumbNutsJunior! * I see this script being used in all modern Arma 3 Life server May I ask for a future version to include an option for the Notification system to generate a "Notification History" entry (Accessible on the map interface) so each notification is stored and accessible even after they had disappeared from the screen. Keep it up and keep yourself safe! 1 Share this post Link to post Share on other sites
NumbNutsJunior 61 Posted March 29, 2020 16 hours ago, LSValmont said: May I ask for a future version to include an option for the Notification system to generate a "Notification History" entry (Accessible on the map interface) so each notification is stored and accessible even after they had disappeared from the screen. I think that may be a more server/mission specific feature, so it would probably be best to add that on your own. It is really as simple as adding a bool parameter to fn_handleMessage.sqf (maybe between _color and _condition) on whether or not to log that specific notification and if so then add it to the map interface through the diary commands. ... // Parameters params [["_text", ""], ["_duration", 5], ["_priority", 5], ["_color", [0.50, 0, 0]], ["_saveMessage", false], ["_condition", {true}]]; if (_text isEqualTo "") exitWith {}; ... // Save message to map if (_saveMessage) then { // Init private _subjectID = "notification_history"; // Check to create a new subject entry if !(player diarySubjectExists _subjectID) then { // Create new subject entry player createDiarySubject [_subjectID, "Notification History"]; }; // Create a new notification entry private _notificationTitle = format ["%1...", _text select [0, (count _text) min 25]]; player createDiaryRecord [_subjectID, [_notificationTitle, _text]]; }; ... I am not exactly a diary command expert but something like this should work 😅. (it also appeared to combine diary records with same text, so that was neat) 1 1 Share this post Link to post Share on other sites