全面战争:三国

全面战争:三国

评价数不足
Script Database
   
奖励
收藏
已收藏
取消收藏
标签: mod, compilation
文件大小
发表于
更新日期
135.914 KB
2021 年 11 月 24 日 上午 9:08
2021 年 11 月 29 日 下午 7:25
2 项改动说明 ( 查看 )

订阅以下载
Script Database

描述
Confused about how scripts work? Need a little help, well here is a database I setup. Basically I simplified it so you only need to input only one to four keys to do certain functions. You can take a look through RPFM for some examples.

IF you do use any of the functions here, please make this mod a requirement, unless I give you direct permission.

If you need any help please do check out the newly created modding discord:

3k Modding Discord [discord.gg]

I should be around to help with scripting issue. I can somewhat help with other things and if not one of the other members should be able to help you out.
13 条留言
Ironic  [作者] 2022 年 2 月 8 日 上午 10:39 
Ironic  [作者] 2022 年 2 月 8 日 上午 9:58 
@gregory.monahan it should be
Gman9090 2022 年 2 月 8 日 上午 9:56 
@ Ironctw2st, will the mod be easily compatible? And I assume compatible with your TUP Family Events?
Gman9090 2022 年 2 月 5 日 下午 6:03 
You rock thank you very much! I can't wait to use the mod!
Ironic  [作者] 2022 年 2 月 1 日 下午 7:36 
@gregory.monahan90 there is if you can give me a bit I will make a mod for it.
Gman9090 2022 年 2 月 1 日 下午 6:23 
Is there a command to make characters family members? Sandbox doesn't work for certain characters I.e. Liu Bei and the 3 brothers!
我有一个学妹 2021 年 12 月 19 日 上午 6:08 
--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
)
我有一个学妹 2021 年 12 月 19 日 上午 6:07 
@Ironictw2st
Okay, I have solved it now !I used "FirstTickAfterWorldCreated" add_listener,Successfully got modify_faction .
Ironic  [作者] 2021 年 12 月 18 日 上午 7:09 
@我有一个学妹 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.
我有一个学妹 2021 年 12 月 17 日 下午 11:52 
I uploaded the error log !
If you have free time, I hope you can take a look ,Thank you :steambored: