- Joined
- Sep 6, 2012
- Messages
- 88
Hi guys !
Currently I'm making a skill that behaves like DotA's Priestess of the Moon's Elune's Arrow, at least in terms of its creation and movement. If you don't know about it, whenever the hero casts that skill, an arrow is sent flying far far away and hit the first target within range.
During the making of this skill, I encountered 2 strange problems that I'd need help with. So, here they are. Oh, firstly I'll show you the trigger for them ~
Creation Trigger: This trigger creates an arrow at the caster position whenever the skill is casted.
In the screenshot, the cursor position was where I clicked to use the skill. However, it turned out that the arrow went off to another direction. Any ideas about what caused this and how to fix it ?
Okay, this looks weird. My arrow is always stopped half-way whenever it bumps into a Glacier Doodad. I set the arrow pathing to None and it can pass through all other Doodads like air, but these certain Glaciers always managed to stop it. I don't know why. Can you help me ?
Thank you very much for reading and if you have any ideas, please feel free to make a guess. I'd look forward to hearing your solutions to these problems !
Currently I'm making a skill that behaves like DotA's Priestess of the Moon's Elune's Arrow, at least in terms of its creation and movement. If you don't know about it, whenever the hero casts that skill, an arrow is sent flying far far away and hit the first target within range.
During the making of this skill, I encountered 2 strange problems that I'd need help with. So, here they are. Oh, firstly I'll show you the trigger for them ~
Creation Trigger: This trigger creates an arrow at the caster position whenever the skill is casted.
-
Arrow Of Replacement
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Arrow Of Replacement
-
-
Actions
-
Set Temp_Point = (Position of (Triggering unit))
-
Set Temp_FacingAngle = (Facing of (Triggering unit))
-
Unit - Create 1 Arrow of Replacement for (Owner of (Triggering unit)) at Temp_Point facing Temp_FacingAngle degrees
-
Set ArrowOfReplacement_Unit = (Last created unit)
-
Trigger - Turn on Arrow Of Replacement Movement <gen>
-
Custom script: call RemoveLocation (udg_Temp_Point)
-
-
-
Arrow Of Replacement Movement
-
Events
-
Time - Every 0.01 seconds of game time
-
-
Conditions
-
(Unit-type of ArrowOfReplacement_Unit) Equal to Arrow of Replacement
-
-
Actions
-
Unit - Move ArrowOfReplacement_Unit instantly to ((Position of ArrowOfReplacement_Unit) offset by 5.00 towards Temp_FacingAngle degrees), facing Temp_FacingAngle degrees
-
-

In the screenshot, the cursor position was where I clicked to use the skill. However, it turned out that the arrow went off to another direction. Any ideas about what caused this and how to fix it ?

Okay, this looks weird. My arrow is always stopped half-way whenever it bumps into a Glacier Doodad. I set the arrow pathing to None and it can pass through all other Doodads like air, but these certain Glaciers always managed to stop it. I don't know why. Can you help me ?
Thank you very much for reading and if you have any ideas, please feel free to make a guess. I'd look forward to hearing your solutions to these problems !