Finestdeath
New Member
- Reaction score
- 10
I recently edited a spell for my map. Originally, what the spell does is that it deals damage to nearby units the moment the projectile lands. I edited it so that when the projectile lands, it slows the units near it instead of damaging them.
However, when I cast the edited spell, the First projectile to land causes a minor 0.1 second lag which is abit annoying. And it only happens the First time you cast it. Casting it the second time will not cause any lag.
I'm not really that troubled about this issue, but I would like to know why is there this "minor lag"?
Before editing the spell, it looked like this. (It just deals damage, thats all)
After editing the spell, it looked like this (This slows the enemies down)
So what I've done is that I have merged the two triggers together. Now it doesn't deal damage but instead, slows the enemies down.
I'm not sure exactly which part is causing the lag. Is it the part where I merged them together? Or the part where the Dummy casts Thunder Clap? And is it possible to eliminate this lag?
Help would be appreciated
However, when I cast the edited spell, the First projectile to land causes a minor 0.1 second lag which is abit annoying. And it only happens the First time you cast it. Casting it the second time will not cause any lag.
I'm not really that troubled about this issue, but I would like to know why is there this "minor lag"?
Before editing the spell, it looked like this. (It just deals damage, thats all)
Trigger:
- Trigger A1
- Event
- Unit - A unit Begans channeling an ability
- Conditions
- Actions
- Unit - Create 1 Dummy for (Owner of (Triggering Player) at PickedUnitLoc facing (Angle from PickedUnitLoc to TargetLoc) degrees
- Trigger - Turn on (Trigger A2)
- Event
Trigger:
- Trigger A2
- Event
- Time - Every 0.05 seconds of the game time
- Conditions
- Actions
- Set Dummy = (Last created unit)
- Unit - Cause Dummy to damage (Picked Unit), dealing 500.00 damage of attack type Spells and damage type Magic.
- Unit - Remove Dummy from the game.
- Event
After editing the spell, it looked like this (This slows the enemies down)
Trigger:
- Trigger B1
- Event
- Time - Every 0.05 seconds of the game time
- Conditions
- Actions
- Unit - Create 1 Dummy for (Owner of (Triggering Player) at PickedUnitLoc facing (Angle from PickedUnitLoc to TargetLoc) degrees
- Set Dummy = (Last created unit)
- Unit - Add Thunderclap (Slow) to Dummy
- Unit - Order Dummy to Human Mountain King - Thunder Clap
- Unit - Remove Dummy from the game.
- Event
So what I've done is that I have merged the two triggers together. Now it doesn't deal damage but instead, slows the enemies down.
I'm not sure exactly which part is causing the lag. Is it the part where I merged them together? Or the part where the Dummy casts Thunder Clap? And is it possible to eliminate this lag?
Help would be appreciated