The Quick Battle button leads to the presentation "game_custom_battle_designer". It calls a number of scripts, but that's where you start.xPearse said:How would I go about setting up my own quick battles, I really don't know where to start.
MadVader said:First, you'll need to say that you are trying to run a 1.011 mod on Warband (using Swyter's hacks). Better ask that in the Swyter hax0r thread.
Second, you are deleting the whole script (bad stuff), while you should be deleting only the offending operation. Figure out how to do this.
["ready_thrust_onehanded", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_use_inertia|amf_keep|amf_client_owner_prediction|amf_rider_rot_thrust,
## [ready_durn, "anim_human", combat+8500, combat+8510, blend_in_ready],
[ready_durn, "1h_low_thrust_30.9.10", 0, 5, blend_in_ready],
],
["release_thrust_onehanded", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_continue_to_next,
## [0.61, "anim_human", combat+8510, combat+8540, blend_in_release],
[0.62, "1h_low_thrust_30.9.10", 5, 34, blend_in_release],
],
["release_thrust_onehanded_continue", 0, amf_priority_continue|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_client_owner_prediction,
[0.35, "1h_low_thrust_30.9.10", 34, 39, blend_in_continue],
],
["blocked_thrust_onehanded", acf_enforce_rightside, amf_priority_blocked|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_blocked_duration_thrust, "parry_single_lefttoright", 0, 75, blend_in_parry],
],
["parried_thrust_onehanded", acf_enforce_rightside, amf_priority_parried|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_parried_duration_thrust, "parry_single_lefttoright", 0, 75, blend_in_parry],
["ready_thrust_onehanded_lance", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_use_inertia|amf_keep|amf_client_owner_prediction|amf_rider_rot_thrust,
## [ready_durn, "anim_human", combat+8500, combat+8510, blend_in_ready],
[ready_durn, "1h_low_thrust_30.9.10", 0, 5, blend_in_ready],
],
["release_thrust_onehanded_lance", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_continue_to_next,
## [0.61, "anim_human", combat+8510, combat+8540, blend_in_release],
[0.62, "1h_low_thrust_30.9.10", 5, 34, blend_in_release],
],
["release_thrust_onehanded_lance_continue", 0, amf_priority_continue|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_client_owner_prediction,
[0.35, "1h_low_thrust_30.9.10", 34, 39, blend_in_continue],
],
["blocked_thrust_onehanded_lance", acf_enforce_rightside, amf_priority_blocked|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_blocked_duration_thrust, "anim_human", combat+9515, combat+9513, blend_in_parry],
],
["parried_thrust_onehanded_lance", acf_enforce_rightside, amf_priority_parried|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_parried_duration_thrust, "anim_human", combat+9515, combat+9513, blend_in_parry],
["ready_overswing_musket", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_use_inertia|amf_keep|amf_client_owner_prediction|amf_rider_rot_thrust,
## [ready_durn, "anim_human", combat+8500, combat+8510, blend_in_ready],
[ready_durn, "attacks_thrust_onehanded", 5, 13, blend_in_ready],
],
["release_overswing_musket", acf_thrust|acf_rot_vertical_sword|acf_anim_length(100)|acf_enforce_rightside, amf_priority_attack|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_continue_to_next,
## [0.61, "anim_human", combat+8510, combat+8540, blend_in_release],
[0.62, "attacks_thrust_onehanded", 12, 32, blend_in_release],
],
["release_overswing_musket_continue", 0, amf_priority_continue|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust|amf_client_owner_prediction,
[0.3, "attacks_thrust_onehanded", 32, 54, blend_in_continue],
],
["blocked_thrust_overswing_musket", acf_enforce_rightside, amf_priority_blocked|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_blocked_duration_thrust, "anim_human", combat+8515, combat+8513, blend_in_parry],
],
["parried_thrust_overswing_musket", acf_enforce_rightside, amf_priority_parried|amf_use_weapon_speed|amf_play|amf_rider_rot_thrust,
[attack_parried_duration_thrust, "anim_human", combat+8515, combat+8513, blend_in_parry],
That's a script, an operation is a sequence of numbers within it.NewMan99 said:MadVader said:First, you'll need to say that you are trying to run a 1.011 mod on Warband (using Swyter's hacks). Better ask that in the Swyter hax0r thread.
Second, you are deleting the whole script (bad stuff), while you should be deleting only the offending operation. Figure out how to do this.
So I assumed that this
is the offending operation, but my problem is figuring out how to silence this error. Mostly out of curiosity.tick_town_walkers -1
22 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 33 3 1224979098644774913 360287970189639799 360287970189639805 525 3 1224979098644774914 1224979098644774912 0 1780 2 1 1224979098644774914 4 0 2147483678 2 1224979098644774914 32 701 1 2 730 2 2 250 715 3 1 1 2 3 0 1710 2 2 1224979098644774912 710 3 1224979098644774915 1 2 2147483678 2 1224979098644774915 400 2133 2 1224979098644774916 0 4 0 2147483678 2 1224979098644774914 32 2136 3 1224979098644774916 0 100 3 0 2147483678 2 1224979098644774916 20 1 2 936748722493063399 1224979098644774912 3 0
So are you saying that within these numbers under this script somewhere is the problem itself? I guess it is unlikely to fix this without a module_scripts_py file then right?
There is code called "Valkyrie" for the original M&B that does that. Should be in the Resources section.MaverickJones said:1 - How can I make it so that if you are slain in a battle you may choose to play on as a another member of your army (like in battlefield 2 or some warband multiplayer modes)
You need a trigger or simple trigger that fires every week (or every day, or maybe just every month). In that trigger, get the current date and check if the number of days is >=200. Then do your stuffMaverickJones said:2 - How can I spawn parties after say 200 in game days? I've added some extra kingdoms and want them to invade specific areas after that time, I've also written dialogues and extra rumours about foreign kingdoms setting their eyes on the turmoil of Calradia etc.
See script_game_start. That's where the scripts to randomize war/peace are. You can just call the appropriate start war scripts directly and avoid the randomization script.MaverickJones said:3 - How can I force the diplomacy of the factions rather than randomise them? Looking at the faction file I assume that all faction relations on startup are random, I'd like to change that so that they fight their natural enemy (Sarranids vs khergits, Veagirs vs Nords, Swadia vs Rhodoks)
'twas just an old-form Repository link. Updated.MaverickJones said:Searched for Valkryie but the repository link is dead and there is no 'in-thread' code to look at :/
MadVader said:That's a script, an operation is a sequence of numbers within it.NewMan99 said:MadVader said:First, you'll need to say that you are trying to run a 1.011 mod on Warband (using Swyter's hacks). Better ask that in the Swyter hax0r thread.
Second, you are deleting the whole script (bad stuff), while you should be deleting only the offending operation. Figure out how to do this.
So I assumed that this
is the offending operation, but my problem is figuring out how to silence this error. Mostly out of curiosity.tick_town_walkers -1
22 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 33 3 1224979098644774913 360287970189639799 360287970189639805 525 3 1224979098644774914 1224979098644774912 0 1780 2 1 1224979098644774914 4 0 2147483678 2 1224979098644774914 32 701 1 2 730 2 2 250 715 3 1 1 2 3 0 1710 2 2 1224979098644774912 710 3 1224979098644774915 1 2 2147483678 2 1224979098644774915 400 2133 2 1224979098644774916 0 4 0 2147483678 2 1224979098644774914 32 2136 3 1224979098644774916 0 100 3 0 2147483678 2 1224979098644774916 20 1 2 936748722493063399 1224979098644774912 3 0
So are you saying that within these numbers under this script somewhere is the problem itself? I guess it is unlikely to fix this without a module_scripts_py file then right?
Here, delete the red numbers (the operation causing trouble), and change the green number (the number of operations in the script), see how that works.
tick_town_walkers -1
21 12 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 33 3 1224979098644774913 360287970189639799 360287970189639805 525 3 1224979098644774914 1224979098644774912 0 1780 2 1 1224979098644774914 4 0 2147483678 2 1224979098644774914 32 701 1 2 730 2 2 250 715 3 1 1 2 3 0 1710 2 2 1224979098644774912 710 3 1224979098644774915 1 2 2147483678 2 1224979098644774915 400 2133 2 1224979098644774916 0 4 0 2147483678 2 1224979098644774914 32 2136 3 1224979098644774916 0 100 3 0 2147483678 2 1224979098644774916 20 1 2 936748722493063399 1224979098644774912 3 0
MaverickJones said:Another couple of questions:
1 - How would I go about including Lord/Soldier Execution?
My character is, well all flattery aside, an evil git. I'd very much like to be able to put the lords I capture to death,
as well as the soldiers I capture, rather than releasing them because my maximum prisoner cap wont allow them to
become my slaves!
2 - How can I allow characters to 'choose to attack' when two neutral or both friendly armies are fighting one another?
Again this is mainly because I'm evil, but also because I take it at the angle that if you saw to armies fighting and you wanted to help say, the Veagirs, but you were yet unknown to them you'd think 'What a brilliant chance to show them my worth!' not oh well I have 0 relation to them I'll just let the nords kill them..
module_game_menus.py said:[
("pre_join_help_attackers",[
(store_faction_of_party, ":attacker_faction", "$g_encountered_party_2"),
(store_relation, ":attacker_relation", ":attacker_faction", "fac_player_supporters_faction"),
(store_faction_of_party, ":defender_faction", "$g_encountered_party"),
(store_relation, ":defender_relation", ":defender_faction", "fac_player_supporters_faction"),
(ge, ":attacker_relation", 0),
(lt, ":defender_relation", 0),
],
"Move in to help the {s2}.",[
(select_enemy,0),
(assign,"$g_enemy_party","$g_encountered_party"),
(assign,"$g_ally_party","$g_encountered_party_2"),
(jump_to_menu,"mnu_join_battle")]),