Forum Discussion

ZerbuTabek's avatar
9 years ago

Test Condition for Installed Packs

I'm looking for a way to require the player to have a certain pack in order to access certain parts of a mod. I know there's a test type named "is_entitled" that is used by the Spooky Party event, and checks to see if the player has unlocked the special edition content. Can this also be used to check for packs? And if so, where can I find the number for each pack? (Specifically, I need the number for EP02 and EP03 )
  • Thanks for the response!

    It sounds like adding a Python script would be too much effort for everything I have planned for it (the mod is overdue as it is) so I may just compromise by putting the tuning for features that require packs in separate .package files, so the player can just not include them if they don't have the pack.
  • Hey @Zerbu,

    There is no test that does precisely what you are looking for. The problem with "is_entitled" for packs is that a person may be entitled to a pack (i.e. has purchased it), but may not have it installed currently. In which case the test would return true but content is not actually available.

    There is a python side check that can be made via "is_available_pack", which will tell you if the pack is actually installed. This just uses the code side pack enums (i.e. EP02=9, EP03=24)

    -SGMS

About The Sims 4 Mods & Custom Content

Find expert tips, troubleshooting help, tutorials for mods and custom content, and The Sims 4 patch files in our forum.

4,846 PostsLatest Activity: 2 months ago