Author Topic: Mod to fix defeat in battle?  (Read 201 times)

0 Members and 1 Guest are viewing this topic.

blitzking

  • Recruit
  • *
  • Beards=Power
    • View Profile
  • Faction: Nord
Mod to fix defeat in battle?
« on: March 22, 2010, 05:37:08 AM »
In my opinion, one of the biggest flaws of Mount & Blade is that, whenever you are knocked unconscous in battle, the battle aotomatically ends, no matter whether you are winning or losing. Is there a mod(s) to fix this? And if there isn't, can someone make one? (I can't, I have no modding or even progamming experience onesoever  :? )
"Life's too short to not listen to Slayer and drink beer."

Take the Magic: The Gathering 'What Color Are You?' Quiz.


Lumos

  • Sergeant Knight
  • *
  • Support TBS today!
    • View Profile
  • Faction: Nord
  • WB
Re: Mod to fix defeat in battle?
« Reply #2 on: March 22, 2010, 06:51:18 AM »
What does "init the retreat penalty" mean? Which triggers should I replace?
« Last Edit: March 22, 2010, 07:08:16 AM by Lumos »


dunde

  • Sergeant Knight at Arms
  • *
  • Curious Coder of The Vision
    • View Profile
  • Faction: Swadian
Re: Mod to fix defeat in battle?
« Reply #3 on: March 22, 2010, 07:08:54 AM »
What does "init the retreat penalty" mean?

When we retreat, mission template call  "script_simulate_retreat" script, like :
  (call_script, "script_simulate_retreat", 10, 20),

The params used are vary among the mission template. That's why we need to set
           (assign, "$retreat_player_side", 10),   # Retreat Penalty Initialization
           (assign, "$retreat_enemy_side", 20),   
for every mission, so retreat penalty applied will be the same as initial penalty set by native.

PS. set (assign, "$retreat_type", 2), for missions that check mission timer, and (assign, "$retreat_type", 1), if they don't.

Lumos

  • Sergeant Knight
  • *
  • Support TBS today!
    • View Profile
  • Faction: Nord
  • WB
Re: Mod to fix defeat in battle?
« Reply #4 on: March 22, 2010, 07:26:54 AM »
Right, thanks a lot.