M&B warband - lord escape rate

Users who are viewing this thread

Kingoo

Recruit
Hey everyone. I noticed that the script is different ( Yes, of course ). I remember when i saw a tutorial about how to change lord escape rate, and i tried to mod it in warband, but i failed at first, after 1 hour trying to mod it, i managed to change the rate! So i'm going to post it how to do it.
First open the scripts.txt in modules/native ( Or the mod you plan to uhm... mod )

cf_check_hero_can_escape_from_player -1
28 21 1 1224979098644774912 2133 2 1224979098644774913 0 4 0 200 1 504403158265495585 1073742370 3 504403158265495585 2 1224979098644774912 546 3 504403158265495585 4 1224979098644774912 2133 2 1224979098644774913 1 5 0 30 2 1224979098644774912 360287970189640605 2147483678 2 1224979098644774912 360287970189640607 4 0 200 1 504403158265495639 2133 2 1224979098644774913 1 5 0 2133 2 1224979098644774913 -1 3 0 3 0 2133 2 1224979098644774914 0 4 0 31 2 1224979098644774913 0 2136 3 1224979098644774915 0 100 2147483678 2 1224979098644774915 70

There. Change 70 to any number you want between 0 and 100. It's the chance of the lord escaping in percent. This means that if you change it to 0, they will never escape, and if you change it to 100, they will always escape.

I hope i helped.  :smile:
( i know there are other tutorials about how to mod it, but i havent found any with M&B warband script, then i posted it )
 
Thanks!

I really want to make a game where the NPC follow the same rules we do and this helps.
 
isn't this already covered in 82 tweaks thread ?? You are not the first that found this out. Previous games was already the same. Since the engine is the same nothing changed on this part.  :roll: Thank magelord first. :mrgreen:
 
Sigh... It's in module_constants, which gets replaced by its value (70) during compile.
hero_escape_after_defeat_chance = 70

For player, it's script_cf_check_hero_can_escape_from_player (this is after capture), and in game_event_simulate_battle for other cases, after (try_for_range, ":troop_iterator", 0, ":num_stacks"),
 
Back
Top Bottom