Skip to main content

construction

Trigger Repository

This is where the many diferent triggers are exposed and shared by the community. To setup a custom trigger in your game you just need to download its file and install it as mod. The yaml trigger file will appear in the web ui and be enabled by default

Slap anyone shout trigger

Gives npcs awareness and reaction to the slap (where a paired animation plays) Requires "Shadowman slap anyone" mod https://www.nexusmods.com/skyrimspecialedition/mods/125499

construction

name: "slap on face"
description: "Auto-generated trigger for spell_cast"

eventCriteria:
eventType: "spell_cast"
schemaConditions:
- fieldPath: "spell"
operator: "equals"
value: "Slap Anyone Shout"
- fieldPath: "spell_editor_id"
operator: "equals"
value: "SlapAnyoneShout"

response:
type: "direct_narration"
content: "{{ player.name }} slaps you hard and painfully, your face turns red, you feel subdued"

audience: "everyone"

enabled: true
probability: 1
cooldownSeconds: 5
priority: 1

construction

Create Diary when sleeping


name: "Diary Sleep Trigger"
description: "generates diary entries for all nearby npcs on sleep"
eventCriteria:
eventType: "sleep_start"
schemaConditions:
- fieldPath: "actor"
operator: "equals"
value: "{{ player.name }}"
caseSensitive: "false"
audience: "player"
response:
type: "diary_entry"
content: "I notice {{ event_json.actor }} settling down to rest."
targetScope: "all_pinned_actors"
nearbyRadius: "2000"
enabled: "false"
cooldownSeconds: "30"
priority: "5"

construction

Enable and Disable Virtual Entity

In this example the Ebony Blade is used , as well as a virtual entity called "Ebon Blade". In order to work for you use the item you desire, as well as your virtual entity name. Altering the content description is not necessary.

name: "Ebony Blade Trigger"
description: "Activates Virtual Entity when equipping the blade"

eventCriteria:
eventType: "equip"
schemaConditions:
- fieldPath: "item"
operator: "equals"
value: "Ebony Blade"
- fieldPath: "action"
operator: "equals"
value: "equipped"

response:
type: "enable_virtual_npc"
content: "I {% if event_json.action == \"equipped\" %}equip{{ else }}unequip{% endif %} {{ event_json.item }}, feeling its {% if event_json.action == \"equipped\" %}weight and presence{% else %}absence{% endif %}."
targetName: "Ebon Blade"

audience: "player"

enabled: true
interrupt: false
probability: 1
cooldownSeconds: 30
priority: 1


name: "Ebony Blade Disable"
description: "Disables Virtual Entity when unequipping the blade"

eventCriteria:
eventType: "equip"
schemaConditions:
- fieldPath: "item"
operator: "equals"
value: "Ebony Blade"
- fieldPath: "action"
operator: "equals"
value: "unequipped"

response:
type: "disable_virtual_npc"
content: "I {% if event_json.action == \"equipped\" %}equip{{ else }}unequip{% endif %} {{ event_json.item }}, feeling its {% if event_json.action == \"equipped\" %}weight and presence{% else %}absence{% endif %}."
targetName: "Ebon Blade"

audience: "player"

enabled: true
interrupt: false
probability: 1
cooldownSeconds: 30
priority: 1

construction

Vampire Lord transformation triggers

name: "Vampire Lord"
description: "Vampire Lord reverting form"

eventCriteria:
eventType: "spell_cast"
schemaConditions:
- fieldPath: "spell"
operator: "equals"
value: "Vampire Lord"
- fieldPath: "actor"
operator: "equals"
value: "{{ player.name }}"
caseSensitive: false

response:
type: "direct_narration"
content: "{{ event_json.actor }} transforms, changing into a powerful, muscular and terrible hybrid of bat and monster. A vampire Lord true form! Few can withstand its presence and the horror it emanates."

audience: "everyone"

enabled: true
interrupt: false
probability: 1
cooldownSeconds: 30
priority: 1

name: "Revert Vampire Lord Form"
description: "Auto-generated trigger for spell_cast"

eventCriteria:
eventType: "spell_cast"
schemaConditions:
- fieldPath: "spell"
operator: "equals"
value: "Revert Form"
- fieldPath: "actor"
operator: "equals"
value: "{{ player.name }}"
caseSensitive: false

response:
type: "direct_narration"
content: "{{ player.name }} reverts his monstrous form back to his human self"

audience: "everyone"

enabled: true
interrupt: false
probability: 1
cooldownSeconds: 30
priority: 1

construction

Mace of Molag Bal hit

Changing the weapon_id ( you can see it on a weapon hit on the Event Monitor) and altering the content description is enough to customize it to your liking, conveying the npc being hit with how you want him to react.

name: "Mace of Molag Bal hit"
description: "Auto-generated trigger for hit"

eventCriteria:
eventType: "hit"
schemaConditions:
- fieldPath: "flags"
operator: "equals"
value: "None"
- fieldPath: "aggressor"
operator: "equals"
value: "{{ player.name }}"
caseSensitive: false
- fieldPath: "weapon_id"
operator: "equals"
value: 144355

response:
type: "direct_narration"
content: "{{ player.name }} hits {{ event_json.target }} with the infamous Mace of Molag Bal, the feeling is more than the terrible pain, its the dread of soon having its eternal soul absorbed, an afterlife denied forever"

audience: "nearby_npcs"

enabled: true
interrupt: false
probability: 1
cooldownSeconds: 30
priority: 1