《模拟人生4》自制查询城镇人口mod教程
导语:import sims4.commandsimport services@sims4.commands.Command(getpopulation, command_type=sims4.commands.CommandType.Live)def getpop(_connection=None):output = sims4.commands.CheatOutput(_connection)ou import sims4.commandsimport services@sims4.commands.Command('getpopulation', command_type=sims4.commands.CommandType.Live)def getpop(_connection=None): output = sims4.commands.CheatOutput(_connection)output('Your town's population is {}'.format(len(services.sim_info_manager().get_all()))) 好了,然后把已经写好的.py文件拉到xxx.bat上,你会发现文件夹里多了一个.pyo文件,把.py和.pyo打包到一起,放入mod文件夹就可以啦~
(编辑:顺游网_987游戏网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |