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.

Files