├── A7-BanterAccelerator ├── override │ ├── 150_10 │ │ └── banttimg.2da │ ├── 150_25 │ │ └── banttimg.2da │ ├── 150_50 │ │ └── banttimg.2da │ ├── 450_10 │ │ └── banttimg.2da │ ├── 450_25 │ │ └── banttimg.2da │ ├── 450_50 │ │ └── banttimg.2da │ ├── 600_10 │ │ └── banttimg.2da │ ├── 600_25 │ │ └── banttimg.2da │ ├── 600_50 │ │ └── banttimg.2da │ ├── 900_10 │ │ └── banttimg.2da │ ├── 900_25 │ │ └── banttimg.2da │ └── 900_50 │ │ └── banttimg.2da ├── languages │ ├── schinese │ │ └── setup.tra │ ├── english │ │ └── setup.tra │ ├── brazilianportuguese │ │ └── setup.tra │ ├── french │ │ └── setup.tra │ └── german │ │ └── setup.tra ├── lib │ └── functions.tph ├── A7-BanterAccelerator.ini ├── readme │ ├── readme.txt │ ├── readme-german.txt │ └── readme-french.txt └── A7-BanterAccelerator.tp2 ├── .gitattributes ├── .github └── workflows │ └── WeiduModPackager.yml └── README.md /A7-BanterAccelerator/override/150_10/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 150 5 | PROBABILITY 10 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/150_25/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 150 5 | PROBABILITY 25 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/150_50/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 150 5 | PROBABILITY 50 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/450_10/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 450 5 | PROBABILITY 10 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/450_25/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 450 5 | PROBABILITY 25 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/450_50/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 450 5 | PROBABILITY 50 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/600_10/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 600 5 | PROBABILITY 10 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/600_25/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 600 5 | PROBABILITY 25 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/600_50/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 600 5 | PROBABILITY 50 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/900_10/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 900 5 | PROBABILITY 10 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/900_25/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 900 5 | PROBABILITY 25 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/override/900_50/banttimg.2da: -------------------------------------------------------------------------------- 1 | 2DA V1.0 2 | 0 3 | VALUE 4 | FREQUENCY 900 5 | PROBABILITY 50 6 | REPLAYDELAY 150 7 | SPECIALPROBABILITY 25 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | *.2da text 2 | *.baf text 3 | *.bat text eol=crlf 4 | *.d text 5 | *.html text 6 | *.ini text 7 | *.sh text eol=lf 8 | *.tp2 text 9 | *.tph text 10 | *.tra text 11 | *.txt text 12 | 13 | *.7z binary 14 | *.are binary 15 | *.bam binary 16 | *.bmp binary 17 | *.cre binary 18 | *.dll binary 19 | *.eff binary 20 | *.exe binary 21 | *.itm binary 22 | *.jpg binary 23 | *.png binary 24 | *.pvrz binary 25 | *.pro binary 26 | *.spl binary 27 | *.sto binary 28 | *.vef binary 29 | *.vvc binary 30 | *.wav binary 31 | *.wed binary 32 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/languages/schinese/setup.tra: -------------------------------------------------------------------------------- 1 | @1 = ~戏谑加速~ 2 | @10 = ~频率:60秒,概率:10%~ 3 | @11 = ~频率:60秒,概率:25%~ 4 | @12 = ~频率:60秒,概率:50%~ 5 | @20 = ~频率:40秒,概率:10%(默认)~ 6 | @21 = ~频率:40秒,概率:25%~ 7 | @22 = ~频率:40秒,概率:50%~ 8 | @30 = ~频率:30秒,概率:10%~ 9 | @31 = ~频率:30秒,概率:25%~ 10 | @32 = ~频率:30秒,概率:50%~ 11 | @40 = ~频率:10秒,概率:10%~ 12 | @41 = ~频率:10秒,概率:25%~ 13 | @42 = ~频率:10秒,概率:50%~ 14 | @99 = ~用户自定义~ 15 | 16 | @100 = ~该游戏不支持。~ 17 | @101 = ~数字无效。请输入正整数。~ 18 | @102 = ~数值超出范围。请使用 0 到 100 之间的数值。~ 19 | @103 = ~请输入“y”表示确定,“n”表示否,“c”表示取消。~ 20 | @104 = ~用户取消安装。~ 21 | 22 | @200 = ~输入频率(秒):~ 23 | @201 = ~输入概率(百分比):~ 24 | @202 = ~使用以下值:频率 = %freq% 秒,概率 = 百分之 %prob% ([Y]是,[N]否 还是 [C]取消):~ 25 | -------------------------------------------------------------------------------- /.github/workflows/WeiduModPackager.yml: -------------------------------------------------------------------------------- 1 | # WeiDU Mod Packager by Argent77 2 | # See: https://github.com/InfinityTools/WeiduModPackager 3 | 4 | name: 'WeiDU Mod Packager (iemod; win/lin/mac: amd64; use git release tag name as suffix)' 5 | 6 | on: 7 | release: 8 | types: [published] 9 | workflow_dispatch: 10 | 11 | jobs: 12 | call_workflow: 13 | strategy: 14 | matrix: 15 | type: [iemod, windows, linux, macos] 16 | 17 | permissions: 18 | contents: write 19 | 20 | uses: InfinityTools/WeiduModPackagerLibrary/.github/workflows/WeiduModPackagerLibrary.yml@master 21 | with: 22 | type: ${{ matrix.type }} 23 | architecture: amd64 24 | suffix: ${{ github.event.release.tag_name }} 25 | naming: tp2 26 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/languages/english/setup.tra: -------------------------------------------------------------------------------- 1 | @1 = ~Banter Accelerator~ 2 | @10 = ~Frequency: 60 seconds, Probability: 10%~ 3 | @11 = ~Frequency: 60 seconds, Probability: 25%~ 4 | @12 = ~Frequency: 60 seconds, Probability: 50%~ 5 | @20 = ~Frequency: 40 seconds, Probability: 10% (default)~ 6 | @21 = ~Frequency: 40 seconds, Probability: 25%~ 7 | @22 = ~Frequency: 40 seconds, Probability: 50%~ 8 | @30 = ~Frequency: 30 seconds, Probability: 10%~ 9 | @31 = ~Frequency: 30 seconds, Probability: 25%~ 10 | @32 = ~Frequency: 30 seconds, Probability: 50%~ 11 | @40 = ~Frequency: 10 seconds, Probability: 10%~ 12 | @41 = ~Frequency: 10 seconds, Probability: 25%~ 13 | @42 = ~Frequency: 10 seconds, Probability: 50%~ 14 | @99 = ~User-defined~ 15 | 16 | @100 = ~Not supported by this game.~ 17 | @101 = ~Invalid number specified. Use positive integers.~ 18 | @102 = ~Number is out of range. Use values between 0 and 100.~ 19 | @103 = ~Please specify "y" for yes, "n" for no or "c" for cancel.~ 20 | @104 = ~Installation cancelled by user.~ 21 | 22 | @200 = ~Enter frequency in seconds:~ 23 | @201 = ~Enter probability (in percent):~ 24 | @202 = ~Use these values: frequency = %freq% seconds, probability = %prob% percent? ([Y]es, [N]o or [C]ancel):~ 25 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/languages/brazilianportuguese/setup.tra: -------------------------------------------------------------------------------- 1 | @1 = ~Banter Accelerator~ 2 | @10 = ~Frequência: 60 segundos, Probabilidade: 10%~ 3 | @11 = ~Frequência: 60 segundos, Probabilidade: 25%~ 4 | @12 = ~Frequência: 60 segundos, Probabilidade: 50%~ 5 | @20 = ~Frequência: 40 segundos, Probabilidade: 10% (padrão)~ 6 | @21 = ~Frequência: 40 segundos, Probabilidade: 25%~ 7 | @22 = ~Frequência: 40 segundos, Probabilidade: 50%~ 8 | @30 = ~Frequência: 30 segundos, Probabilidade: 10%~ 9 | @31 = ~Frequência: 30 segundos, Probabilidade: 25%~ 10 | @32 = ~Frequência: 30 segundos, Probabilidade: 50%~ 11 | @40 = ~Frequência: 10 segundos, Probabilidade: 10%~ 12 | @41 = ~Frequência: 10 segundos, Probabilidade: 25%~ 13 | @42 = ~Frequência: 10 segundos, Probabilidade: 50%~ 14 | @99 = ~Definido-pelo-usuário~ 15 | 16 | @100 = ~Não supportado por este jogo.~ 17 | @101 = ~Número inválido especificado. Use inteiros positivos.~ 18 | @102 = ~O número está fora do alcance. Use valores entre 0 e 100.~ 19 | @103 = ~Por favor especifique "y" pra sim, "n" pra não ou "c" pra cancelar.~ 20 | @104 = ~Instalação cancelada pelo usuário.~ 21 | 22 | @200 = ~Insira a frequência em segundos:~ 23 | @201 = ~Insira a probabilidade (em porcentagem):~ 24 | @202 = ~Use estes valores: frequência = %freq% segundos, probabilidade = %prob% porcentagem? ([Y]Sim, [N]Não ou [C]Cancelar):~ 25 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/languages/french/setup.tra: -------------------------------------------------------------------------------- 1 | @1 = ~Accelerateur de bavardages~ 2 | @10 = ~Frequence : 60 secondes - Probabilite : 10 %~ 3 | @11 = ~Frequence : 60 secondes - Probabilite : 25 %~ 4 | @12 = ~Frequence : 60 secondes - Probabilite : 50 %~ 5 | @20 = ~Frequence : 40 secondes - Probabilite : 10 % (par defaut)~ 6 | @21 = ~Frequence : 40 secondes - Probabilite : 25 %~ 7 | @22 = ~Frequence : 40 secondes - Probabilite : 50 %~ 8 | @30 = ~Frequence : 30 secondes - Probabilite : 10 %~ 9 | @31 = ~Frequence : 30 secondes - Probabilite : 25 %~ 10 | @32 = ~Frequence : 30 secondes - Probabilite : 50 %~ 11 | @40 = ~Frequence : 10 secondes - Probabilite : 10 %~ 12 | @41 = ~Frequence : 10 secondes - Probabilite : 25 %~ 13 | @42 = ~Frequence : 10 secondes - Probabilite : 50 %~ 14 | @99 = ~Choisissez vous-meme le rythme des bavardages.~ 15 | 16 | @100 = ~Ce composant n'est pas compatible avec votre jeu.~ 17 | @101 = ~Vous avez saisi un nombre non valide. Veuillez saisir un nombre entier positif.~ 18 | @102 = ~Vous avez saisi une probabilite non valide. Veuillez saisir une valeur comprise entre 0 et 100.~ 19 | @103 = ~Veuillez valider par "y" pour oui, "n" pour non ou "c" pour annuler (cancel).~ 20 | @104 = ~Installation interrompue par l'utilisateur.~ 21 | 22 | @200 = ~Saisissez la frequence des bavardages en secondes :~ 23 | @201 = ~Saisissez la probabilite d'engager un bavardage (en pourcentage) :~ 24 | @202 = ~Vous avez choisi d'utiliser ces valeurs : frequence = %freq% secondes, probabilite = %prob% pourcentage ? ([Y]Oui, [N]on or [C]Annuler):~ 25 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/lib/functions.tph: -------------------------------------------------------------------------------- 1 | /** 2 | * Sets one or more values in the banter timing table. 3 | */ 4 | DEFINE_ACTION_FUNCTION SET_BANTER_VALUES 5 | INT_VAR 6 | frequency = "-1" 7 | probability = "-1" 8 | replayDelay = "-1" 9 | specialProbability = "-1" 10 | BEGIN 11 | ACTION_IF (FILE_EXISTS_IN_GAME ~banttimg.2da~ AND 12 | (frequency != "-1" OR probability != "-1" OR replayDelay != "-1" OR specialProbability != "-1")) BEGIN 13 | COPY_EXISTING ~banttimg.2da~ ~override~ 14 | COUNT_2DA_COLS numCols 15 | COUNT_2DA_ROWS numCols numRows 16 | FOR (row = 0; row < numRows; row += 1) BEGIN 17 | READ_2DA_ENTRY row 0 numCols name 18 | PATCH_IF (frequency != "-1" AND ~%name%~ STRING_EQUAL_CASE ~FREQUENCY~) BEGIN 19 | PATCH_LOG ~DEBUG: frequency set to %frequency%~ 20 | SET_2DA_ENTRY row 1 numCols ~%frequency%~ 21 | SET frequency = "-1" 22 | END ELSE PATCH_IF (probability != "-1" AND ~%name%~ STRING_EQUAL_CASE ~PROBABILITY~) BEGIN 23 | PATCH_LOG ~DEBUG: probability set to %probability%~ 24 | SET_2DA_ENTRY row 1 numCols ~%probability%~ 25 | SET probability = "-1" 26 | END ELSE PATCH_IF (replayDelay != "-1" AND ~%name%~ STRING_EQUAL_CASE ~REPLAYDELAY~) BEGIN 27 | PATCH_LOG ~DEBUG: replayDelay set to %replayDelay%~ 28 | SET_2DA_ENTRY row 1 numCols ~%replayDelay%~ 29 | SET replayDelay = "-1" 30 | END ELSE PATCH_IF (specialProbability != "-1" AND ~%name%~ STRING_EQUAL_CASE ~SPECIALPROBABILITY~) BEGIN 31 | PATCH_LOG ~DEBUG: specialProbability set to %specialProbability%~ 32 | SET_2DA_ENTRY row 1 numCols ~%specialProbability%~ 33 | SET specialProbability = "-1" 34 | END 35 | PATCH_IF (frequency = "-1" AND probability = "-1" AND replayDelay = "-1" AND specialProbability = "-1") BEGIN 36 | SET row = numRows 37 | END 38 | END 39 | BUT_ONLY 40 | END 41 | END 42 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/A7-BanterAccelerator.ini: -------------------------------------------------------------------------------- 1 | # File encoding: preferred UTF8 (no BOM) if unicode characters are present, it can be ANSI for English-only 2 | # File format: ini as default and then HJSON/JSON5/JSONC/JSON (JSON doesn't allow comments) for advanced modders who want to use benefits of those file formats 3 | # File name: it must be the same as tp2 name: MyMod.tp2 => MyMod.ini (.hjson/.json5/.jsonc/.json) 4 | # File location: the same folder where .tp2 file is present 5 | # File content: every key=value pair is optional, key names are case insensitive 6 | 7 | # ini section header is required to avoid false detection 8 | [Metadata] 9 | 10 | # Full name of the mod, without version number 11 | Name = Banter Accelerator for Enhanced Edition games 12 | 13 | # Author name or nick, don't use email address 14 | Author = Argent77 15 | 16 | # Short description of the mod, main goals, features etc 17 | Description = A simple tweak that allows you to define how often party members will banter with each other. 18 | 19 | # Web address of mod readme file (filename is case-sensitive!) You can link to txt, md, html, pdf etc. 20 | Readme = https://raw.githubusercontent.com/Argent77/A7-BanterAccelerator/master/A7-BanterAccelerator/readme/readme.txt, https://raw.githubusercontent.com/Argent77/A7-BanterAccelerator/master/A7-BanterAccelerator/readme/readme-%LANGUAGE%.txt 21 | 22 | # Web address of mod dedicated forum or forum thread 23 | Forum = https://forums.beamdog.com/discussion/64551/mod-banter-accelerator-for-enhanced-edition-games 24 | 25 | # Web address of mod personal Homepage, no need to duplicate with a mod dedicated forum 26 | # Homepage = https://www.example.com 27 | 28 | # if you use Github.com, simply use https://github.com/AccountOrOrgName/RepositoryName 29 | # read more about Delta Updates https://github.com/ALIENQuake/ProjectInfinity/wiki/Delta-Updates-for-mods-hosted-at-Github 30 | Download = https://github.com/Argent77/A7-BanterAccelerator 31 | 32 | # Type of LABELs used by the mod, read more here https://www.gibberlings3.net/forums/topic/32516-tutorial-what-is-label 33 | LabelType = GloballyUnique 34 | 35 | # This mod has to be installed *before* the mods listed after the keyword 36 | # Before = 37 | 38 | # This mod has to be installed *after* the mods listed after the keyword 39 | # After = 40 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | [![GitHub release (latest by date)](https://img.shields.io/github/v/release/Argent77/A7-BanterAccelerator?color=darkred&include_prereleases&label=latest%20release)](https://github.com/Argent77/A7-BanterAccelerator/releases/latest) 2 | [![Github downloads (all releases)](https://img.shields.io/github/downloads/Argent77/A7-BanterAccelerator/total.svg?color=gold)](https://github.com/Argent77/A7-BanterAccelerator/releases) 3 | [![Platform](https://img.shields.io/static/v1?label=platform&message=Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Project%20Infinity&color=informational)](https://github.com/Argent77/A7-BanterAccelerator/releases/latest) 4 | [![Supported games](https://img.shields.io/static/v1?label=supported%20games&message=BG%3AEE%20%7C%20SoD%20%7C%20BG2%3AEE%20%7C%20EET%20%7C%20IWD%3AEE%20%7C%20PST%3AEE&color=indigo)](https://github.com/Argent77/A7-BanterAccelerator) 5 | [![Language](https://img.shields.io/static/v1?label=language&message=English%20%7C%20French%20%7C%20German%20%7C%20Simplified%20Chinese&color=limegreen)](https://github.com/Argent77/A7-BanterAccelerator) 6 | 7 | # Banter Accelerator for Enhanced Edition games 8 | *A WeiDU mod for Enhanced Edition games that can be used to modify the party banter behavior* 9 | 10 | [![Beamdog Forums](https://img.shields.io/static/v1?label=Discussion&message=Beamdog%20Forums&color=444&labelColor=eee&style=for-the-badge)](https://forums.beamdog.com/discussion/64551 "Beamdog Forums") 11 | 12 | ## Overview 13 | 14 | This mod allows you to define how often party members will banter with each other. You can either choose from a list of presets or specify the desired values yourself. 15 | 16 | *All Enhanced Edition games are supported.* 17 | 18 | 19 | ## Installation 20 | 21 | This is a WeiDU mod, that means it is very easy to install. Simply unpack the downloaded archive into your game directory and run `setup-A7-BanterAccelerator.exe`. 22 | 23 | Alternatively, you can simply copy a premade banter timing file into the game without running the installer at all. They can be found in `A7-BanterAccelerator/override`. You can choose between many variants with different interval and/or probability values. Each one is located in a subfolder that indicates both interval in ticks (1/15th seconds) and probability (in percent) of banters. For example "450_25" indicates a banter timing of 450 ticks interval and 25% probability. Copy the file into the game's `override` folder. Create the folder manually if it doesn't exist yet. 24 | 25 | *You don't have to start a new game for the changes to take effect.* 26 | 27 | 28 | ## Components 29 | 30 | There is only one component "Banter Accelerator" with several different timing variants selectable as subcomponents. You can also define your own timings by selecting "User-defined" instead. 31 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/readme/readme.txt: -------------------------------------------------------------------------------- 1 | Banter Accelerator for Enhanced Edition games 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | 4 | Version: 1.6 5 | Author: Argent77 6 | 7 | Download: https://github.com/Argent77/A7-BanterAccelerator/releases/latest 8 | Discussion: https://forums.beamdog.com/discussion/64551/mod-banter-accelerator-for-enhanced-edition-games 9 | 10 | 11 | Overview 12 | ~~~~~~~~ 13 | 14 | This mod allows you to define how often party members will banter with each other. You can either 15 | choose from a list of presets or specify the desired values yourself. 16 | 17 | All Enhanced Edition games are supported. 18 | 19 | 20 | Installation 21 | ~~~~~~~~~~~~ 22 | 23 | This is a WeiDU mod, that means it is very easy to install. Simply unpack the downloaded archive 24 | into your game directory and run "setup-A7-BanterAccelerator.exe". 25 | 26 | Alternatively, you can simply copy a premade banter timing file into the game without running the 27 | installer at all. They can be found in "A7-BanterAccelerator/override". You can choose between many 28 | variants with different interval and/or probability values. Each one is located in a subfolder 29 | that indicates both interval in ticks (1/15th seconds) and probability (in percent) of banters. 30 | For example "450_25" indicates a banter timing of 450 ticks interval and 25% probability. 31 | Copy the file into the game's "override" folder. Create the folder manually if it doesn't exist yet. 32 | 33 | You don't have to start a new game for the changes to take effect. 34 | 35 | 36 | Components 37 | ~~~~~~~~~~ 38 | 39 | There is only one component "Banter Accelerator" with several different timing variants selectable 40 | as subcomponents. You can also define your own timings by selecting "User-defined" instead. 41 | 42 | 43 | Credits 44 | ~~~~~~~ 45 | 46 | Coding and testing: Argent77 47 | 48 | French translation: Gwendolyne 49 | 50 | Brazilian Portuguese translation: Felipe 51 | 52 | 53 | Copyright Notice 54 | ~~~~~~~~~~~~~~~~ 55 | 56 | The mod "Banter Accelerator for Enhanced Edition games" is licensed under the "Creative Commons 57 | Attribution-ShareAlike 4.0 International License" (http://creativecommons.org/licenses/by-sa/4.0/). 58 | 59 | 60 | History 61 | ~~~~~~~ 62 | 63 | 1.6 64 | - Added Simplified Chinese translation (thanks MephistoSatanDevil) 65 | 66 | 1.5 67 | - Added Brazilian Portuguese translation (thanks Felipe) 68 | - Added component labels for Project Infinity 69 | 70 | 1.4 71 | - Added Project Infinity metadata 72 | - Added German translation for WeiDU prompts 73 | - Added WeiDU SUPPORT information 74 | - Fixed potential display issues with component names in WeiDU.log and Project Infinity 75 | 76 | 1.3 77 | - Made install options more user-friendly by replacing ticks with seconds 78 | 79 | 1.2 80 | - Added French translation (thanks Gwendolyne) 81 | - Added German translation 82 | 83 | 1.1 84 | - Changed "seconds" to "ticks" 85 | - Redesigned available presets 86 | 87 | 1.0 88 | - Initial release 89 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/readme/readme-german.txt: -------------------------------------------------------------------------------- 1 | Banterbeschleuniger für "Enhanced Edition"-Spiele 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | 4 | Version: 1.6 5 | Autor: Argent77 6 | 7 | Download: https://github.com/Argent77/A7-BanterAccelerator/releases/latest 8 | Diskussion: https://forums.beamdog.com/discussion/64551/mod-banter-accelerator-for-enhanced-edition-games 9 | 10 | 11 | Übersicht 12 | ~~~~~~~~~ 13 | 14 | Diese Mod erlaubt es die Häufigkeit der Geplänkel zwischen den Gruppenmitgliedern zu definieren. 15 | Man kann aus einer Liste von vorgegebenen Konfigurationen auswählen oder die entsprechenden Werte 16 | selbst eingeben. 17 | 18 | Es werden alle "Enhanced Edition"-Spiele unterstützt. 19 | 20 | 21 | Installation 22 | ~~~~~~~~~~~~ 23 | 24 | Dies ist eine WeiDU Mod. Das bedeutet, sie ist sehr einfach zu installieren. Entpackt die 25 | heruntergeladene Zipdatei in das Spieleverzeichnis und startet "setup-A7-BanterAccelerator.exe". 26 | Folgt den Anweisungen des Programms und die Mod ist startbereit. 27 | 28 | Ersatzweise kann man die Banterbeschleuniger-Datei direkt in das Spiel kopieren. Dafür gibt es 29 | eine Auswahl von verschiedenen Varianten im Ordner "A7-BanterAccelerator/override". Geht dazu 30 | in das Unterverzeichnis mit den gewünschten Parametern und kopiert die darin vorhandene Datei 31 | "banttimg.2da" in den Override-Ordner des Spiels. Ggf. erzeugt diesen Ordner manuell, falls 32 | er noch nicht vorhanden ist. Die Namen der Unterordner weisen auf die Konfiguration der Banter- 33 | beschleunigung hin. Zum Beispiel beinhaltet der Ordner "450_25" eine Datei mit der Frequenz 34 | von 450 Ticks (1/15 Sekunden) und einer Wahrscheinlichkeit von 25% hin. 35 | 36 | Es muss kein neues Spiel gestartet werden, um die Änderungen zu aktivieren. 37 | 38 | 39 | Komponenten 40 | ~~~~~~~~~~~ 41 | 42 | Es gibt nur eine Komponente "Banterbeschleuniger" in mehreren vorgegebenen Konfigurationen als 43 | Unterkomponenten, oder "Benutzerdefiniert" für die manuell Eingabe von Werten. 44 | 45 | 46 | Credits 47 | ~~~~~~~ 48 | 49 | Coding and testing: Argent77 50 | 51 | French translation: Gwendolyne 52 | 53 | Brazilian Portuguese translation: Felipe 54 | 55 | 56 | Copyright Notice 57 | ~~~~~~~~~~~~~~~~ 58 | 59 | The mod "Banter Accelerator for Enhanced Edition games" is licensed under the "Creative Commons 60 | Attribution-ShareAlike 4.0 International License" (http://creativecommons.org/licenses/by-sa/4.0/). 61 | 62 | 63 | History 64 | ~~~~~~~ 65 | 66 | 1.6 67 | - Added Simplified Chinese translation (thanks MephistoSatanDevil) 68 | 69 | 1.5 70 | - Added Brazilian Portuguese translation (thanks Felipe) 71 | - Added component labels for Project Infinity 72 | 73 | 1.4 74 | - Added Project Infinity metadata 75 | - Added German translation for WeiDU prompts 76 | - Added WeiDU SUPPORT information 77 | - Fixed potential display issues with component names in WeiDU.log and Project Infinity 78 | 79 | 1.3 80 | - Made install options more user-friendly by replacing ticks with seconds 81 | 82 | 1.2 83 | - Added French translation (thanks Gwendolyne) 84 | - Added German translation 85 | 86 | 1.1 87 | - Changed "seconds" to "ticks" 88 | - Redesigned available presets 89 | 90 | 1.0 91 | - Initial release 92 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/readme/readme-french.txt: -------------------------------------------------------------------------------- 1 | Accélérateur de bavardages pour les Éditions améliorées 2 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 | 4 | Version : 1.6 5 | Auteur : Argent77 6 | 7 | Téléchargement : https://github.com/Argent77/A7-BanterAccelerator/releases/latest 8 | Discussion : https://forums.beamdog.com/discussion/64551/mod-banter-accelerator-for-enhanced-edition-games 9 | 10 | 11 | Généralités 12 | ~~~~~~~~~~~ 13 | 14 | Ce mod vous permet de définir le rythme des bavardages entre les personnages de votre équipe. 15 | Vous pouvez le choisir dans une liste pré-établie ou le définir vous-même. 16 | 17 | Il est compatible avec tous les jeux Enhanced Edition. 18 | 19 | 20 | Installation 21 | ~~~~~~~~~~~~ 22 | 23 | Il s'agit d'un mod WeiDU, donc très facile à installer. Il suffit de décompresser l'archive 24 | téléchargée dans votre répertoire de jeu et de lancer "setup-A7-BanterAccelerator.exe". 25 | 26 | Les joueurs avertis et versés dans le modding peuvent se passer d'installer ce mod en copiant 27 | simplement un fichier gérant le rythme de bavardage (banttimg.2da) dans le jeu. Ces fichiers 28 | se trouvent dans le répertoire "A7-BanterAccelerator/override". Chacun d'eux se trouve dans un 29 | sous-répertoire dont le nom indique la fréquence en "ticks" ("instants" de 1/15e de seconde) 30 | et la probabilité (en pourcentage) de lancer un bavardage. 31 | Par exemple, le sous-répertoire "450_25" correspond à un intervalle de 450 ticks entre chaque 32 | bavardage et une probabilité de 25 % de chances d'initier les conversations. 33 | Il suffit donc de copier le fichier banttimg.2da dans le répertoire "override" du jeu, à créer 34 | s'il n'existe pas. 35 | 36 | Il n'est pas nécessaire de lancer une nouvelle partie pour que les modifications prennent effet. 37 | 38 | 39 | Composants 40 | ~~~~~~~~~~ 41 | 42 | Ce mod ne comporte qu'un seul composant "Accélérateur de bavardages" offrant plusieurs paramétrages 43 | prédéfinis, ainsi qu'une option "Choisissez vous-même le rythme des bavardages" vous permettant de 44 | définir la fréquence et la probabilité de lancement des discussions. 45 | 46 | 47 | Credits 48 | ~~~~~~~ 49 | 50 | Coding and testing: Argent77 51 | 52 | French translation: Gwendolyne 53 | 54 | Brazilian Portuguese translation: Felipe 55 | 56 | 57 | Copyright Notice 58 | ~~~~~~~~~~~~~~~~ 59 | 60 | The mod "Banter Accelerator for Enhanced Edition games" is licensed under the "Creative Commons 61 | Attribution-ShareAlike 4.0 International License" (http://creativecommons.org/licenses/by-sa/4.0/). 62 | 63 | 64 | History 65 | ~~~~~~~ 66 | 67 | 1.6 68 | - Added Simplified Chinese translation (thanks MephistoSatanDevil) 69 | 70 | 1.5 71 | - Added Brazilian Portuguese translation (thanks Felipe) 72 | - Added component labels for Project Infinity 73 | 74 | 1.4 75 | - Added Project Infinity metadata 76 | - Added German translation for WeiDU prompts 77 | - Added WeiDU SUPPORT information 78 | - Fixed potential display issues with component names in WeiDU.log and Project Infinity 79 | 80 | 1.3 81 | - Made install options more user-friendly by replacing ticks with seconds 82 | 83 | 1.2 84 | - Added French translation (thanks Gwendolyne) 85 | - Added German translation 86 | 87 | 1.1 88 | - Changed "seconds" to "ticks" 89 | - Redesigned available presets 90 | 91 | 1.0 92 | - Initial release 93 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/languages/german/setup.tra: -------------------------------------------------------------------------------- 1 | @1 = ~Banterbeschleuniger~ 2 | @10 = ~Frequenz: 60 Sekunden, Wahrscheinlichkeit: 10%~ 3 | @11 = ~Frequenz: 60 Sekunden, Wahrscheinlichkeit: 25%~ 4 | @12 = ~Frequenz: 60 Sekunden, Wahrscheinlichkeit: 50%~ 5 | @20 = ~Frequenz: 40 Sekunden, Wahrscheinlichkeit: 10% (Standard)~ 6 | @21 = ~Frequenz: 40 Sekunden, Wahrscheinlichkeit: 25%~ 7 | @22 = ~Frequenz: 40 Sekunden, Wahrscheinlichkeit: 50%~ 8 | @30 = ~Frequenz: 30 Sekunden, Wahrscheinlichkeit: 10%~ 9 | @31 = ~Frequenz: 30 Sekunden, Wahrscheinlichkeit: 25%~ 10 | @32 = ~Frequenz: 30 Sekunden, Wahrscheinlichkeit: 50%~ 11 | @40 = ~Frequenz: 10 Sekunden, Wahrscheinlichkeit: 10%~ 12 | @41 = ~Frequenz: 10 Sekunden, Wahrscheinlichkeit: 25%~ 13 | @42 = ~Frequenz: 10 Sekunden, Wahrscheinlichkeit: 50%~ 14 | @99 = ~Benutzerdefiniert~ 15 | 16 | @100 = ~Wird nicht von diesem Spiel unterstuetzt.~ 17 | @101 = ~Ungueltiger Wert. Nur positive Zahlen sind zulaessig.~ 18 | @102 = ~Zahl muss innerhalb des Bereichs 0 bis 100 liegen.~ 19 | @103 = ~Bitte "y" fuer Ja, "n" fuer Nein oder "c" fuer Abbruch eingeben.~ 20 | @104 = ~Installation wurde durch den Nutzer abgebrochen.~ 21 | 22 | @200 = ~Frequenz in Sekunden:~ 23 | @201 = ~Wahrscheinlichkeit (in Prozent):~ 24 | @202 = ~Folgende Werte anwenden: Frequenz = %freq% Sekunden, Wahrscheinlichkeit = %prob% Prozent? ([Y]Ja, [N]ein oder [C]Abbruch):~ 25 | 26 | 27 | // WeiDU prompts 28 | @-1000= "Die %TP2_FILE_NAME%-Mod besitzt" 29 | @-1001= "verschiedene optionale Komponenten. 30 | Um Zeit zu sparen, koennen Sie waehlen, was Sie mit ihnen im Allgemeinen 31 | machen moechten, anstatt nach jeder einzelnen gefragt zu werden. 32 | " 33 | @-1002= "Was soll mit den Komponenten getan werden, die NOCH NICHT installiert wurden? 34 | [I]nstallieren, Ueber[S]springen, jeweils n[A]chfragen? " 35 | @-1003= "Was soll mit den Komponenten getan werden, die BEREITS installiert wurden? 36 | [R]Neuinstallation, [U]Entfernen, Ueber[S]pringen, jeweils n[A]chfragen? " 37 | 38 | @-1004= "Bitte sichern Sie folgende Datei:" 39 | @-1005= "und suchen sie hier nach Hilfe:" 40 | 41 | @-1006= "Installiere Komponente [" 42 | @-1007= "]? 43 | [R]Neuinstallation, Kei[N]e Aenderung, [U]Entfernen oder [Q]uit? " 44 | @-1008= "]? 45 | [I]nstallieren, [N]icht installieren oder [Q]uit? " 46 | 47 | @-1009= "Teil des Modulnamens eingeben: " 48 | 49 | @-1010= "Neuinstallation der [" 50 | @-1011= "]-Komponente " 51 | @-1012= "Neuinstallation in der Sprache" 52 | 53 | @-1013= "Entferne zuerst alte Installation von [" 54 | @-1014= "] ..." 55 | @-1015= "ALTE INSTALLATION ERFOLGREICH ENTFERNT" 56 | 57 | @-1016= "Installiere" 58 | @-1017= "FEHLER bei der Installation von [" 59 | @-1018= "], vorheriger Zustand wird wiederhergestellt" 60 | @-1019= "ERFOLGREICH INSTALLIERT " 61 | @-1020= "Ueberspringe" 62 | @-1021= "Entferne [" 63 | @-1022= "] (Komponente #" 64 | @-1023= ")" 65 | @-1024= "ERFOLGREICH ENTFERNT: [" 66 | 67 | @-1025= "]? 68 | [R]Neuinstallation, Kei[N]e Aenderung, [U]Entfernen, [Q]uit oder Auswahl:" 69 | @-1026= "]? 70 | [N]ein, [Q]uit oder Auswahl:" 71 | @-1027= " (bereits installiert=" 72 | 73 | @-1028= "Komponenten anzeigen von [" 74 | @-1029= "]? 75 | [Y]Ja, [N]ein? " 76 | 77 | @-1030= "]? 78 | Auswahl:" 79 | @-1031= "]? 80 | [R]Neuinstallation, Kei[N]e Aenderung, [Q]uit oder Auswahl:" 81 | @-1032= "NICHT INSTALLIERT WEGEN FEHLER" 82 | @-1033= "MIT WARNUNGEN INSTALLIERT " 83 | @-1034= "Soll die Liesmich angezeigt werden? [Y]Ja [N]ein" 84 | @-1035= "Benutze Sprache" 85 | 86 | @-1036= "Ueberspringe GRUPPE [" 87 | @-1037= "] wegen nicht erfuellter Anforderungen." 88 | 89 | @-1038= "Jede Komponente n[A]chfragen, Alle ueber[S]pringen oder Vorauswahl treffen:" 90 | @-1039= "Jede Komponente n[A]chfragen, Auswahl neu installie[R]en, [U]Alle entfernen, Alle ueber[S]pringen oder Vorauswahl treffen:" 91 | 92 | @-1040= " 93 | Waehlen Sie bitte die Sprache, in der Sie das Spiel spielen wollen. 94 | Wenn Sie spaeter das Spiel in einer anderen Sprache spielen wollen, muessen Sie die Datei weidu.conf bearbeiten und Ihre Mods neu installieren. 95 | " 96 | @-1041= "Tschechisch" 97 | @-1042= "Deutsch" 98 | @-1043= "Englisch" 99 | @-1044= "Spanisch" 100 | @-1045= "Franzoesisch" 101 | @-1046= "Italienisch" 102 | @-1047= "Polnisch" 103 | @-1048= "Portugiesisch" 104 | @-1049= "Tuerkisch" 105 | @-1050= "Japanisch" 106 | @-1051= "Koreanisch" 107 | @-1052= "Vereinfachtes Chinesisch" 108 | @-1053= "Russisch" 109 | @-1054= "Ukrainisch" 110 | 111 | @-1060= " 112 | Dieses Spiel ist in mehreren Sprachen verfuegbar, aber WeiDU weiss nicht, welche Spielsprache verwendet wurde, als diese Mod installiert wurde. 113 | 114 | Geben Sie bitte an, in welcher Spielsprache diese Mod installiert wurde. Ihre Auswahl wird nicht gespeichert und nur solange genutzt, bis WeiDU beendet wird. 115 | " 116 | @-1061= " 117 | Benutze" 118 | @-1062= " und " 119 | @-1063= "INSTALLATION ABGEBROCHEN" 120 | @-1064= "Abbruch der Installation von [" 121 | @-1065= "], vorheriger Zustand wird wiederhergestellt" 122 | -------------------------------------------------------------------------------- /A7-BanterAccelerator/A7-BanterAccelerator.tp2: -------------------------------------------------------------------------------- 1 | BACKUP ~weidu_external/backup/A7-BanterAccelerator~ 2 | SUPPORT ~https://forums.beamdog.com/discussion/64551~ 3 | VERSION ~1.6~ 4 | 5 | ALWAYS 6 | // required because of non-standard BACKUP path 7 | OUTER_TEXT_SPRINT MOD_FOLDER ~A7-BanterAccelerator~ 8 | // root folder for mutable data 9 | OUTER_TEXT_SPRINT WORK_FOLDER ~weidu_external~ 10 | 11 | INCLUDE ~%MOD_FOLDER%/lib/functions.tph~ 12 | END 13 | 14 | README ~A7-BanterAccelerator/readme/readme-%LANGUAGE%.txt~ 15 | ~A7-BanterAccelerator/readme/readme.txt~ 16 | 17 | LANGUAGE ~English~ 18 | ~english~ 19 | ~A7-BanterAccelerator/languages/english/setup.tra~ 20 | 21 | LANGUAGE ~French (Translation: Gwendolyne)~ 22 | ~french~ 23 | ~A7-BanterAccelerator/languages/english/setup.tra~ 24 | ~A7-BanterAccelerator/languages/french/setup.tra~ 25 | 26 | LANGUAGE ~German~ 27 | ~german~ 28 | ~A7-BanterAccelerator/languages/english/setup.tra~ 29 | ~A7-BanterAccelerator/languages/german/setup.tra~ 30 | 31 | LANGUAGE ~Brazilian Portuguese (Translation: Felipe)~ 32 | ~brazilianportuguese~ 33 | ~A7-BanterAccelerator/languages/english/setup.tra~ 34 | ~A7-BanterAccelerator/languages/brazilianportuguese/setup.tra~ 35 | 36 | LANGUAGE ~Simplified Chinese~ 37 | ~schinese~ 38 | ~A7-BanterAccelerator/languages/english/setup.tra~ 39 | ~A7-BanterAccelerator/languages/schinese/setup.tra~ 40 | 41 | BEGIN @10 // Frequency: 60 seconds, Probability: 10% 42 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 43 | SUBCOMPONENT @1 // Banter Accelerator 44 | DESIGNATED 10 45 | LABEL ~A7-BANTERACCELERATOR-60_10~ 46 | 47 | LAF SET_BANTER_VALUES INT_VAR frequency = 900 probability = 10 END 48 | 49 | BEGIN @11 // Frequency: 60 seconds, Probability: 25% 50 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 51 | SUBCOMPONENT @1 // Banter Accelerator 52 | DESIGNATED 11 53 | LABEL ~A7-BANTERACCELERATOR-60_25~ 54 | 55 | LAF SET_BANTER_VALUES INT_VAR frequency = 900 probability = 25 END 56 | 57 | BEGIN @12 // Frequency: 60 seconds, Probability: 50% 58 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 59 | SUBCOMPONENT @1 // Banter Accelerator 60 | DESIGNATED 12 61 | LABEL ~A7-BANTERACCELERATOR-60_50~ 62 | 63 | LAF SET_BANTER_VALUES INT_VAR frequency = 900 probability = 50 END 64 | 65 | BEGIN @20 // Frequency: 40 seconds, Probability: 10% (default) 66 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 67 | SUBCOMPONENT @1 // Banter Accelerator 68 | DESIGNATED 20 69 | LABEL ~A7-BANTERACCELERATOR-40_10~ 70 | 71 | LAF SET_BANTER_VALUES INT_VAR frequency = 600 probability = 10 END 72 | 73 | BEGIN @21 // Frequency: 40 seconds, Probability: 25% 74 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 75 | SUBCOMPONENT @1 // Banter Accelerator 76 | DESIGNATED 21 77 | LABEL ~A7-BANTERACCELERATOR-40_25~ 78 | 79 | LAF SET_BANTER_VALUES INT_VAR frequency = 600 probability = 25 END 80 | 81 | BEGIN @22 // Frequency: 40 seconds, Probability: 50% 82 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 83 | SUBCOMPONENT @1 // Banter Accelerator 84 | DESIGNATED 22 85 | LABEL ~A7-BANTERACCELERATOR-40_50~ 86 | 87 | LAF SET_BANTER_VALUES INT_VAR frequency = 600 probability = 50 END 88 | 89 | BEGIN @30 // Frequency: 30 seconds, Probability: 10% 90 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 91 | SUBCOMPONENT @1 // Banter Accelerator 92 | DESIGNATED 30 93 | LABEL ~A7-BANTERACCELERATOR-30_10~ 94 | 95 | LAF SET_BANTER_VALUES INT_VAR frequency = 450 probability = 10 END 96 | 97 | BEGIN @31 // Frequency: 30 seconds, Probability: 25% 98 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 99 | SUBCOMPONENT @1 // Banter Accelerator 100 | DESIGNATED 31 101 | LABEL ~A7-BANTERACCELERATOR-30_25~ 102 | 103 | LAF SET_BANTER_VALUES INT_VAR frequency = 450 probability = 25 END 104 | 105 | BEGIN @32 // Frequency: 30 seconds, Probability: 50% 106 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 107 | SUBCOMPONENT @1 // Banter Accelerator 108 | DESIGNATED 32 109 | LABEL ~A7-BANTERACCELERATOR-30_50~ 110 | 111 | LAF SET_BANTER_VALUES INT_VAR frequency = 450 probability = 50 END 112 | 113 | BEGIN @40 // Frequency: 10 seconds, Probability: 10% 114 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 115 | SUBCOMPONENT @1 // Banter Accelerator 116 | DESIGNATED 40 117 | LABEL ~A7-BANTERACCELERATOR-10_10~ 118 | 119 | LAF SET_BANTER_VALUES INT_VAR frequency = 150 probability = 10 END 120 | 121 | BEGIN @41 // Frequency: 10 seconds, Probability: 25% 122 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 123 | SUBCOMPONENT @1 // Banter Accelerator 124 | DESIGNATED 41 125 | LABEL ~A7-BANTERACCELERATOR-10_25~ 126 | 127 | LAF SET_BANTER_VALUES INT_VAR frequency = 150 probability = 25 END 128 | 129 | BEGIN @42 // Frequency: 10 seconds, Probability: 50% 130 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 131 | SUBCOMPONENT @1 // Banter Accelerator 132 | DESIGNATED 42 133 | LABEL ~A7-BANTERACCELERATOR-10_50~ 134 | 135 | LAF SET_BANTER_VALUES INT_VAR frequency = 150 probability = 50 END 136 | 137 | BEGIN @99 // User-defined 138 | REQUIRE_PREDICATE (FILE_EXISTS_IN_GAME ~banttimg.2da~) @100 // Not supported by this game. 139 | SUBCOMPONENT @1 // Banter Accelerator 140 | DESIGNATED 99 141 | LABEL ~A7-BANTERACCELERATOR-USERDEFINED~ 142 | 143 | OUTER_SET accept = 0 144 | OUTER_WHILE (accept = 0) BEGIN 145 | OUTER_SET freq = "-1" 146 | OUTER_WHILE (freq = "-1") BEGIN 147 | PRINT @200 // Enter frequency (in seconds): 148 | ACTION_READLN value 149 | ACTION_IF (~%value%~ STRING_MATCHES_REGEXP ~[1-9][0-9]*~ = 0) BEGIN 150 | OUTER_SET freq = value 151 | END ELSE BEGIN 152 | PRINT @101 // Invalid number specified. Use positive integers. 153 | END 154 | END 155 | 156 | OUTER_SET prob = "-1" 157 | OUTER_WHILE (prob = "-1") BEGIN 158 | PRINT @201 // Enter probability (in percent): 159 | ACTION_READLN value 160 | ACTION_IF (~%value%~ STRING_EQUAL ~0~ OR ~%value%~ STRING_MATCHES_REGEXP ~[1-9][0-9]*~ = 0) BEGIN 161 | ACTION_IF (value >= 0 AND value <= 100) BEGIN 162 | OUTER_SET prob = value 163 | END ELSE BEGIN 164 | PRINT @102 // Number is out of range. Use values between 0 and 100. 165 | END 166 | END ELSE BEGIN 167 | PRINT @101 // Invalid number specified. Use positive integers. 168 | END 169 | END 170 | 171 | OUTER_SET proceed = 0 172 | OUTER_WHILE (proceed = 0) BEGIN 173 | PRINT @202 // Use these values: frequency = %freq% seconds, probability = %prob% percent? ([Y]es, [N]o or [C]ancel): 174 | ACTION_READLN value 175 | ACTION_IF (~%value%~ STRING_EQUAL_CASE ~y~ OR ~%value%~ STRING_EQUAL_CASE ~yes~) BEGIN 176 | OUTER_SET proceed = 1 177 | OUTER_SET accept = 1 178 | END ELSE ACTION_IF (~%value%~ STRING_EQUAL_CASE ~n~ OR ~%value%~ STRING_EQUAL_CASE ~no~) BEGIN 179 | OUTER_SET proceed = 1 180 | END ELSE ACTION_IF (~%value%~ STRING_EQUAL_CASE ~c~ OR ~%value%~ STRING_EQUAL_CASE ~cancel~) BEGIN 181 | OUTER_SET proceed = 1 182 | OUTER_SET accept = "-1" 183 | END ELSE BEGIN 184 | PRINT @103 // Please specify "y" for yes, "n" for no or "c" for cancel. 185 | END 186 | END 187 | END 188 | 189 | ACTION_IF (accept > 0) BEGIN 190 | LAF SET_BANTER_VALUES 191 | INT_VAR 192 | frequency = freq * 15 193 | probability = prob 194 | END 195 | END ELSE BEGIN 196 | FAIL @104 // Installation cancelled. 197 | END 198 | --------------------------------------------------------------------------------