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

Effect Trigger vs Event Trigger · Changes

Page history
Update Effect Trigger vs Event Trigger authored Jan 13, 2019 by Kaoru Aoi's avatar Kaoru Aoi
Hide whitespace changes
Inline Side-by-side
Effect-Trigger-vs-Event-Trigger.md
View page @ 5f4e0007
...@@ -4,4 +4,6 @@ Use effect triggers when you can and event triggers when effect triggers don't a ...@@ -4,4 +4,6 @@ Use effect triggers when you can and event triggers when effect triggers don't a
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. 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. 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.
\ No newline at end of file
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.
\ No newline at end of file
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