OSP Kit Combat Battlefield Tactics kit. Multiple formations per team+command revamp!

正在查看此主题的用户

Should I consider your signature?  :cool:
I'm not a modder just a player consumer of mods :razz: , and, for example, all I found on the scripts.txt of Eagle & Radiant... is a long row of numbers after
插入代码块:
formation_stagger -1
. So I don't know if I can do anything about the keys.

Edit
Really, I'm the only one who finds the keys layout weird? IBH are logical about the names, but JPK aren't. Being so, it would be simplier as IOP (Infantery, Archers and Cavalry), JKL (Ranks, Line,Wedge) and NM ( Disassemble, Movement). Well, in fact, Disassemble should be far of the rest to avoid mistakes, like G.
If we can remember the action for each function key, that shouldn't be difficult, but fast to use.

This is not about one mod, but any mod that could use it, so I don't see the point on discussing it with D'Sparil.
 
Danath 说:
Should I consider your signature?  :cool:
I'm not a modder just a player consumer of mods :razz: , and, for example, all I found on the scripts.txt of Eagle & Radiant... is a long row of numbers after
插入代码块:
formation_stagger -1
. So I don't know if I can do anything about the keys.

Then you need to take your key issues up with D'Sparil.
 
@Danath  If you "consumers" don't like the way the keys are set up in D'Sparil's mod then you need to take the issue up with D'Sparil. 
The (non)issue doesn't affect everyone since any modder using these scripts can change the key setup.

@Kolba looks like you have the triggers pasted into the wrong place in mission_templates.  Go back a page or two and look at MarkusII's example.
 
ealabor 说:
1form.jpg

This issue has been resolved.

I was missing python process_global_variables.py in my compile bat list

 
first of all congratulations for this little mod, i think it's a great improvemente in combat.
said that i have some questions:
first of all i'm getting a lot of red messages at the end of battles,very often. i'll post later when i go back home what they're about.
second, i fought some sea riders just to test it out and noticed that they don't alawys use formations..is that correct or i did something wrong while compiling?
and now for the actual use of the formations, i noticed that there's no "everyone" button, i can only choose to command one kind of soldiers at a time..wouldn't be useful to let everyone follow a formation order at one instead of telling every type of unit what to do?
and more, once i issued a formation order, the "native" commands such charge follow and hold doesn't work anymore. did i messed up while compiling? could be since i don't understand anything about so i followed the suggestions i found in this thread.
so it's impossible to have a charge while keeping the formation..well actually to me the only way to have a charge is to making the troops follow me, but then they totally loose their formation.
another thing i could ask is if it's possible to change the key binds for the new orders, i mean it's just a matter of changing the selected keys in the .py file and then compile?
and last, looking at wikipedia i found those pages about formations, one for ranks http://en.wikipedia.org/wiki/Rank_(formation) and one for line http://en.wikipedia.org/wiki/Line_(formation).
ok now starting from the fact that i'm not english what i understand is that ranks formation mean everyone side by side and line means many ranks formations one behind another,  the only thing i see ingame are all my troops scattered on the ground inside and invisible rectangle, hope you know what i mean, they don't stand everyone at the same distance from the other in none of the available formations.
except wedge that is the only that i can distinguish while playing.
i know i am boring but i would like to give my most professional and precise feedback.
thank you so much and congratulations again!

edit: i'm using it with BoWx mod
 
giopanda 说:
first of all i'm getting a lot of red messages at the end of battles,very often. i'll post later when i go back home what they're about.
This is a known bug.


and more, once i issued a formation order, the "native" commands such charge follow and hold doesn't work anymore. did i messed up while compiling? could be since i don't understand anything about so i followed the suggestions i found in this thread.
You have use the disasemble formation button, U

