Results 1 to 2 of 2

Thread: Scripting battle features for in the campaign and historical battles

  1. #1
    20ninescene's Avatar Artifex
    Join Date
    Mar 2014
    Location
    East-Flanders, Belgium
    Posts
    668

    Icon5 Scripting battle features for in the campaign and historical battles

    Hey,

    I wonder if it would be possible to script the following battle features in the background/historical battle script knowing that there's already a script that labels the player's and AI's units in the background script.

    -Each time or at least the first several times when a unit is under missile fire, to kill the minimal possible amount of men by script and twice the minimal amount for the player which is always Macedon.

    -When a unit's strength is reduced by 50% (33% for the AI if possible) or more it starts routing, if possible except when the unit (or the whole army) is winning in combat and the general isn't dead. Sparta shouldn't be affected by this.

    -When an army's strength is reduced by 75% (66% for the AI if possible) or more unless victory is almost certain and the general isn't dead if those conditions are possible. Sparta shouldn't be affected by this.

    -to make a unit ignorant to orders for 2 seconds if under missile fire, 1 second for the AI

    -To interrupt the charge of cavalry if they are charging spearmen from the front.

    Thanks in advance!

  2. #2
    z3n's Avatar State of Mind
    Moderator Emeritus

    Join Date
    Aug 2011
    Posts
    4,640

    Default Re: Scripting battle features for in the campaign and historical battles

    I am not sure. I looked at RTW battle scripting and felt it was far too limoted compared to M2TW.
    The AI Workshop Creator
    Europa Barbaroum II AI/Game Mechanics Developer
    The Northern Crusades Lead Developer
    Classical Age Total War Retired Lead Developer
    Rome: Total Realism Animation Developer
    RTW Workshop Assistance MTW2 AI Tutorial & Assistance
    Broken Crescent Submod (M2TW)/IB VGR Submod (BI)/Animation (RTW/BI/ALX)/TATW PCP Submod (M2TW)/TATW DaC Submod (M2TW)/DeI Submod (TWR2)/SS6.4 Northern European UI Mod (M2TW)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •