Total War: THREE KINGDOMS

Total War: THREE KINGDOMS

Script Database
13 Comments
Ironic  [author] 8 Feb, 2022 @ 10:39am 
Ironic  [author] 8 Feb, 2022 @ 9:58am 
@gregory.monahan it should be
Gman9090 8 Feb, 2022 @ 9:56am 
@ Ironctw2st, will the mod be easily compatible? And I assume compatible with your TUP Family Events?
Gman9090 5 Feb, 2022 @ 6:03pm 
You rock thank you very much! I can't wait to use the mod!
Ironic  [author] 1 Feb, 2022 @ 7:36pm 
@gregory.monahan90 there is if you can give me a bit I will make a mod for it.
Gman9090 1 Feb, 2022 @ 6:23pm 
Is there a command to make characters family members? Sandbox doesn't work for certain characters I.e. Liu Bei and the 3 brothers!
我有一个学妹 19 Dec, 2021 @ 6:08am 
--my modify_faction
player_own_modify_faction = nil;


core:add_listener(
"playerStore_api_byHy_listener",
"FirstTickAfterWorldCreated",
function(context)
return true
end,

function(context)
local player_query_faction = cm:query_local_faction();
if(player_query_faction) then
local m_faction = cm:modify_faction(player_query_faction)
player_own_modify_faction = m_faction
end
end,
true
)
我有一个学妹 19 Dec, 2021 @ 6:07am 
@Ironictw2st
Okay, I have solved it now !I used "FirstTickAfterWorldCreated" add_listener,Successfully got modify_faction .
Ironic  [author] 18 Dec, 2021 @ 7:09am 
@我有一个学妹 So, I saw your script in MTU, but I think you need to grab the context of the faction first, so instead grabbing it everytime.

local faction_key = context:faction();

and using this as your modify key.

local modify_faction = cm:modify_faction( faction_key )

hope this helps. If you need more in depth help, do join the discord.
我有一个学妹 17 Dec, 2021 @ 11:52pm 
I uploaded the error log !
If you have free time, I hope you can take a look ,Thank you :steambored:
我有一个学妹 17 Dec, 2021 @ 11:51pm 
Error message :
---------------------------------------------------------------------
ERROR: can_modify() failed - no model interface is present. Last event triggered is ComponentLClickUp
stack traceback:
[string "script\_lib\lib_mod_loader.lua"]:73: in function 'script_error'
[string "script\_lib\lib_campaign_manager.lua"]:1398: in function 'can_modify'
[string "script\_lib\lib_campaign_manager.lua"]:1412: in function 'modify_model'
[string "script\campaign\mod\playerstore_byhy.lua"]:255: in function 'callback'
[string "script\_lib\lib_mod_loader.lua"]:245: in function <[string "script\_lib\lib_mod_loader.lua"]:245>
[C]: in function 'xpcall'
[string "script\_lib\lib_mod_loader.lua"]:245: in function 'event_callback'
[string "script\_lib\lib_core.lua"]:1138: in function <[string "script\_lib\lib_core.lua"]:1138>
**************
---------------------------------------------------------------------
我有一个学妹 17 Dec, 2021 @ 11:51pm 
hello,author ,I want to ask a question !!!
I created a button in the main interface, When I click the button, I want to modify the money, but an error is prompted !

"cm:modify_model()" : This command cannot be used !!!

Thank you very much !!!
Beans 25 Nov, 2021 @ 3:30pm 
Nice! Really looking forward to getting more into scripting