another thing i could ask is if it's possible to change the key binds for the new orders, i mean it's just a matter of changing the selected keys in the .py file and then compile?
Yep, simple as that:
插入代码块:
 (0, 0, 0,
      [(key_clicked, key_i),        #I for infantry
       (assign,"$formation",grc_infantry),
       (display_message,"@Infantry_taking_orders."),
        ], []),
     (0, 0, 0,
      [(key_clicked, key_b),        #B for bowmen
       (assign,"$formation",grc_archers),
       (display_message,"@Archers_taking_orders."),
        ], []),
     (0, 0, 0,
      [(key_clicked, key_h),        #H for horsemen
       (assign,"$formation",grc_cavalry),
       (display_message,"@Cavalry_taking_orders."),
        ], []),

     (0, 0, 0,
      [(key_clicked, key_m),        #M for movement
       (try_begin),
         (eq,"$formationmode",0),
         (assign,"$formationmode",1),
         (display_message,"@Formation_will_follow."),
       (else_try),
         (eq,"$formationmode",1),
         (assign,"$formationmode",0),
         (display_message,"@Formation_will_hold."),
       (end_try),
        ], []),

     (0, 0, 0,
      [(key_clicked, key_j),        
       (get_player_agent_no,":player"),
       (agent_get_team  ,reg0, ":player"),
       (assign,reg1,"$formation"),
       (call_script,"script_formation"),
       (assign,"$formationtype",1),
       (display_message,"@Forming_ranks."),
        ], []),

     (0, 0, 0,
      [(key_clicked, key_p),        
       (get_player_agent_no,":player"),
       (agent_get_team  ,reg0, ":player"),
       (assign,reg1,"$formation"),
       (call_script,"script_formation"),
       (assign,"$formationtype",3),
       (display_message,"@Forming_a_line."),
        ], []),

     (0, 0, 0,
      [(key_clicked, key_k),        
       (get_player_agent_no,":player"),
       (agent_get_team  ,reg0, ":player"),
       (assign,reg1,"$formation"),
       (call_script,"script_formation_wedge"),
       (assign,"$formationtype",2),
       (display_message,"@Forming_a_wedge."),
        ], []),

     (0, 0, 0,
      [(key_clicked, key_u),        
       (get_player_agent_no,":player"),
       (agent_get_team  ,reg0, ":player"),
       (assign,reg1,"$formation"),
       (call_script,"script_formation_end"),
       (assign,"$formationtype",0),
       (display_message,"@Formation_disassembled."),
        ], []),

ok now starting from the fact that i'm not english what i understand is that ranks formation mean everyone side by side and line means many ranks formations one behind another,  the only thing i see ingame are all my troops scattered on the ground inside and invisible rectangle, hope you know what i mean, they don't stand everyone at the same distance from the other in none of the available formations.
except wedge that is the only that i can distinguish while playing.
Aye, I get the same effect.
 
D'Sparil 说:
and more, once i issued a formation order, the "native" commands such charge follow and hold doesn't work anymore. did i messed up while compiling? could be since i don't understand anything about so i followed the suggestions i found in this thread.
You have use the disasemble formation button, U

Actually, that only works some of the time.  It was working perfectly for me, but now I get it about every other battle.  I have a guess that Im going to check out.  Perhaps the script is already running when the battle ends, so the battle end check does not catch it since it is not in the scripts?  Just a guess that Ill test out.
 
Alright, I did what I was told and added this to the build module (edit):
@echo off
del "D:\Mount&Blade0.890\Modules\Native\tag_uses.txt"
del "D:\Mount&Blade0.890\Modules\Native\quick_strings.txt"
C:\Python25\python.exe process_global_variables.py
C:\Python25\python.exe process_strings.py
C:\Python25\python.exe process_skills.py
C:\Python25\python.exe process_music.py
C:\Python25\python.exe process_animations.py
C:\Python25\python.exe process_meshes.py
C:\Python25\python.exe process_sounds.py
C:\Python25\python.exe process_particle_sys.py
C:\Python25\python.exe process_skins.py
C:\Python25\python.exe process_map_icons.py
C:\Python25\python.exe process_factions.py
C:\Python25\python.exe process_items.py
C:\Python25\python.exe process_scene_props.py
C:\Python25\python.exe process_presentations.py
C:\Python25\python.exe process_scenes.py
C:\Python25\python.exe process_troops.py
C:\Python25\python.exe process_party_tmps.py
C:\Python25\python.exe process_parties.py
C:\Python25\python.exe process_quests.py
C:\Python25\python.exe process_scripts.py
C:\Python25\python.exe process_mission_tmps.py
C:\Python25\python.exe process_game_menus.py
C:\Python25\python.exe process_simple_triggers.py
C:\Python25\python.exe process_dialogs.py
C:\Python25\python.exe process_global_variables_unused.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

