Total War: MEDIEVAL II - Definitive Edition

Total War: MEDIEVAL II - Definitive Edition

YooNeek Mar 21, 2018 @ 9:36pm
Set Faction Heir?
Can you still not set your faction heir in this game or did they actually end up fixing it for the Steam version or something?
Last edited by YooNeek; Mar 21, 2018 @ 9:36pm
< >
Showing 1-13 of 13 comments
you still cant at least in the vanilla version.... wich sucks
One of those things that perpetually bugs me about vanilla to this day >.<
Inardesco Mar 22, 2018 @ 5:27am 
The faction heir is the oldest in line.

Some mods have ancillaries that allow you to pick faction heir by swapping them over.
Should be like in Rome 1 tho....much simplier
It should. There's even a trait built into the game called "Former Successor" for people getting butthurt about no longer being heir. But, alas, that never crept into the final release...
YooNeek Mar 22, 2018 @ 2:25pm 
Yeah, they have that in Rome: Total War.
Fritz Bittenfeld Mar 22, 2018 @ 6:09pm 
It always seems random for me. Sometimes its the currnt rulers son or brother, other times its the 60 year old who is dead next turn.
Gigantus Mar 23, 2018 @ 2:13am 
There is a script that allows you to select the next heir, a number of mods use it: http://www.twcenter.net/forums/showthread.php?604522
jadaniel.negrete Dec 9, 2020 @ 10:39am 
Hey Gigantus! I downloaded that script, but when I run my game nothing happens. Is there something I am doing wrong? I want to use it on the Total Vanilla Mod.
Gigantus Dec 10, 2020 @ 1:20am 
Miguel_80 is already taking care of your question in that thread - he is the author of that script
𝔗𝔢𝔞 ❀ Dec 11, 2020 @ 5:56pm 
Just kill the line you don't want it to go down via an accident at sea.
Anthony Apr 19 @ 3:14am 
Hello everyone,

It seems that with the M2TWEOP program it would be possible to create a LUA script like in the Denmod mod in order to change the faction heir. Does anyone have any ideas about the basics of the script to be inserted?

function onCharacterSelected(selectedChar)
if gDataCamp.currentFaction.isPlayerControlled==1 then
--- Heir selection ---
isExist, new_heir_true=stratmap.game. getScriptCounter("new_heir_true");
if (new_heir_true==1) then
selectedChar:setAsHeir(false);
selectedChar:setAsHeir(true);
set_event_counter("new_heir_true",0);
log_always("The new heir - " .. selectedChar.fullName);
end
end
Last edited by Anthony; Apr 19 @ 3:48am
You are surely missing parts of the script, I tried to get it running in the Roar of Conquest mod a while ago and remember that there was more to the script than just this part.

Other problem is that the script is written for M2TWEOP 2.2 and the code of the tool has changed quite a bit in the newer 3.3 ( released ) or 4.0 ( beta ) versions and rewriting the script is not the easiest of task, unless you can script in lua anyways. The new versions are surely better than 2.2 and have more features so the transfer would be worth it.

For scripting advice it´s also best to go to the M2TWEOP discord, the original author of the script, Dinar Mayor is active there from time to time and the chances to find someone who can help you with this task here on steam are rather low.

https://discord.gg/Y9Krw7Zjmu
Last edited by Mekkermann; Apr 19 @ 4:05am
< >
Showing 1-13 of 13 comments
Per page: 1530 50