I have a trigger handling 'unit uses ability' event and run some custom code once triggered.
What I found and confused about is that the code actually ran 8 times per triggering. I feel that there're must be something basic about triggering that I didn't know about.
What I know is there're actions to turn on/off a specific trigger, but what exactly is the triggering mechanism? why it's exactly 8 times of this specific triggering event?
Specify a stage in the event. "Generic3 - Execute" might be a good one.
That solved it very well, thanks.
I was suspecting about this 'stage' thing as well, but couldn't come up with an logical explanation to myself. I interpret 'generic 1 - any' intuitively as 'run ability once no matter what stage it was triggered'.
Do you know any reading that explain ability stage well?
Look around in data, but basically abilities have stages. some abilites skip stages while other dont. For the most part Generic3- Execute is what you want.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have a trigger handling 'unit uses ability' event and run some custom code once triggered.
What I found and confused about is that the code actually ran 8 times per triggering. I feel that there're must be something basic about triggering that I didn't know about.
What I know is there're actions to turn on/off a specific trigger, but what exactly is the triggering mechanism? why it's exactly 8 times of this specific triggering event?
Specify a stage in the event. "Generic3 - Execute" might be a good one.
That solved it very well, thanks.
I was suspecting about this 'stage' thing as well, but couldn't come up with an logical explanation to myself. I interpret 'generic 1 - any' intuitively as 'run ability once no matter what stage it was triggered'.
Do you know any reading that explain ability stage well?
Look around in data, but basically abilities have stages. some abilites skip stages while other dont. For the most part Generic3- Execute is what you want.