Random Activation Script

Главная > Файлы пользователей > Random Activation Script
Любая версия
Другой

Random Activation Script

Тип - Другой
Загрузил - Helicon010
Дата - 02.04.2023 11:26:53
Useful tools for DCS.

This script can easily be used to randomly activate inactive groups.

DCS_UtilityTool_Script_ver1.0

caution : There may be some strange parts due to the use of automatic translation.

[目次]
    1. summary
    2. How to use
    3. Contact
    4. Histry

[1.summary]

    Provides convenience scripts for DCS
    Provides the following functions.
    1-1 Random activation of a specified number of groups.

[2.How to use]

    1-1 Random activation of a specified number of groups.
    
    ▼Process
        1-1-1 deploy groups
        1-1-2 deactivate groups
        1-1-3 load scrit file
        1-1-4 create config file
        1-1-5 load config file
        
        1-1-1 deploy groups
        
            deploy the group you wish to activate at random.
            
        1-1-2 deactivate groups非アクティブ化
            
            Sel ect a group and check "LATE ACTIVATION"
            
        1-1-3 load script file
        
            1-1-3-1 Sel ect "Set rules for triggers" fr om the button on the left
            1-1-3-1 Sel ect the "NEW" button under "TRIGGERS
            1-1-3-2 Change "TYPE:" to "4 MISSION START
            1-1-3-3 Sel ect the "NEW" button under "ACTIONS
            1-1-3-4 Change "ACTON:" to "DO SCRIPT FILE
            1-1-3-5 Select the "OPEN" button to load DCS_UtilityTool_Scrit.lua
            
        1-1-4 create config file
    
            1-1-4-1 Launch Notepad or other text editor
            1-1-4-2 Write your own script referring to randamActivateExample.lua
            
                Use the following function to target a batch with specific keywords
                utilityTool:activateRandomGroupsByKey( _key, _coalitionSide, _activateQuantity, _activateQuantityMax )
                
                To explicitly target a group by enumerating its names, use the following function
                utilityTool:activateRandomGroupsByTable( _groupNameTable, _activateQuantity, _activateQuantityMax )
            
            1-1-4-3 Save in .lua format with whatever name you want
            
                ex)
                hoge.lua
                ==================================================================================================================================================================
                
                utilityTool:activateRandomGroupsByKey( "EWR", "red", 3 )    -- Activate 3 groups fr om the red camp with "EWR" in their group name
                utilityTool:activateRandomGroupsByKey( "SAM", "red", 5, 8 ) -- Activate 5 to 8 groups in the red camp with "SAM" in the group name
                utilityTool:activateRandomGroupsByKey( "F-16", "blue", 2 )  -- Activate 2 groups fr om the blue group with "F-16" in the group name
                utilityTool:activateRandomGroupsByKey( "civilian", "nuetral", 0, 5 ) -- Activate 0-5 groups fr om those with "civilan" in the neutral camp's group name
                utilityTool:activateRandomGroupsByTable( { "Su-27", "Mig-29", "Su-30" }, 2 ) -- Activate 2 groups of "Su-27", "Mig-29", "Su-30".
                utilityTool:activateRandomGroupsByTable( { "SA-8", "SA-15", "SA-19" }, 0, 3 ) -- "Activate 0 to 3 groups among "SA-8", "SA-15", and "SA-19".
                
                ==================================================================================================================================================================
            
        1-1-5 load config file
        
            1-1-5-1 Load the file you created in the same way as 1-1-3 (if it is under DCS_UtilityTool_Scrit.lua, it is OK)
            
                Tip : You can also use F10 to call up an arbitrary file.

[3.Contact]
    
    Twitter:https://twitter.com/Helicon010
    
[4.Histry]
    
    2023/04/02 Ver1.0 released

end
  • Лицензия: Свободная - Бесплатная версия, Неограниченное распр.
  • Язык: Другой
  • Размер файла: 51.95 Кб
  • Скачано: 109
  • Комментариев: 1
Теги: script
ПРИСОЕДИНЯЙТЕСЬ К НАМ