Dialogue Triggers Usage

This is a sub page for Dialogue Structure Overlook#Triggers/Events

See also Dialogue Events for a list on circumstances when each event is triggered.

This list is from the fcs_enums.def file with added commentary from us modders after -Cattrina

Common = NPC and Player, (?) indicates we are unsure Broken = We have tested, we cannot make it to trigger Unused = Not used in vanilla game

NPC OnlyEV_PLAYER_TALK_TO_MEWhen the player clicks on an NPC to talk to them. This is the only one where the player can talk back and choose responses Dialogue target is the player character.
CommonEV_I_SEE_NEUTRAL_SQUADTriggered every time I see a neutral NPC [or player] squad. More likely to trigger when on-screen. Not allies or enemies. Triggered often! You need to be specific, don't let a beggar try to mug a police officer. Use repeat limits often. Careful of repetitions.
BrokenEV_I_SEE_RAGDOLLTriggered every time I see a KO'ed target. Triggered often, use repeat limits and conditions.Use I_SEE_NEUTRAL_SQUAD and use T_TARGET IS_KO or IS_DEAD =1 as possible workaround
NPC OnlyEV_THIEF_CAUGHT_

STEALING_FROM_ME

Witnessed a thief stealing from me personally. Make sure you factor in if the NPC is imprisoned, and whether the thief is the jailer or a fellow inmate or a visitor.
NPC OnlyEV_SHOO_FROM_MY_BUILDINGSomebody is in my house, "get out!". Will trigger repeatedly until they leave. If public building such as a shop, I am politely reminding them to leave, "shop's closed! Come again!"
CommonEV_MARKED_FOR_DEATHI'm going to die. Used in cannibal camps, I'm in a cage and the cannibals are coming to eat me. "nooo, please!! They're coming for me!!!!" Dialogue has no targetTriggered when character is next to be eaten by cannibals/fogmen etc.
CommonEV_SCREAMING_TORTUREI'm dying horribly. Triggered repeatedly when the cannibals are hacking me to death. Dialogue has no target
Common(?)EV_UNLOCK_MY_CAGE

_OR_SHACKLES

Triggered when somebody NOT from our captor's faction has unlocked my cage. "you rescued me!" Make sure to use conditions 'In locked cage' and 'Wearing shackles' to cover all bases. Target is my saviour.Upon successful unlock of cage or shackles
Common(?)EV_UNLOCK_MY_

CAGE_ATTEMPT

A failed lockpick attempt made on my cage "keep trying buddy!" Target is the person trying to free me.
CommonEV_I_DEFEATED_SQUADI just won a battle, whole enemy squad is down. Consider target faction, target race, outnumbered, I hate this guy, injuries, religion. Target is the person I just defeated
NPC OnlyEV_INTRUDER_FOUNDNPC has just found somebody (target) inside their locked, private building.
CommonEV_HEALING_OTHER_STARTI have just begun healing another character (the target) Make sure to distinguish if target is enemy, neutral or ally.
CommonEV_BEING_HEALED_STARTI have just had another character (the target) begin healing me Make sure to distinguish if target is enemy, neutral or ally
CommonEV_HEALING_OTHER_FINISHEDI have just stood up after finishing healing another character (the target) Make sure to distinguish if target is enemy, neutral or ally
CommonEV_BEING_HEALED_FINISHEDI have just been healed by another character (the target) Make sure to distinguish if target is enemy, neutral or ally
CommonEV_FIRSTAID_KIT_EMPTYI was healing someone and my medkits ran out No target?
CommonEV_GET_UP_PEACEI was KO, now I'm getting up off the floor. No more fighting is going on, the battle is over. Consider injuries, other people in squad, personality type. Dialogue has no target.
CommonEV_GET_UP_FIGHTI was KO, now I'm getting up off the floor. The fight is still going on around me. Target is my opponent.
CommonEV_GET_UP_

UNNECCESSARY_FIGHT

I was KO, now I'm getting up off the floor. The fight was lost, enemy was leaving and I was playing dead, but the player made me get up and fight again. Crazy. Target is my opponent.
NPC OnlyEV_HARRASSMENT_SHOUTSUsed in THUG_HUNTER behaviour, they shout this at you while they follow (triggered once). Target is the person I am harrassing.
CommonEV_I_SEE_ANIMAL_SQUADLike I_SEE_NEUTRAL_SQUAD, but for animals. 'Oh my god, beak things!!' Triggered often.Triggers when there is at least one animal in a squad.
NPC OnlyEV_SPEECH_INTERRUPTED_

