Delaying damage/changes when casting a spell?

Hey,

I just made an animation for a new spellbook, and the effect takes about 17 seconds to complete. However, when I went to test it in-game the damage modifiers of the spell got applied instantly. This would cause the spell to deal damage before the visual effect of dealing damage.

So my question, is there any way to delay the damage and/or changes from a spell when you cast it, so that it plays at the end of an effect instead of the start of it?

4,522 views 7 replies
Reply #1 Top

Hmm... have you tried messing around with the EffectDelay tag (maybe a negative number)? It's an outside shot, but the only thing that comes to mind.

Reply #2 Top

No luck... someone else must have stumbled across this problem, surely?

Reply #3 Top

Honestly, most of my own effects last a few seconds at the most.

Have you tried adding in the code for projectile effects with an invisible projectile animation? If you set the speed low enough, and there is a way to get the effect bound to the target to play before the projectile 'hits,' you might be able to get what you're looking for. If that doesn't work, it's probably hard-coded.

Also, slightly off-topic, I'm kind of curious as to what you've come up with as far as custom spells go. Sharing is caring!

Reply #5 Top

It's nice how the dragon politely waits for the cute fireworks to finish, not biting his head off at all ;-)

However, I can imagine the player to become a bit impatient after seeing this for the tenth time.

Reply #6 Top

It's not something you would use more than once or twice in a game (and certainly not in tactical anyway).

 

Reply #7 Top

I had a chat with Cari_Elf and unfortunately the solution involves creating a unique bones animation. Since the animations are only indirectly tied to the spells, it is not possible to give this delay to any unit with more than one spell. If anyone googles in the future and finds this topic, you can find an example of the "effectdetach" if you study D_Dragon_Attack_02.hkb animation for dragonfire attacks.