Jump to content

Applying multiple effects in sequence, triggering one ability from another


prowler83

Recommended Posts

I'm modding a multi-target ability that applies different effects depending on if it hits or misses. The hit/miss result is the same for every target.

The problem is that if a soldier is in stasis, it automatically misses, which doesn't make sense for this. It would make sense for my ability to remove stasis, so I tried including an effect to remove stasis first (that hits even on a miss), as part of the same ability, but since the hit result is calculated before any effects are handled, it still counts as a miss.

So now I'm trying to create two abilities: the first one removes stasis, and the second one applies my other effects. But I can't figure out how to get the second one to activate from the first one, or set its targets at all.

Link to comment
Share on other sites

I looked at all of them, and I tried an X2AbilityTrigger_EventListener for the second part of the ability, and it never gets triggered.

 

My AbilityToHitCalc still has log statements in it, and they never show up, so I know it's not that the effects are implemented wrong, it's just not getting called at all.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...