Forum Discussion

MajWrenching's avatar
10 years ago

My script has an ouchie

The purpose of this script was to enumerate the physique values and output them to the cheat screen but it's not doing anything. Oh, and I feed it the simID returned from sims.get_sim_id_by_name, so the command looks like "getphysiques 123456789012345678"



import services
import sims4.commands
import sims.sim_info

@sims4.commands.Command('getphysiques', command_type=sims4.commands.CommandType.Live)
def getphysiques(self, _connection=None):
physique =
heavy = float(physique)
lean = float(physique)
fit = float(physique)
bony = float(physique)
output = sims4.commands.CheatOutput(_connection)
output('This Sims\' physiques are: Heavy:{} Lean:{} Fit:{} Bony:{}'.format(heavy, lean, fit, bony))

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.4,703 PostsLatest Activity: 60 minutes ago