11 years ago
Custom Interactions to Python
So I've been starting with modifying the maslow Python script to create my own mod using various commands, and it's going pretty darn well!
But I'd like to connect this to an interaction, and ideally pass the Sim in doing so. At the moment the script just iterates through every Sim and makes changes or displays information - I'd like it to only be the Sim I clicked on and preferably do so without needing to iterate all Sims looking for is_selected etc.
So what links the interaction XML to the Python function?
What arguments does the Python function get sent? Any particular parameters I need to set?
(Sorry if these seem like stupid questions, I'm new to it, and could really use a push in the right direction, even if it's just "read this").
But I'd like to connect this to an interaction, and ideally pass the Sim in doing so. At the moment the script just iterates through every Sim and makes changes or displays information - I'd like it to only be the Sim I clicked on and preferably do so without needing to iterate all Sims looking for is_selected etc.
So what links the interaction XML to the Python function?
What arguments does the Python function get sent? Any particular parameters I need to set?
(Sorry if these seem like stupid questions, I'm new to it, and could really use a push in the right direction, even if it's just "read this").