Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 81
    • Issues 81
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • dulst
  • core
  • Wiki
  • Effect Trigger vs Event Trigger

Last edited by Kaoru Aoi Jan 13, 2019
Page history
This is an old version of this page. You can view the most recent version or browse the history.

Effect Trigger vs Event Trigger

When to use each:

Use effect triggers when you can and event triggers when effect triggers don't apply.

Event triggers allow cards to watch for things happening to other cards. Effect triggers are predetermined when the trigger is set, and they typically predetermine common use cases. For example the discard effect trigger runs the discard effect on friendly cards in play when cards are discarded.

But more rarely you might want to activate an effect when an ENEMY card is discarded. Rather than make lots of discard effect triggers that are rarely used, it's easier to just use trigger on event to listen to the discard event, and this you can do from any card, including enemy cards, regardless of whether it was originally intended or not.

Trigger on event generally introduces more overhead and is a target for optimization if your game becomes too slow. That's because trigger on event activates whenever a matching event occurs, checking to see if the target matches the target the event it is firing on. If you find that it is getting troublesome, replace the trigger on event with a more targted effect trigger.

Clone repository
  • Analytics Events
  • Animations
  • Basic Effect Building
  • Change Log v13
  • Change Log v14
  • Change Log v15
  • Change Log v16.1
  • Change Log v16.2
  • Change Log v16.3
  • Change Log v16.4
  • Change Log v16.5
  • Change Log v16.6
  • Change Log v16.7
  • Change Log v16.8
  • Change Log v16
View All Pages