Fat Cat
Recruit

Hello all,
I am trying to integrate Native's Battle Mode screen (the part where you select your Player's Armours, Items and Troops wanted to command) into Napoleonic Wars, either into Battle or Commander Battle Mode (I am currently using edited / custom Native Battle mission template imported into Napo Wars, it works but nothing much changed from regular Napo Battle Mode).
When I use this custom mission template in Native Battle, Clients and I can select up to 35 different bot troop types per faction/team rather than Native's 3 Default Groups.
I have followed this link https://forums.taleworlds.com/index.php?threads/nw-creating-a-new-unit-section.317945/ for adding new Troop Type Button, it works no problems, I have copy-pasted and edited code (Presentations and Scripts, etc) from Native into Napoleonic Wars, combined it with goKiller's codes so when you click new added Button it brings up Native's Item and Troop Selection screen -
Copied multiplayer_item_select from Native Presentations into Napoleonic Wars, renamed it to multiplayer_ai_select (commented out else_try block
containing npc_kingdoms_begin), called by the new Button.
1. Original Napoleonic Wars Troop Selection (plus Rank and Select Equipment) still fully works with no conflicts - no problems
2. Click new button, Native's Items and Troops Selection screen displayed - no problems
3. item, clothes and horse Names are shown, and mouse hover displays the Item's stats information - no problems
4. Mouse Right Click clears inventory / item slot - no problems
5. Done and Reset Buttons work - no problems
6. Select Bots Types' Troop checkbox / tick box (to spawn and control) - have problems;
- can tick / check wanted bots like in Native Battle - no problems, however...
- all bot types spawn as usual, not the ones Tick Selected by player (only ticked bot types should spawn like Native),
- and no control over them is given.
Does anyone know how to make the link between ticking selected troops wanted and them spawning work?
Thank you for your time reading this, any help, advice or answers appreciated.
I am trying to integrate Native's Battle Mode screen (the part where you select your Player's Armours, Items and Troops wanted to command) into Napoleonic Wars, either into Battle or Commander Battle Mode (I am currently using edited / custom Native Battle mission template imported into Napo Wars, it works but nothing much changed from regular Napo Battle Mode).
When I use this custom mission template in Native Battle, Clients and I can select up to 35 different bot troop types per faction/team rather than Native's 3 Default Groups.
I have followed this link https://forums.taleworlds.com/index.php?threads/nw-creating-a-new-unit-section.317945/ for adding new Troop Type Button, it works no problems, I have copy-pasted and edited code (Presentations and Scripts, etc) from Native into Napoleonic Wars, combined it with goKiller's codes so when you click new added Button it brings up Native's Item and Troop Selection screen -
Copied multiplayer_item_select from Native Presentations into Napoleonic Wars, renamed it to multiplayer_ai_select (commented out else_try block
containing npc_kingdoms_begin), called by the new Button.
1. Original Napoleonic Wars Troop Selection (plus Rank and Select Equipment) still fully works with no conflicts - no problems
2. Click new button, Native's Items and Troops Selection screen displayed - no problems
3. item, clothes and horse Names are shown, and mouse hover displays the Item's stats information - no problems
4. Mouse Right Click clears inventory / item slot - no problems
5. Done and Reset Buttons work - no problems
6. Select Bots Types' Troop checkbox / tick box (to spawn and control) - have problems;
- can tick / check wanted bots like in Native Battle - no problems, however...
- all bot types spawn as usual, not the ones Tick Selected by player (only ticked bot types should spawn like Native),
- and no control over them is given.
script_multiplayer_calculate_cur_selected_items_cost
script_multiplayer_display_available_items_for_troop_and_item_classes
cf_multiplayer_is_item_default_for_troop
multiplayer_set_default_item_selections_for_troop
multiplayer_get_item_value_for_troop -------- (commented out else_try block containing npc_kingdoms_begin)
multiplayer_update_cost_labels
multiplayer_get_item_value_for_troop
str_total_item_cost_reg0 given a Name (Total cost) in Strings
script_multiplayer_display_available_items_for_troop_and_item_classes
cf_multiplayer_is_item_default_for_troop
multiplayer_set_default_item_selections_for_troop
multiplayer_get_item_value_for_troop -------- (commented out else_try block containing npc_kingdoms_begin)
multiplayer_update_cost_labels
multiplayer_get_item_value_for_troop
str_total_item_cost_reg0 given a Name (Total cost) in Strings
Does anyone know how to make the link between ticking selected troops wanted and them spawning work?
Thank you for your time reading this, any help, advice or answers appreciated.