Can add a chance of not being taken prisoner after losing a battle?

Users who are viewing this thread

Hello, TW

I want to create a mode where escape is possible after lose battle
I think the problem is that if a lord loses a battle, it is unconditionally taken prisoner.

In Warband,
Even if lord lose a battle , there is a chance lord will barely escape without being taken prisoner.

So I want to make this into a mod but it's not easy

My code Functionally it works well.
However, a message will be left in the encyclopedia and log window indicating who was captured by whom.
Is there a way to completely remove the message and record that was captured by whom?

It is my code.

CampaignEvents.HeroPrisonerTaken.AddNonSerializedListener((object)this, (Action<PartyBase, Hero>)((captorParty, prisoner) =>
{
if (MBRandom.RandomInt(0, 100) >= 50)
{
EndCaptivityAction.ApplyByEscape(prisoner);
}
}));

R1280x0
 
Last edited:
Back
Top Bottom