Locate CommonInteraction for an example of how to utilize custom tooltips in your own interactions.
Display tooltips on interactions that display on hover.
Run Python code when an interaction is started, cancelled, or has finished.
Or display an interaction as disabled, with a displayed tooltip that shows when the player hovers the interaction.
Perform logical checks to determine whether or not to show an interaction.
Terrain Interaction - Use for interactions that appear when clicking on the ground.
Social Mixer Interaction - Use this for custom Social Mixer interactions.
Mixer Interaction - Use this for custom Mixer interactions.
(sim_chat is one example of a Super Interaction)
Super Interaction - Like the Immediate Super interaction but these require a target to perform.
It is started immediately and without an animation.
Immediate Super Interaction - An interaction that doesn't require a target to perform.
CommonInteraction - Inherit from this to hook into an interaction and add python functionality to its functions.
Create interactions the run Python code in their backends.
Basic Notification - Display a notification with a title and description of varying urgency.
Prompt the player to choose a sim or a number of sims from a dialog.
Story Dialogs (Add custom buttons, add sim icons).
Custom Icons available for use with dialogs.
Prompt the player to choose an object from a list of items.
(They could be Yes/No as one custom example)
The text for both the Ok and the Cancel buttons can be custom text as well.
Ok/Cancel - Prompt the player with a message and have them choose either Ok or Cancel.
Four types of Enums (More will be added if requested).
Catch exceptions within your functions via a decorator.
Log to a file exceptions that are thrown.
Enable/Disable logs via a command in-game.
Log the current stack trace, find out who or what is calling your functions!.
Access to Vanilla Tuning identifiers for:.
To start creating mods using S4CL check out the template project! Looking to install S4CL?įollow the installation instructions below for details. To see the documentation for S4CL check out the docs! It does nothing on its own and is meant as a framework for other Sims 4 developers to utilize in their own code bases. This is more of an API than a mod itself.