|
Post by morgana1 on Jul 30, 2020 16:35:14 GMT -5
I'm making a mod to detect richs sims. I'm trying to find the value of a sim house. I have found this:
services.active_sim_info().get_home_lot().furnished_lot_value
This command return the furnished lot value of a active sim home, but this only work when the sim stay at home. If the sim is out of home this command crash because zone id XXXXXX is not instantiated.
Is it possible to get the furnished lot value of an not instantiated zone?
|
|
|
Post by sigma1202 on Jul 30, 2020 21:11:33 GMT -5
I'm making a mod to detect richs sims. I'm trying to find the value of a sim house. I have found this: services.active_sim_info().get_home_lot().furnished_lot_value
This command return the furnished lot value of a active sim home, but this only work when the sim stay at home. If the sim is out of home this command crash because zone id XXXXXX is not instantiated. Is it possible to get the furnished lot value of an not instantiated zone? you should try using this import sims4.commands import services
@sims4.commands.Command('test', command_type=sims4.commands.CommandType.Live) def testingmymod(_connection=None): household_manager = services.household_manager() households = household_manager.get_all() if households is not None: for household in households: value = household.household_net_worth(billable=False) sims4.commands.output('Simoleon value of household {} is {}.'.format(household, value), _connection)
This will get all the households and tell you their net worth
|
|
|
Post by morgana1 on Jul 31, 2020 5:15:36 GMT -5
The solution has worked. The value of household_net_worth was the value I needed.
Thank you for all.
|
|