Forum Discussion
11 years ago
No the enable/disable thing worked fine -- I found what my problem was; I just didn't tell it what the output would be. I mean where to output it TO.
This works now:
\o/
(You are already doing the boolean conversion for me =) )
ETA: oh but is there a way to give it multiple aliases for the same command? Like, can I pass it a list instead of the string somehow?
This works now:
@sims4.commands.Command('h', command_type=sims4.commands.CommandType.Live)
def headline(enable:bool=None, _connection=None):
output = sims4.commands.CheatOutput(_connection)
if enable is not None:
if enable:
command = 'headlineeffects on'
sims4.commands.client_cheat(command, _connection)
else:
command = 'headlineeffects off'
sims4.commands.client_cheat(command, _connection)
else:
output("You need to turn this on or off with 't', 'true', 'on', '1', 'yes', 'y', 'enable' or 'f', 'false', 'off', '0', 'no', 'n', 'disable'")
\o/
(You are already doing the boolean conversion for me =) )
ETA: oh but is there a way to give it multiple aliases for the same command? Like, can I pass it a list instead of the string somehow?
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.15,596 PostsLatest Activity: 7 days ago
Community Highlights
Recent Discussions
- 7 hours ago
- 8 hours ago
- 9 hours ago