|
Post by marquillotuca89 on Aug 5, 2020 15:38:43 GMT -5
Hi creators!
I've been working on a lot of tunning mods to add ecofootprints to objects that didn't have one, however, in my testing I always face the problem of not knowning how the ecofootprint of the lot is exactly, being affected by these objects.
For example: I added an ecofootprint to the Fabricator, I use exagerated values to see if the object is affecting the commodity, I see the ecofootprint of the lot changes so I know I did it right. Then, when I try to fine tune my mod, I don't know what exact value should I be using because I'm not able to check how the Ecofootprint of the lot changed with a specific value.
Since I don't think any modder will be creating a cheat to check the current value of that commodity, I decided to do it by myself, however, I'm a script mod noob. I've read tutorials and I could succesfully create some mods to show, for example, commodities from the Sim, however, this commodity belongs to the lot, so basically I don't know what to do.
If somebody could help me, it would be really appreciated.
|
|
|
Post by sigma1202 on Aug 6, 2020 1:38:16 GMT -5
this will show all the commodities of a lot, the lot doesn't have a lot of them so you should find it easily, its should be near the top, the value goes from -500 to 500
import sims4.commands import services
@sims4.commands.Command('test', command_type=sims4.commands.CommandType.Live) def testingmymod(_connection=None): lot = services.active_lot() if lot is not None and lot and lot.statistic_tracker is not None: lot.commodity_tracker.debug_output_all(_connection) lot.statistic_tracker.debug_output_all(_connection)
|
|
|
Post by marquillotuca89 on Aug 6, 2020 12:48:20 GMT -5
this will show all the commodities of a lot, the lot doesn't have a lot of them so you should find it easily, its should be near the top, the value goes from -500 to 500 import sims4.commands import services
@sims4.commands.Command('test', command_type=sims4.commands.CommandType.Live) def testingmymod(_connection=None): lot = services.active_lot() if lot is not None and lot and lot.statistic_tracker is not None: lot.commodity_tracker.debug_output_all(_connection) lot.statistic_tracker.debug_output_all(_connection)
OMG When I asked for help, I would never imagine getting a whole functional example that also showed the decay rate and the change rate. Thank you so, so, so much! You don't know how grateful I am.
|
|