trigger_effect events - larswijn/CardSleeves GitHub Wiki

trigger_effect events

This mod handles some custom events+contexts for sleeves to use in trigger_effect.

Base game events

Any event that gets passed to Back:trigger_effect() will also be received by Sleeve:trigger_effect().

Custom events

These events do not have a base game equivalent, but might be useful.

  1. On any card creation, with context:
     create_card = true
     card = card
  1. On playing card modification (one using set_base), with context:
    modify_playing_card = true
    card = playing_card
  1. Right before a consumable gets used, with context:
    before_use_consumable = true
    card = consumable
  1. Directly after a consumable's effect has finished, with context:
    after_use_consumable = true
  1. On shop enter/reroll (directly after Tag:trigger_effect()), with:
    context = "shop_final_pass"`

Adding/changing events

If necessary, you can always create new events yourself. If there are any issues or obviously lacking events for sleeves, let me know.