Now the error message I get is a new one. It read me this:
Systemet finner ikke angitt bane (system cannot find directed path).
Systemet finner ikke angitt bane.
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting particle data...
Exporting skins...
Exporting map icons...
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting troops data
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_mission_templates.py", line 3431
    (0, 0, 0,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent

______________________________

Script processing has ended.
Press any key to exit. . .
 
It's in the module system, which you have to download (there's a link in a sticky at the top of this section). You also need to download python.
 
King Yngvar 说:
Alright, I did what I was told and added this to the build module (edit):
@echo off
del "D:\Mount&Blade0.890\Modules\Native\tag_uses.txt"
del "D:\Mount&Blade0.890\Modules\Native\quick_strings.txt"
C:\Python25\python.exe process_global_variables.py
C:\Python25\python.exe process_strings.py
C:\Python25\python.exe process_skills.py
C:\Python25\python.exe process_music.py
C:\Python25\python.exe process_animations.py
C:\Python25\python.exe process_meshes.py
C:\Python25\python.exe process_sounds.py
C:\Python25\python.exe process_particle_sys.py
C:\Python25\python.exe process_skins.py
C:\Python25\python.exe process_map_icons.py
C:\Python25\python.exe process_factions.py
C:\Python25\python.exe process_items.py
C:\Python25\python.exe process_scene_props.py
C:\Python25\python.exe process_presentations.py
C:\Python25\python.exe process_scenes.py
C:\Python25\python.exe process_troops.py
C:\Python25\python.exe process_party_tmps.py
C:\Python25\python.exe process_parties.py
C:\Python25\python.exe process_quests.py
C:\Python25\python.exe process_scripts.py
C:\Python25\python.exe process_mission_tmps.py
C:\Python25\python.exe process_game_menus.py
C:\Python25\python.exe process_simple_triggers.py
C:\Python25\python.exe process_dialogs.py
C:\Python25\python.exe process_global_variables_unused.py
@del *.pyc
echo.
echo ______________________________
echo.
echo Script processing has ended.
echo Press any key to exit. . .
pause>nul

Now the error message I get is a new one. It read me this:
Systemet finner ikke angitt bane (system cannot find directed path).
Systemet finner ikke angitt bane.
Traceback (most recent call last):
  File "process_global_variables.py", line 11, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting particle data...
Exporting skins...
Exporting map icons...
Exporting faction data...
Exporting item data...
Traceback (most recent call last):
  File "process_items.py", line 59, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_scene_props.py", line 7, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_presentations.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting scene data...
Traceback (most recent call last):
  File "process_scenes.py", line 15, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting troops data
Exporting party_template data...
Traceback (most recent call last):
  File "process_parties.py", line 6, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Exporting quest data...
