Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Some mods have ancillaries that allow you to pick faction heir by swapping them over.
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
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