Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Lab Assistant
Original Poster
#1 Old 20th Nov 2019 at 4:09 AM
Default Extremely simple question
Why doesn't this work?

Code:
@sims4.commands.Command('degphy', command_type=sims4.commands.CommandType.Live)
def degphy(_connection=None):
	output = sims4.commands.CheatOutput(_connection)
	command = '|Traits.Equip_Trait trait_University_PhysicsDegreeBSHonors'
	sims4.commands.client_cheat(command, _connection)
	output("Command is {}".format(command))


The function outputs "Command is |Traits.Equip_Trait trait_University_PhysicsDegreeBSHonors"
But it does not execute.
If I copy/paste the command into the console, it works fine.

However functions like:
Code:
@sims4.commands.Command('vampghost', command_type=sims4.commands.CommandType.Live)
def vampghost(_connection=None):
	                command = '|traits.equip_trait Vampire_Sun'
	                sims4.commands.client_cheat(command, _connection)

...work fine.
Advertisement
Lab Assistant
Original Poster
#2 Old 20th Nov 2019 at 4:23 AM
Quote: Originally posted by gettp
Why doesn't this work?
...


Never mind. Figured it out. Weird quirk with Sims 4. Apparently if I type in "Traits.Equip_Trait" in the console it works, but if the script attempts it, it doesn't.

It needs to be "traits.equip_trait", script is case sensitive, command console isn't. How messed up is that?
Back to top