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!
Test Subject
Original Poster
#1 Old 1st Mar 2018 at 3:01 PM
Default How to test whether sims are in a specific career in script
Hello all, thanks for reading.
I'm working on a mod that increases royalties based on sims' overmax level of writer career.I inject into RoyaltyTracker.update_royalties_and_get_paid and get sims' career by calling career= self.sim_info.career_tracker.get_career_by_category(CareerCategory.Work) and then I can get career.overmax_level.
The problem is I don't know how to test whether the career is of specific type, in this case, career_Adult_Writer.
Advertisement
Deceased
#2 Old 2nd Mar 2018 at 4:38 AM
Several methods come to mind, but by far the simplest for your case would be to just check that the guid64 on the career equals 27933 (the instance ID for career_Adult_Writer).
Test Subject
Original Poster
#3 Old 2nd Mar 2018 at 8:23 AM
Quote: Originally posted by scumbumbo
Several methods come to mind, but by far the simplest for your case would be to just check that the guid64 on the career equals 27933 (the instance ID for career_Adult_Writer).

Thanks
Back to top