Home Mods & CC Utilities (inc Notes) Pictorials Stories Seahouses Bay Misc My Simblr Buy Me A Coffee!

Pet - Give Medication

Adds an interaction to an elder dog or cat to 'Give Medication' which adds a day to their life-span, using the animations from "Give Love.../Feed Treat".

Medication can only be given once a day (per pet), costs $100 per use, has a 10% chance of not working, and increases the pet's life by one day if successful.

Like "Feed Treat", pets must be in a good mood with a passable relationship to the Sim. If stuffed, pets may vomit up the treat.


Configuration

All BCONs are labelled, main ones of interest are in 0x1002 "Tuning - General"

  • 0x09 - Cost per usage (default $100)
  • 0x0B - Extra days per successful usage (default 1 day)
  • 0x0C - %chance of failure (default 10%)

To include the price of the medicine in the pet's menu entry, change the STR# 0x012E "MakeActionString prim string set" entry 0x00 to "Give Medication ($$Local:1)" (without the double quotes).


Conflicts

Unlike Sim social interaction that can only conflict by GUID, pet social interaction (learned behaviours) also need a unique OBJD:Selector Sub-Category value. Should a conflict occur with this value, in addition to editing the OBJD resource, you will also need to edit BHAV 0x1008 "CT - Command Menu TEST" line 0x0B "Expr: Stack Object := 0x0009"


Notes

For reasons known only to Maxis, the TTAB for Learned Bahaviours does not seem to obey normal rules. Do NOT, UNDER ANY CIRCUMSTANCES, change TTAB entry 0x00, or the game will crash during the load screen! Just don't edit the TTAB at all - as despite appearances to the contary, it ain't broke!


Simblr Links


Credits

  • lientebollemeis and Bulbizarre @MTS - specifically this and subsequent posts - for the idea
  • lientebollemeis, Bulbizarre and gummilutt for testing.
  • The developers of SimPE.

Gallery


Code Reuse Policy

You are free to use my code in any way you want, a credit would be nice, but not required.

Specifically, you may

  • reverse engineer the code to figure out how I did it
  • modify the code to do something different but similar and redistribute it, provided you change the name of the .package file
  • merge my code into your own mod and redistribute it
  • merge my code into another mod for your own use. You may redistribute this mod-mod ONLY if the author(s) of the other mod permit it

Reporting Issues

Before contacting me to report any issues, errors or conflicts please ensure you have read and followed Help Me To Help You and Help Me To Help You - Part 2


Files