Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

98 betyg
Recruit exile Clans
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Game Mode: Singleplayer
Compatible Version: v1.2.11
Filstorlek
Lades upp
Uppdaterades
7.308 KB
26 maj, 2024 @ 19:23
25 aug, 2024 @ 2:30
2 ändringsnotiser ( visa )

Abonnera för att ladda ner
Recruit exile Clans

Beskrivning
Recruit exiled clans after their country are destroyed
recruit their clans by having dialogue with their clan leader
2024/8/25 update :exclude mercenary& rebel clans

High compatibility,can run on 1.1.5-1.2.X. can be install/uninstall in the playthrough

comment bugs below.

give a like if you think this is helpful

————————Key Code below————————————
private void JoinChat(CampaignGameStarter starter)
{
starter.AddPlayerLine("Dialog_Join1", "hero_main_options", "Dialog_Join1", "{=Dialog_Join1}Join my Kingdom,It's the only way for your clan to survive.", new ConversationSentence.OnConditionDelegate(this.checkcondition2), null, 100, null, null);
starter.AddDialogLine("Dialog_Join2", "Dialog_Join1", "close_window", "{=Dialog_Join2}OK.", null, new ConversationSentence.OnConsequenceDelegate(this.joinkingdom1), 100, null);
}
private bool checkcondition2()
{
Clan clan3 = Hero.OneToOneConversationHero.Clan;
if (clan3 == null)
{
return false;
}
else
{
bool flag1 = clan3.Kingdom == null;
Clan clan2 = Hero.MainHero.Clan;
bool flag2 = clan2.Kingdom != null;
bool flag3 = Hero.OneToOneConversationHero.IsClanLeader == true;
bool flag4 = clan3.IsRebelClan || clan3.IsClanTypeMercenary == true;// 2024/8/25 added this line
if (flag1 && flag2 && flag3 && !flag4)
{
return true;
}
else return false;
}
}
private void joinkingdom1()
{
Clan clan2 = Hero.MainHero;.Clan;
Kingdom kingdom2;
kingdom2 = ((clan2 != null) ? clan2.Kingdom : null);
Kingdom playerKingdom = kingdom2;
Clan clan = Hero.OneToOneConversationHero.Clan;
ChangeKingdomAction.ApplyByJoinToKingdom(clan, playerKingdom, true);
ChangeRelationAction.ApplyPlayerRelation(Hero.OneToOneConversationHero,30,true,true);
}
}
36 kommentarer
HelloKitty  [skapare] 15 jan @ 21:57 
不需要
桃花仙 15 jan @ 16:48 
需要四前置吗?
649938852 15 jan @ 4:45 
很好
HelloKitty  [skapare] 14 jan @ 16:16 
yes,still work
griZlymoon 14 jan @ 11:32 
does this still work in the version 1.2.12?
Argon 31 dec, 2024 @ 9:41 
All right, thanks :)
HelloKitty  [skapare] 31 dec, 2024 @ 6:22 
@Argon
case1: The player does not own any kingdom, has not joined any kingdom, and is not a mercenary for any kingdom; in this case, this mod will Not function At all because none of the conditions are met.
case2:The player does not own any kingdom and has not joined any kingdom, BUT is a mercenary for a certain kingdom; in this case, the target clan will join the kingdom the player is currently serving.
Argon 31 dec, 2024 @ 3:14 
Great mod, this is a way to counteract the stupid clan destruction function in patch 1.2.

How does the mod work if you don't have a kingdom yourself yet? Do the clan members then join your own clan?
kotohomka 3 dec, 2024 @ 12:05 
Крупнейший СНГ-клан STURGIA приглашает в наши ряды желающих поиграть вместе с друзьями в M&B. Здесь каждый Лорд - живой игрок, которого ждут битвы с боссами, прохождение квестов и данжей, крестьянская работа, торговля и крафт, масштабные PvP битвы, засады и рейды, а также многое другое.
Наш Discord: {LÄNK BORTTAGEN}
Наш Telegram: {LÄNK BORTTAGEN} (Для тех, у кого проблемы с дискордом)
HelloKitty  [skapare] 20 nov, 2024 @ 1:47 
yes,still work