buff = get_tunable_instance(sims4.resources.Types.BUFF, "12783", exact_match=True)
sim = services.get_active_sim()
sim.add_buff_from_op(buff,"hello")
コード解説
bhuff = get_tunable_instanceで、buffのinstanceを手に入れます
services.get_active_sim()で選択中のシムをゲット
そのあと、add_buff_from_opで、さっきのバフ、そして、reasonをかけばOK