What we’re going to do is replace another piece of code to get more practice at it and we’re going to step it up a small bit to make thing just a tiny bit more challenging.

This tutorial was fairly difficult to make happen because it took a long time to track down the needed code and then go through the many road blocks that happened. I’d say it took me close to three days to get to this point and quite a bit of frustration, just remember patience and practice is key to mastering Sims 4 python scripting.

**I feel this tutorial is a bit dense. **The program we’re making is a little over 25 lines of code, however it really goes into a lot of explanation and breaks everything down properly. Please take it slow to understand each section and ask questions if you have any.

Make sure you start at part 1

The projects here assume your up-to-speed on how to mod for the Sims 4 using python scripting which I already covered. If you’re new to this series I encourage you to start at part 1.

What we’re going to make

We are going to be creating a mod called “Whimsical Charges” where the service pricing for maids, repair people, and even pizza are a bit more looser than advertised.

If it sounds complicated don’t worry it’s actually not especially if you’ve been following along up until now. In part 3 you learned how to replace regular function code and here you’re going to learn how to replace class code specifically marked @ classmethod which has to be replaced a tad differently. We’re also going to cover managing a variable and allowing it to be changed from the cheat console.

#sims-4 #modding #python #ts4script #monkey-patching

The Sims 4 Modern Python Modding:  Replacing Class Code
2.85 GEEK