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);
}
}));
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);
}
}));
Last edited: