The Sims 2 has no single "fill all needs" cheat code, but the testingcheatsenabled console provides multiple ways to achieve it.
boolProp testingCheatsEnabled true → Enter.testingCheatsEnabled true active, Shift+Click any Sim → Spawn → More → Sim Modder (statue icon).motherlode → §50,000 → Buy best beds, showers, fridges, fun objects → Needs fill fast naturally.
aging off – Stop aging.moveObjects on – Place objects anywhere (delete stuck Sims).maxMotives (with testingcheats) – Fill motives via Sim Modder.Always save before using cheats. Disable with boolProp testingCheatsEnabled false.