ADHS Posted September 14, 2022 Posted September 14, 2022 (edited) _func(ADHS) V.104-221006, 2022-October-13. _func(ADHS), is a collection of custom functions that simplifies the use of MIST or SSE. This idea came once i had to repeat the same code too many times and the syntax errors (from a parenthesis to variables) were distructing me from my final idea/goal. So, the purpose of this idea is to use MIST/SSE functions but with significant less typing, (that may help a lot) once you are setting up a mission and you need to have the most clear check flow control in DCS ME. Example: This block comes from MIST and checks if a group is not exist: if (Group.getByName(dcsGROUP) and Group.getByName(dcsGROUP):isExist() == 0) or (Group.getByName(dcsGROUP) and #Group.getByName(dcsGROUP):getUnits() < 1) or not Group.getByName(dcsGROUP) then This is what you have to type with _func(ADHS): if grouNOT(dcsGROUP) == true then Hope you find it usefull. Thank you all, ADHS. Full description/syntax/examples, inside "_func(ADHS)_v*.7z". MISC ------------------------------------------------------------ randNUM Random Number generation. by ADHS 221006. LUA idCOUN Finds the numeric value ID of a Country, namely. by ADHS 220919. LUA capSTR Capitalizes a STRING. by ADHS 220905. LUA chkVToF Checks/Returns/Sets a variable to 'true' or 'false' & string. by ADHS 220905. LUA FLAGS ----------------------------------------------------------- flagCHK Checks the VALUE of a FLAG. by ADHS 220905. DCS flagSET Sets the VALUE of a FLAG. by ADHS 220905. DCS flagGET Gets the VALUE of a FLAG. by ADHS 220922. DCS SOUND ----------------------------------------------------------- chk4SND Checks if a sound filename given, sets the PLAY stage. by ADHS 220917. LUA playSND Plays a sound file to all TYPES of DCS recipients. by ADHS 220915. DCS MESSAGES -------------------------------------------------------- msgALL Message to ALL + sound. by ADHS 220915. DCS msgSIDE Message to a COALLITION + sound. by ADHS 220915. DCS msgGROU Message to a GROUP + sound. by ADHS 220919. DCS msgUNIT Message to a UNIT + sound. by ADHS 220919. DCS msgCOUN Message to a COUNTRY + sound. by ADHS 220917. DCS msgMUL Multi-for all types of Messages + sound. by ADHS 220915. DCS adhsERR REPORT customizable output message during DCS runtime. by ADHS 220915. DCS GROUP ------------------------------------------------------------ grouYES Checks if a GROUP is ALIVE. by ADHS 220915. MIST grouNOT Checks if a GROUP is DEAD. by ADHS 220905. MIST grouCHK Checks if a GROUP is DEAD or ALIVE. by ADHS 220905. DCS grouACT Activates a deactivated GROUP. by ADHS 220926. DCS grouDEA Deactivates an active GROUP. by ADHS 220926. DCS grouDEs DESTROYS a GROUP, (without check). by ADHS 220905. MIST grouREs RESPAWNS a GROUP, (without check). by ADHS 220905. MIST grouDES DESTROYS a GROUP, (after check). by ADHS 220905. MIST grouRES RESPAWNS a GROUP, (after check). by ADHS 220905. MIST grouTBL RESPAWNS/DESTROYS GROUPs from a TABLE. by ADHS 220905. MIST grouMUL RESPAWNS/DESTROYS GROUPs from a TABLE of TABLES. by ADHS 220905. MIST REPORTED/TESTED : function flagSET: -> PASSED Explanation: Once you pass the NAME directly, it has to be among apostrophes. But, if you are passing from a VARIABLE, you don't have to add them again to the string. direct: flagSET( ' blue_Group-1_respawn ' , 2 ), variable = flagSET( 'blue_' .. varNAME .. '_respawn' , 2 ) UPDATES: 2022 October 13, added: _func(ADHS)_v104-221006.7z ....................................................... Fixed: error in grouMUL function, [a] counter. 2022 September 19, added: _func(ADHS)_v102-220919.7z ........................................................ ReDid functions, Demo Sound .miz added, PDF fixed. 2022 September 17, added: _func(ADHS)_v101-220917.7z ....................................................... Fixed: error in grouMUL function, ::ADHS:: label. If you find something that is not working as it should, or you have another approach of whow it should be, just help. Thank you. ChangeLog.txt _func(ADHS)_v104-221006.7z Edited October 13, 2022 by ADHS 1 Democracy was already invented, while Scrat was eating oak fruits.
ADHS Posted September 14, 2022 Author Posted September 14, 2022 dark_wood Thank you very much . 1 Democracy was already invented, while Scrat was eating oak fruits.
dark_wood Posted September 14, 2022 Posted September 14, 2022 With pleasure mate Maybe a GitHub page, with documentation and versions? 1
ADHS Posted September 14, 2022 Author Posted September 14, 2022 (edited) 11 hours ago, dark_wood said: With pleasure mate Maybe a GitHub page, with documentation and versions? (GitHub) If there will be enough interest, i will. For now, here is the place. Inside "_FuncADHS-MIST-DCS_eng-090922.7z", there is a .docx and .odt files with description/syntax/examples. Also, the "_FuncADHS-MIST-DCS_eng-090922.lua" contains the same information for use. The "ChangeLog.txt", will be updated, whenever a new version is uploaded. Thank you. Edited September 15, 2022 by ADHS Democracy was already invented, while Scrat was eating oak fruits.
PravusJSB Posted September 16, 2022 Posted September 16, 2022 Cool idea buddy, would love to have a chat about it with you, feel free to drop me a msg on Discord. Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans. Discord: PravusJSB#9484 twitch.tv/pravusjsb https://www.patreon.com/XSAF https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu Work with me on Fiverr: https://www.fiverr.com/pravusjsb
ADHS Posted September 17, 2022 Author Posted September 17, 2022 5 hours ago, PravusJSB said: Cool idea buddy, would love to have a chat about it with you, feel free to drop me a msg on Discord. Hello PravusJSB, Glad that you find it interesting friend (Discord) i will and thank you for the invitation. Democracy was already invented, while Scrat was eating oak fruits.
ADHS Posted September 20, 2022 Author Posted September 20, 2022 (edited) Seems that i will keep it just for myself. At least i will happily type less. Edited September 20, 2022 by ADHS Democracy was already invented, while Scrat was eating oak fruits.
Recommended Posts