ATTACKED_BY_TARGET

I was talking to some guy and he suddenly attacked me! Always use repeat limit of at least 2hours Target is the person who attacked me.
NPC OnlyEV_SPEECH_INTERRUPTED_

ATTACKED_BY_STRANGERS

I was talking to someone and suddenly got attacked by a stranger! Always use repeat limit of at least 2hours. Needs a lot of specifics, depending on who attacked us. Dialogue target will be the attacker.
Unused,

NPC Only

EV_CONTRACT_JOB_ENDEDAn "AI contract" has finished, so now we're all like "job's over now, bye!" Target is my employer.Do not put this dialogue here, correct place is inside the contract file.
NPC OnlyEV_BETRAYALAn ally just attacked me. WTF? Currently when the player hires a bodyguard and then attacks him for no reason. Target is the attacker [any crime including lock pick]Contract taker (player) commits a crime against them or attacks them.
NPC OnlyEV_LOOTING_WEAPON_ONLYI'm looting somebody, but only taking their weapon because I need it or I'm in a hurry. Dialogue target is the victim.
NPC OnlyEV_LOOTING_EVERYTHINGI'm looting somebody and I'm just taking everything I can because I'm an asshole, or because he's dead. Target is the victim.
NPC OnlyEV_I_SEE_UNIFORM_IMPOSTERI see some neutral character that is wearing armour looted from my buddies. A character needs to have "wears uniform" set for his armour to be tagged as a uniform. Only for military/police types.NPC notices a player in their faction uniform.
NPC OnlyEV_INTRODUCING_NEW_SLAVEI'm a slaver who just caught a slave and has taken them to their new prison cell. Now I'm going to give them a speech.
NPC OnlyEV_RECAPTURED_A_SLAVEOne of my slaves just tried to escape but I caught them. Now I'm putting their cuffs back on.
NPC OnlyEV_SHOUT_AT_SLAVE_WORKERI'm shouting at a lazy slave while they're working to make them work even harder.AI package with "work slaves" in progress.
NPC OnlyEV_SLAVE_DELIVERYI'm handing over fresh slaves I caught to my slaver colleague. ‘Here's some new slaves for you! Dialogue target is the colleague.
Common(?)EV_ESCAPED_EX_

SLAVE_SPOTTED

I spotted somebody with the brand of a slave. They're a fugitive!
NPC OnlyEV_WITNESS_GENERIC_

ASSAULT

I saw a crime happening, keep it generic. Triggered often so use repeat limits. Target is the criminal.Character witnesses someone being attacked (does not trigger if attack is done by an ally).
NPC OnlyEV_WITNESS_LOOTING_ALLYSomeone is looting the body of an ally. Should react differently if in a town or not. Needs a repeat limit timer or it will be constant. Target is the criminal.
NPC OnlyEV_WITNESS_THIEF_

OR_LOCKPICK

Witnessed someone stealing from somebody else, or lockpicking a door or something, or freeing a slave
NPC Only

Needs Testing

EV_BOUNTY_SPOTTEDI recognized someone has a bounty and is wanted. Won't trigger for allies. Everyone will react differently to this, they could call DA_CRIME_ALARM, or attack, or call DA_ARREST_TARGET, or flee, or just say "Hey you're that wanted guy" and do nothing about it. Should check the bounty amount and react more strongly if its mega high.Can be done using SEE_NEUTRAL and bounty conditions.
Common(?)EV_ESCAPED_

PRISONER_SPOTTED

I've just noticed one of my prisoners wandering around when they should be inside their cage
Needs TestingEV_PRISONER_FREE_TO_GO

This prisoner's sentence has been served, now I am setting them free from their cage. Target is the prisoner.

NPC OnlyEV_ALMOST_WOKE_UPI'm sleeping, but something almost woke me up. I'm sleep talking or snoring. Dialogue has no target.
NPC OnlyEV_BOUGHT_ME_FROM_

SLAVERY

I'm a slave and somebody just bought me. I'm not sure how to feel about my new owner. Target is my new owner.Triggers flee, join or follow in vanilla.
NPC OnlyEV_EATING_SOMETHING_

SOUNDS

I'm eating something very loudly. Dialogue has no targetWhen the character is eating someone. (fogmen etc.) "nom nom"
NPC OnlyEV_WORSHIPING_SOMETHINGI'm on my knees, worshipping my god or other blessed object Dialogue has no target"oh mighty god I worship thee"
NPC OnlyEV_SLAVE_ESCAPE_

OPPORTUNITY_SAVIOR

Triggered when a slave notices all his masters are KO. Dialogue target is the person who took down their master.
NPC OnlyEV_ASSASSINATION_FAILEDSomebody just tried to knock me out!
CommonEV_EATING_MY_CROPSPests are eating my crops! Target is the hungry pest
NPC OnlyEV_KIDNAPPING_MY_ALLYWitnessed someone picking up my ally's unconscious body. Target is the kidnapper
NPC OnlyEV_USING_MY_TRAINING_

EQUIPMENT

I'm chilling in my building and somebody just came in and started using my stuff.
NPC OnlyEV_GIVE_UP_CHASEI was chasing an enemy but now I'm giving up.Dialogue: Basic give up chase Dialogue Package: Npc CIVILIAN Basic 1
CommonEV_ACID_FEETThe ground is acidic, it's burning my feet! Dialogue has no target
CommonEV_ACID_RAINIt's raining acid! Dialogue has no target
CommonEV_ACID_WATERThe water I'm swimming in is acidic! Dialogue has no target
CommonEV_POISON_GASThere's poison gas! Dialogue has no target
NPC OnlyEV_I_SEE_ENEMY_PLAYERTriggered every time I see an enemy squad. More likely to trigger when on-screen. Triggered often! You need to be specific, don't let a beggar try to mug a police officer. Use repeat limits often. Careful of repetitions.
NPC OnlyEV_I_SEE_ALLY_PLAYERTriggered every time I see an allied squad. More likely to trigger when on-screen. Triggered often! You need to be specific, don't let a beggar try to mug a police officer. Use repeat limits often. Careful of repetitions.
CommonEV_BURNINGSomething is burning me! Dialogue has no target
CommonEV_LOST_LEGMy leg just got cut off! Dialogue has no targetDialogue: Burning Dialogue Package: Npc CIVILIAN Basic 1
CommonEV_LOST_ARMMy arm just got cut off! Dialogue has no targetDialogue: Lost my arm Dialogue Package: Npc CIVILIAN Basic 1
NPC OnlyEV_TAKEN_OVER_

PLAYER_TOWN

I've just raided a town and now I'm gonna take it over. I totally live here now. Dialogue has no target
NPC OnlyEV_SLAVE_ESCAPE_

OPPORTUNITY_ALONE

Triggered when a slave notices all his masters are KO.
BrokenEV_WINDYI can't see anything, it's so dusty!Confirmed by dev to be broken
UnusedEV_ANNOUNCEMENTNot currently usedGood place to store the announcement dialogue
Unused

Broken

EV_SOUND_THE_ALARMNot currently usedUse WITNESS event triggers and CRIME_ALARM effect
Unused

Broken

EV_BAR_TALKNot currently usedOnly workaround is using I_SEE_NEUTRAL_SQUAD (and setting appropriate repeat timer)
UnusedEV_LAUNCH_ATTACKNot currently used
Unused

Broken

EV_ENTER_BIOMENot currently used
Unused

Works

EV_ENTER_TOWNNot currently usedWorks! You just need to set this to the leader, won't trigger to squad members
Unused

Works

EV_SQUAD_BROKENNot currently usedWhen the squad is below 25% still up AND the leader is down.
UnusedEV_I_SEE_ILLEGAL_

PLAYER_BUILDING

Not currently used
UnusedEV_I_SEE_PLAYER_

NICE_BUILDING

Not currently used
UnusedEV_CROWD_TRIGGEREDNot currently usedA good place to store the dialogue for later reference
This article is adapted from Dialogue Triggers Usage on the Kenshi Fandom wiki, written by its contributors and licensed under CC BY-SA 3.0. It has been converted to Markdown, and its images and navigation boxes were left out.