Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Lab Assistant
Original Poster
#1 Old 7th May 2021 at 3:28 PM
Default Removing a set amount of points from a motive
How would I remove a certain amount of points from a motive of the target sim in a interaction? I looked at the motive curses, but they seem to be coded with the Spellcasting skill on mind.
Advertisement
Space Pony
#2 Old 7th May 2021 at 4:57 PM
The easiest and safest way to do it is:

Code:
sim.Motives.ChangeValue(motive, amount);


Where "motive" is a CommodityKind (an enum representing many different visible and invisible motives) and "amount" is the amount of points you want to add to it. If you want to decrease the CommodityKind, make "amount" negative.

"The Internet is the first thing that humanity has built that humanity doesn't understand, the largest experiment in anarchy that we have ever had." - Eric Schmidt

If you enjoy the mods I put out, consider supporting me on patreon: www.patreon.com/Gamefreak130
Lab Assistant
Original Poster
#3 Old 7th May 2021 at 5:12 PM
Thanks.
Back to top