AI Influence – Battle Shout

If you liked this item, please rate it up on Steam Workshop page.

Author: Gérard Fricotin™

Last revision: 26 Feb at 17:15 UTC

File size: 669.96 KB

On Steam Workshop

Description:

Bring battlefield banter to life

AI Influence: Battle Shout lets you type a custom shout during combat and have nearby soldiers react dynamically. Your shouts can also be recorded into nearby heroes’ AI Influence context, so they can reference what happened later.

This is primarily an addon for AI Influence


Features

• Custom battle shouts (typed by you)

  • In combat, press / to open a short text input and shout any line you want.
  • Hotkey is configurable in MCM.
  • The mod can also be enabled in Arena / Tournaments via MCM.

• Multiple AI backends (via AI Influence)

  • Battle Shout can use the same AI backends and configuration as AI Influence.
  • Supported backends include: Player2, OpenRouter, Ollama, KoboldCpp, DeepSeek (depending on your AI Influence setup).
  • If something behaves oddly with a backend, please report it (this is still new).

• Dynamic battle orders

  • This option is toggled off by default. Check the MCM.
  • When enabled, shouts beginning with ! are interpreted as orders and analyzed by the AI backend to trigger in-game commands.
  • Formation targeting can be enabled in MCM (otherwise orders apply to all troops).
  • Supported orders:
    • Movements: Charge, Advance, FallBack, Retreat, Stop, Follow.
    • Formations: Line, Shield Wall, Loose, Column, Square, Circle, Scatter, Skein.
    • Fire: Fire at Will, Hold Fire.
  • Formation acknowledgement: when an order targets a formation, soldiers from that formation can respond with short acknowledgements.


• Dynamic reactions from nearby troops

  • Allies and enemies within a configurable hearing radius respond with short barks generated by your selected AI backend.
  • Responses should be generated in your game’s language.
  • Siege context is taken into account (attack/defend guidance).
  • Prompts can optionally include AI Influence world.txt (more context, more tokens).

• Smarter context for more believable barks

  • The AI can receive extra situational context, such as:
    • recent wounds / pressure (enemy distance)
    • soldier current formation
    • soldier culture
    • lite personality traits (tier/role/isHero/etc.)

• AI Influence context integration

  • Lords / heroes within hearing range can have your shout recorded into their AI Influence JSON as an event.
  • Additional battle context is included for better consistency.

• Ambient battlefield chatter

  • Soldiers periodically comment during battle (interval + number of speakers configurable).
  • Lines are influenced by the current situation (alive counts, casualties, momentum).
  • Ambient barks are slightly staggered (not all at once).
  • Token Annihilator section: optionally add up to 250 soldiers to shout responses and ambient barks (big battles, big chaos).

• NPC Shouts

  • Optional system that allows initialized NPC heroes to occasionally shout during battle.
  • Configurable probability / frequency + max shouters per trigger.
  • NPC shouts can trigger nearby troop reactions (same pipeline as player shouts).

• Hero banter

  • From time to time, two nearby heroes will exchange a short, AI-generated back-and-forth (2 lines).

• Shield taunt (soft dependency)

  • Optional shield-bash style taunt animation for soldiers (requires VSShieldTaunt[www.nexusmods.com] mod installed).
  • If the dependency isn’t present, Battle Shout falls back to normal taunts.

• Duels (Lord of Duels soft dependency)

  • Optional integration for the Lord of Duels[www.nexusmods.com] mod.
  • Allows you to start the duel with a line, to which your opponent will respond. Your opponent should also respond to your shout during the duel.
  • Soldiers spectating the duel comment and support their champions (replace ambient barks). They can respond to hits taken by a duelist.

Requirements

Required:
Harmony
ButterLib
UIExtenderEx
MCM
AI Influence

LLM Backend (required for dynamic generation – only 1 of these is needed, not several):
Player2 App (recommended)
OpenRouter
Deepseek
Ollama
KoboldCpp

Important : There are no settings in the mod’s MCM for AI backend since it copies the settings used by AI Influence.

Configuration (MCM)

Shout hotkey
Hearing radius
Popup font size & lifetime
Enable/disable usage during tournament
Number of allied/enemy responses to your shouts
Ambient chatter: interval + number of allied/enemy speakers
Optional: include AI Influence world.txt in prompts
NPC shouts: enable toggle + chance/frequency + max NPC shouters + stagger delay
NPC short-term memory
Additional battle context
Soldiers taunts & shield bash
Hero banter
Dynamic orders details
Token Annihilator section (Danger Zone) (up to 250 soldiers responses)

Notes

This mod is still alpha: please report issues and odd behaviors (logs help a lot).

Regarding token usage : This mod uses small prompts and as such does consume tokens, the amount is minimal but non-zero. If you want to limit the token usage, you can change in the MCM :
Disable world.txt (drastically lower prompt size)
Disable ambient battle chatter (no periodical request to Player2)
Disable NPC Shout (Lords and hero will not shout during battle, removes rare but heavy requests to Player2)
– Reduce or put at 0 the number of soldiers responses to shouts
—–
Shouting yourself and have the shouts recorded in NPCs JSONS does NOT use tokens since it doesn’t call Player2.
But all other dynamic features rely on dynamic LLM generation and as such use tokens.

Compatibility / Support

Compiled for Bannerlord v1.3.13
Tested with AI Influence 3.3.9

AI Influence Discord [discord.gg]

Support / Player2 referral

If you want to support me, you can subscribe to your Player2 Patron using my code: PATRONMO1GBH
You’ll get a 5% discount on your first month and I receive 500J, which help me test the mod !

🔗 Nexus Mods : https://www.nexusmods.com/mountandblade2bannerlord/mods/9915
🔗 Player2 : https://player2.game/games/user-63c8-m5hr/game-e556843a