Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 27th Apr 2026 at 2:33 PM
Default Seeking advice on injecting a custom Buff via python
I've tried injecting a custom buff into job_template.retained_buffs using InstanceManager.on_registered_callbacks and ZoneAction.ON_ENTER_LOT, but the caterers don't seem to inherit the buff.

Question:
What is the most stable way to inject a retained_buff into a SituationJob so that it’s applied the moment the NPC is spawned?
Reaper
staff: moderator
#2 Old Today at 1:25 PM
I guess you can use emotional_setup? You can assign a loot from there, a custom loot which adds the buff you want.
Code:
<L n="emotional_setup">
    <U>
        <T n="single_sim_loot_actions">123456</T>
    </U>
</L>
It only applies to NPCs, though.

This is a signature.
Back to top