Mount & Blade II: Bannerlord

Mount & Blade II: Bannerlord

Ocen: 94
Recruit exile Clans
   
Przyznaj nagrodę
Ulubione
Ulubione
Usuń z ulubionych
Game Mode: Singleplayer
Compatible Version: v1.2.11
Rozmiar pliku
Zamieszczono
Zaktualizowano
7.308 KB
26 maja 2024 o 19:23
25 sierpnia 2024 o 2:30
Listy zmian: 2 ( zobacz )

Zasubskrybuj, aby pobrać
Recruit exile Clans

Opis
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);
}
}
Komentarzy: 36
HelloKitty  [autor] 15 stycznia o 21:57 
不需要
桃花仙 15 stycznia o 16:48 
需要四前置吗?
649938852 15 stycznia o 4:45 
很好
HelloKitty  [autor] 14 stycznia o 16:16 
yes,still work
griZlymoon 14 stycznia o 11:32 
does this still work in the version 1.2.12?
Argon 31 grudnia 2024 o 9:41 
All right, thanks :)
HelloKitty  [autor] 31 grudnia 2024 o 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 grudnia 2024 o 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 grudnia 2024 o 12:05 
Крупнейший СНГ-клан STURGIA приглашает в наши ряды желающих поиграть вместе с друзьями в M&B. Здесь каждый Лорд - живой игрок, которого ждут битвы с боссами, прохождение квестов и данжей, крестьянская работа, торговля и крафт, масштабные PvP битвы, засады и рейды, а также многое другое.
Наш Discord: {LINK USUNIĘTY}
Наш Telegram: {LINK USUNIĘTY} (Для тех, у кого проблемы с дискордом)
HelloKitty  [autor] 20 listopada 2024 o 1:47 
yes,still work