Replies: 2 (Who?), Viewed: 2012 times.
#1
24th Jun 2015 at 11:29 PM
Advertisement
#2
25th Jun 2015 at 5:20 AM
#3
25th Jun 2015 at 2:29 PM
Last edited by simalary44 : 25th Jun 2015 at 3:34 PM.
|
Posts: 195
Thanks: 1221 in 8 Posts
@sims4.commands.Command('sim.aboutsim', 'sim.about', command_type=sims4.commands.CommandType.Live) def simalary_AboutSim(first_name='', last_name='', _connection=None): output = sims4.commands.CheatOutput(_connection) if first_name == '' and last_name == '': tgt_client = services.client_manager().get(_connection) info = tgt_client.active_sim.sim_info if info is None: output('No Sim is selected.') return False else: info = services.sim_info_manager().get_sim_info_by_name(first_name, last_name) if info is None: output('No Sim with the provided name has been found.') return False output('SIM INFO: First name: {}. Last name: {}. Age: {}.'.format(sim_info.first_name, sim_info.last_name, sim_info.age)) return True
Posts: 2,671
Thanks: 62729 in 190 Posts
Posts: 195
Thanks: 1221 in 8 Posts
Hey, simple oversight - you got the sim_info object into a variable called "info", but you're trying to output the results of sim_info.xxxxxx. Either change info -> sim_info or vice versa in the script. |
|
This site is not endorsed by or affiliated with Electronic Arts, or its licensors. Trademarks are the property of their respective owners. Game content and materials copyright Electronic Arts Inc. and its licensors. All Rights Reserved.
Site version: v3.5.0. ModTheSims, ModTheSims2 and MTS2 © 2004-2023.