- Joined
- Dec 19, 2016
- Messages
- 8
So I made an ability based on channel and made it to cast on a point. I created dummy unit with intervals who casted the modified carrion swarm ability, each with their own generic expiration timer every 0.3s.
The thing is, every first attack of the unit in the game will cast this ability, but this does not repeat.
How I made the ability:
Trigger A
The unit casts an ability
The certain ability is equal to the modded channel
Set variables for casting unit, target point, and casting unit position
Turn on the dummy creating trigger
Wait 1.5 sec
Turn off the dummy creating trigger
Trigger B
Every 0.3s of game time,
Play casting unit attack animation
Create 1 dummy unit at casting unit position
Order last created unit to carrion swarm to target point
Add 3s genetic expiration timer
What could have gone wrong? Is it a kind of leak, or the ability itself?
I'm sorry if I said anything wrong in this post, new to the Hive, like not even a day old. Thanks!
EDIT: I dunno what I did in the abilities without changing the triggers, but it stopped! But still, does this leak?
Untitled Trigger 005
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Moo[n]light Splitter
Actions
Set MS_caster = (Casting unit)
Set MS_point = (Target point of ability being cast)
Set MS_stand = (Position of (Casting unit))
Trigger - Turn on Untitled Trigger 002 <gen>
Wait 1.50 seconds
Trigger - Turn off Untitled Trigger 002 <gen>
Wait 0.10 seconds
Animation - Play MS_caster's stand animation
Untitled Trigger 002
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Animation - Play MS_caster's attack animation
Unit - Create 1 dummysplit for (Owner of MS_caster) at MS_stand facing Default building facing degrees
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm MS_point
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
The thing is, every first attack of the unit in the game will cast this ability, but this does not repeat.
How I made the ability:
Trigger A
The unit casts an ability
The certain ability is equal to the modded channel
Set variables for casting unit, target point, and casting unit position
Turn on the dummy creating trigger
Wait 1.5 sec
Turn off the dummy creating trigger
Trigger B
Every 0.3s of game time,
Play casting unit attack animation
Create 1 dummy unit at casting unit position
Order last created unit to carrion swarm to target point
Add 3s genetic expiration timer
What could have gone wrong? Is it a kind of leak, or the ability itself?
I'm sorry if I said anything wrong in this post, new to the Hive, like not even a day old. Thanks!
EDIT: I dunno what I did in the abilities without changing the triggers, but it stopped! But still, does this leak?
Untitled Trigger 005
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Moo[n]light Splitter
Actions
Set MS_caster = (Casting unit)
Set MS_point = (Target point of ability being cast)
Set MS_stand = (Position of (Casting unit))
Trigger - Turn on Untitled Trigger 002 <gen>
Wait 1.50 seconds
Trigger - Turn off Untitled Trigger 002 <gen>
Wait 0.10 seconds
Animation - Play MS_caster's stand animation
Untitled Trigger 002
Events
Time - Every 0.30 seconds of game time
Conditions
Actions
Animation - Play MS_caster's attack animation
Unit - Create 1 dummysplit for (Owner of MS_caster) at MS_stand facing Default building facing degrees
Unit - Order (Last created unit) to Undead Dreadlord - Carrion Swarm MS_point
Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
Last edited: