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 Only | EV_PLAYER_TALK_TO_ME | When 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. | |
| Common | EV_I_SEE_NEUTRAL_SQUAD | Triggered 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. | |
| Broken | EV_I_SEE_RAGDOLL | Triggered 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 Only | EV_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 Only | EV_SHOO_FROM_MY_BUILDING | Somebody 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!" | |
| Common | EV_MARKED_FOR_DEATH | I'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 target | Triggered when character is next to be eaten by cannibals/fogmen etc. |
| Common | EV_SCREAMING_TORTURE | I'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. | |
| Common | EV_I_DEFEATED_SQUAD | I 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 Only | EV_INTRUDER_FOUND | NPC has just found somebody (target) inside their locked, private building. | |
| Common | EV_HEALING_OTHER_START | I have just begun healing another character (the target) Make sure to distinguish if target is enemy, neutral or ally. | |
| Common | EV_BEING_HEALED_START | I have just had another character (the target) begin healing me Make sure to distinguish if target is enemy, neutral or ally | |
| Common | EV_HEALING_OTHER_FINISHED | I have just stood up after finishing healing another character (the target) Make sure to distinguish if target is enemy, neutral or ally | |
| Common | EV_BEING_HEALED_FINISHED | I have just been healed by another character (the target) Make sure to distinguish if target is enemy, neutral or ally | |
| Common | EV_FIRSTAID_KIT_EMPTY | I was healing someone and my medkits ran out No target? | |
| Common | EV_GET_UP_PEACE | I 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. | |
| Common | EV_GET_UP_FIGHT | I was KO, now I'm getting up off the floor. The fight is still going on around me. Target is my opponent. | |
| Common | EV_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 Only | EV_HARRASSMENT_SHOUTS | Used in THUG_HUNTER behaviour, they shout this at you while they follow (triggered once). Target is the person I am harrassing. | |
| Common | EV_I_SEE_ANIMAL_SQUAD | Like 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 Only | EV_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 Only | EV_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_ENDED | An "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 Only | EV_BETRAYAL | An 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 Only | EV_LOOTING_WEAPON_ONLY | I'm looting somebody, but only taking their weapon because I need it or I'm in a hurry. Dialogue target is the victim. | |
| NPC Only | EV_LOOTING_EVERYTHING | I'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 Only | EV_I_SEE_UNIFORM_IMPOSTER | I 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 Only | EV_INTRODUCING_NEW_SLAVE | I'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 Only | EV_RECAPTURED_A_SLAVE | One of my slaves just tried to escape but I caught them. Now I'm putting their cuffs back on. | |
| NPC Only | EV_SHOUT_AT_SLAVE_WORKER | I'm shouting at a lazy slave while they're working to make them work even harder. | AI package with "work slaves" in progress. |
| NPC Only | EV_SLAVE_DELIVERY | I'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 Only | EV_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 Only | EV_WITNESS_LOOTING_ALLY | Someone 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 Only | EV_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_SPOTTED | I 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 Testing | EV_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 Only | EV_ALMOST_WOKE_UP | I'm sleeping, but something almost woke me up. I'm sleep talking or snoring. Dialogue has no target. | |
| NPC Only | EV_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 Only | EV_EATING_SOMETHING_ SOUNDS | I'm eating something very loudly. Dialogue has no target | When the character is eating someone. (fogmen etc.) "nom nom" |
| NPC Only | EV_WORSHIPING_SOMETHING | I'm on my knees, worshipping my god or other blessed object Dialogue has no target | "oh mighty god I worship thee" |
| NPC Only | EV_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 Only | EV_ASSASSINATION_FAILED | Somebody just tried to knock me out! | |
| Common | EV_EATING_MY_CROPS | Pests are eating my crops! Target is the hungry pest | |
| NPC Only | EV_KIDNAPPING_MY_ALLY | Witnessed someone picking up my ally's unconscious body. Target is the kidnapper | |
| NPC Only | EV_USING_MY_TRAINING_ EQUIPMENT | I'm chilling in my building and somebody just came in and started using my stuff. | |
| NPC Only | EV_GIVE_UP_CHASE | I was chasing an enemy but now I'm giving up. | Dialogue: Basic give up chase Dialogue Package: Npc CIVILIAN Basic 1 |
| Common | EV_ACID_FEET | The ground is acidic, it's burning my feet! Dialogue has no target | |
| Common | EV_ACID_RAIN | It's raining acid! Dialogue has no target | |
| Common | EV_ACID_WATER | The water I'm swimming in is acidic! Dialogue has no target | |
| Common | EV_POISON_GAS | There's poison gas! Dialogue has no target | |
| NPC Only | EV_I_SEE_ENEMY_PLAYER | Triggered 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 Only | EV_I_SEE_ALLY_PLAYER | Triggered 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. | |
| Common | EV_BURNING | Something is burning me! Dialogue has no target | |
| Common | EV_LOST_LEG | My leg just got cut off! Dialogue has no target | Dialogue: Burning Dialogue Package: Npc CIVILIAN Basic 1 |
| Common | EV_LOST_ARM | My arm just got cut off! Dialogue has no target | Dialogue: Lost my arm Dialogue Package: Npc CIVILIAN Basic 1 |
| NPC Only | EV_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 Only | EV_SLAVE_ESCAPE_ OPPORTUNITY_ALONE | Triggered when a slave notices all his masters are KO. | |
| Broken | EV_WINDY | I can't see anything, it's so dusty! | Confirmed by dev to be broken |
| Unused | EV_ANNOUNCEMENT | Not currently used | Good place to store the announcement dialogue |
| Unused Broken | EV_SOUND_THE_ALARM | Not currently used | Use WITNESS event triggers and CRIME_ALARM effect |
| Unused Broken | EV_BAR_TALK | Not currently used | Only workaround is using I_SEE_NEUTRAL_SQUAD (and setting appropriate repeat timer) |
| Unused | EV_LAUNCH_ATTACK | Not currently used | |
| Unused Broken | EV_ENTER_BIOME | Not currently used | |
| Unused Works | EV_ENTER_TOWN | Not currently used | Works! You just need to set this to the leader, won't trigger to squad members |
| Unused Works | EV_SQUAD_BROKEN | Not currently used | When the squad is below 25% still up AND the leader is down. |
| Unused | EV_I_SEE_ILLEGAL_ PLAYER_BUILDING | Not currently used | |
| Unused | EV_I_SEE_PLAYER_ NICE_BUILDING | Not currently used | |
| Unused | EV_CROWD_TRIGGERED | Not currently used | A good place to store the dialogue for later reference |