Traceback (most recent call last):
  File "process_scripts.py", line 4, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_mission_tmps.py", line 5, in <module>
    from module_mission_templates import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_mission_templates.py", line 3431
    (0, 0, 0,
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_game_menus.py", line 8, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_simple_triggers.py", line 5, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_dialogs.py", line 9, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent
Traceback (most recent call last):
  File "process_global_variables_unused.py", line 3, in <module>
    from process_operations import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\process_operations.py", line 20, in <module>
    from module_scripts import *
  File "C:\Documents and Settings\Yngvar Valen\Skrivebord\M&B\mb_module_system_0
903_0\ModuleSystem\module_scripts.py", line 11874
    ("formation",
    ^
IndentationError: unexpected indent

______________________________

Script processing has ended.
Press any key to exit. . .
This is a comma in the wrong place, post the entire script there so we can se what is wrong.
 
Thanks. Well if you mean from the module_scripts.py, here is the formation bit (last part of above included if that matters).

  #script_get_poorest_village_of_faction
  # INPUT: arg1 = center_no
  # OUTPUT: reg0 = ideal_prosperity
  ("get_poorest_village_of_faction",
    [(store_script_param, ":faction_no", 1),
    (assign, ":min_prosperity_village", -1),
    (assign, ":min_prosperity", 101),
    (try_for_range, ":village_no", villages_begin, villages_end),
      (store_faction_of_party, ":village_faction", ":village_no"),
      (eq, ":village_faction", ":faction_no"),
      (party_get_slot, ":prosperity", ":village_no", slot_town_prosperity),
      (lt, ":prosperity", ":min_prosperity"),
      (assign, ":min_prosperity", ":prosperity"),
      (assign, ":min_prosperity_village", ":village_no"),
    (try_end),
    (assign, reg0, ":min_prosperity_village"),
    ]),



 
]

  ("formation",
  [(team_get_leader, ":leader", reg0),     
    (agent_get_position,1,":leader"),
    (position_move_x,1,100),
    (assign,":collumn",1),
    (try_for_agents,reg(5)),
      (neq,reg5,":leader"),
      (agent_is_alive,reg(5)),
      (agent_is_human,reg(5)),
      (agent_get_team  ,":team", reg5),
      (eq,":team",reg0),
      (agent_get_class ,":class", reg5),
      (eq,":class",reg1),                                 
      (agent_set_scripted_destination,reg(5),1),
      (position_move_x,1,100),
      (try_begin),
          (eq,":collumn",12),
          (position_move_x,1,-12*100),
          (position_move_y,1,-100),
          (assign,":collumn",1),
      (else_try),
          (val_add,":collumn",1),
      (end_try),
    (end_try)]),

  ("formation_stagger",
  [(team_get_leader, ":leader", reg0),     
    (agent_get_position,1,":leader"),
    (position_move_x,1,100),
    (assign,":move_y",-100),
    (try_for_agents,reg(5)),
      (neq,reg5,":leader"),
      (agent_is_alive,reg(5)),
      (agent_is_human,reg(5)),
      (agent_get_team  ,":team", reg5),
      (eq,":team",reg0),
      (agent_get_class ,":class", reg5),
      (eq,":class",reg1),                                 
      (agent_set_scripted_destination,reg(5),1),
      (position_move_x,1,100),
      (position_move_y,1,":move_y"),
      (val_mul,":move_y",-1),
    (end_try)]),

  ("formation_wedge",
  [(team_get_leader, ":leader", reg0),
    (agent_get_position,1,":leader"),
    (assign,":collumn",1),
    (assign,":nc",3),
    (position_move_x,1,-150),
    (try_for_agents,reg(5)),
      (neq,reg5,":leader"),
      (agent_is_alive,reg(5)),
      (agent_is_human,reg(5)),
      (agent_get_team  ,":team", reg5),
      (eq,":team",reg0),
      (agent_get_class ,":class", reg5),
      (eq,":class",reg1), 
      (agent_set_scripted_destination,reg(5),1),
      (try_begin),
          (eq,":collumn",":nc"),
          (val_mul,":nc",-150),
          (position_move_x,1,":nc"),
          (position_move_y,1,-300),
          (assign,":collumn",1),
          (val_div,":nc",-150),
          (val_add,":nc",2),
      (else_try),
          (position_move_x,1,150),
          (val_add,":collumn",1),
      (end_try),
    (end_try)]),

  ("formation_end",
  [(try_for_agents,reg(5)),
      (agent_is_alive,reg(5)),
      (agent_is_human,reg(5)),
      (agent_get_team  ,":team", reg5),
      (eq,":team",reg0),
      (agent_get_class ,":class", reg5),
      (eq,":class",reg1), 
      (agent_clear_scripted_mode,reg5),
    (try_end),]),
 
Zaro 说:
After a few battles:

1. Raiders combined missile troops and infantry into one formation. This may have been because the game considered them infantry equipped with missile weapons rather than the other way around.

Isn't this realistic (ie. in many periods of time mixed missile and infantry formations were used)
 
After a few battles:

1. Raiders combined missile troops and infantry into one formation. This may have been because the game considered them infantry equipped with missile weapons rather than the other way around.

is that sea raiders you are talking about?, if so the ones with axes and the ones with bows are the same type of unit which is classed as melee, they some thing happens with nords who have bows.
 
Guys, that was sorted 6 pages ago :lol:. Realism wasn't the point as the infantry - instead of charging - would hold when the archers stopped to fire. It greatly reduces their effectiveness.
 
Thank you LCJr, I think I did what you meant. Did not work at first but I tried doing it to the mission templates as well.
Got a new message now in the build module, I'll test in game now :wink:
 
后退
顶部 底部