Results 1 to 4 of 4

Thread: Skirmish Question

  1. #1

    Default Skirmish Question

    For the purposes of modding, I want to change the default behaviour of missile units so they always engage in hand-hand combat when the enemy closes range. Currently, the default behaviour is for archers etc. to pull back and try to increase range until they feel 'safe enough' to re-engage with their primary weapons.

    However...if you toggle the skirmish button off, they switch immediately to hand to hand once the enemy get in close. Is there any way, either by script or preferences etc. that I can change this behaviour so the units are automatically in this state, and you have to click the button if you want them to 'skirmish'

    I get two benefits from this...

    1) Missiles still get fired up close by any units not directly engaged
    2) The units don't run away unless morale drops and hold the line properly
    Careless Orc Costs Lives!

  2. #2
    Ja mata, TosaInu Forum Administrator edyzmedieval's Avatar
    Join Date
    May 2005
    Location
    Fortress of the Mountains
    Posts
    11,441

    Default Re: Skirmish Question

    I remember seeing the stance of the units in one txt file....
    Maybe I can find it once again....

    Sorry if I am wrong, I'll let you know if I find something.
    Ja mata, TosaInu. You will forever be remembered.

    Proud

    Been to:

    Swords Made of Letters - 1938. The war is looming in France - and Alexandre Reythier does not have much time left to protect his country. A novel set before the war.

    A Painted Shield of Honour - 1313. Templar Knights in France are in grave danger. Can they be saved?

  3. #3

    Default Re: Skirmish Question

    Not sure exactly how this file works, but I found this in 'descr_formations'

    Where does this file get used, and would it apply to custom battles AND campaign action?


    Code:
    ;****************************************************************
    ; Triple Line. 
    ; Missile Infantry
    ; Non Missile Infantry
    ; Cavalry
    ;****************************************************************
    
    
    begin_formation ordered_triple_line_1
    
    	general_order Group_Formation_Missile_First_3_lines
    
    	;; front block
    	begin_block 0
    		unit_type					missile infantry	1.0
    		default_melee_state			fire_at_will_and_skirmish
    		block_formation				line
    		block_relative_pos			0 0.0 0.0
    		inter_unit_spacing			2.0
    		priority					1.0
    	end_block
    
    	;; middle block
    	begin_block 1
    		unit_type					heavy infantry		1.0
    		unit_type					light infantry		1.0
    		unit_type					skirmish infantry	1.0
    		unit_type					spearmen infantry	1.0
    		block_formation				line
    		block_relative_pos			0 0.0 -15.0
    		inter_unit_spacing			2.0
    		priority					1.0
    	end_block
    
    	;; rear block
    	begin_block 2
    		unit_type					cavalry		1.0
    		block_formation				line
    		block_relative_pos			1 0.0 -15.0
    		inter_unit_spacing			2.0
    		priority					0.8
    	end_block
    	
    	;; put the artillery and handlers behind everyone
    	begin_dummy_block 3
    		spans 0 1 2
    	end_dummy_block
    
    	begin_block 4
    		unit_type					handler				1.0
    		unit_type					siege				1.0
    		block_formation				line
    		block_relative_pos			3 0.0 -15.0
    		inter_unit_spacing			3.0
    		priority					1.0
    	end_block		
    
    end_formation
    Not sure what value does what exactly, or when this formation is used, but I presume if I removed the 'and skirmish' the troops would melee like I want them too.
    Careless Orc Costs Lives!

  4. #4
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: Skirmish Question

    The file desc_formations_ai.txt is used by the AI to choose an initial arrangement for units on the battle map and desc_formations.txt is for arranging units in respose to selection of a formation button. I know desc_formations_ai.txt is used in custom and campaign battles and assume the same is true for desc_formations.txt.

    You'd need to change the skirmish mode for all missle troops in every formation listed in both files I believe.

    Can't help out with the syntax question.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO