HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Enhancing Exisiting Skills

04-21-2007, 01:56 AM#1
Hsinker
I wanted to create a blink strike with a micro stun so i used a storm bolt with a desired stun duration as the base spell and have a trigger to do the blink part, however it doesnt work as i want.
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Storm Bolt
Collapse Actions
Unit - Move (Triggering unit) instantly to (Position of (Targeted unit))
Unit - Cause (Triggering unit) to damage (Targeted unit), dealing 5000.00 damage of attack type Spells and damage type Normal

Also i want to vary the damage according to the level of the spell being casted.
04-21-2007, 02:12 AM#2
Zwan
base it off blink and use a dummy casting stormbolt.
04-21-2007, 03:24 AM#3
zen87
Quote:
Originally Posted by Hsinker
I wanted to create a blink strike with a micro stun so i used a storm bolt with a desired stun duration as the base spell and have a trigger to do the blink part, however it doesnt work as i want.
Trigger:
Collapse Untitled Trigger 001
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Storm Bolt
Actions
[trigger] Unit - Move (Triggering unit) instantly to (Position of (Targeted unit))
Unit - Cause (Triggering unit) to damage (Targeted unit), dealing 5000.00 damage of attack type Spells and damage type Normal
[/trigger]

Also i want to vary the damage according to the level of the spell being casted.
that will not work as there are 2 problem with above trigger
Trigger:
Unit - A unit Begins casting an ability
does not have a target event respond, which mean the (Targeted unit) is null, use
Trigger:
Unit - A unit Begins an effect of an ability
instead

2nd,
Trigger:
Unit - Move (Triggering unit) instantly to (Position of (Targeted unit))
will stops all the current order of the unit and perform the movement (you casted stormbolt, and moved to the location you desire, but stormbolt was not casted at all), to solve this u can either use an timer of 0 second, or make a small wait interval of 0 seconds (however this is not a good idea for some reason). If you know jass, then SetUnitX and SetUnitY will be a better choise...
04-21-2007, 03:24 AM#4
Dil999
Uh.. what exactly is going wrong?

Heres a few things you may be doing wrong/need to change:

1) Make sure the condition is using your ability. If you have the ability off storm bolt and just didnt change the name, your fine. If you made a custom ability based off stormbolt, you have to use that ability.

2) For events, use 'A unit Starts the Effect of an ability.
The way you have it now, it will move the unit even if you don't cast the ability, you just need to order it to do it and the trigger will run (even if your out of range)

3) To make the damage go up as it levels. Do this:
First, go to arithmatic instead of 5000.
For the first piece, make another arithmatic.
Now its this:
((1+1)+1)
Then, for the first one, do Convert Integer to Real
For integer, do (level of ability for unit) and do Level of Stoem Bolt for Triggering Unit.
Then, make it multiply by whatever you want each level to go up by. Finally, for the last one, do an addition so you will end up with this: (Pretending you want it to start at 5000 and go up by 2500

(((Integer (Level of Storm Bolt of Triggering Unit)) x 2500) + 2500)

Im doing this without looking at editor, so it may be slightly different.


Edit: Damn you, zen! Posted 10 seconds before me.
04-21-2007, 04:07 AM#5
Hsinker
It still doesnt seem to work.
Could i get a actually example?
04-21-2007, 04:29 AM#6
Zwan
you can use

"wait until unit has buff of type stunned[paused]" but if the unit dies to the spell it wont move the caster. It also has a minimum of a .10 second wait which is noticable.

probably best to just use a dummy ability for the move and a dummy unit for the stun.
04-21-2007, 06:20 AM#7
Hsinker
I removed the stun and instead of using blink as a base spell cause i cant seen to remove its target allowed not to be ground, i used finger of death: targetable and does damage but i've set the damage to 0 so the only damage dealt is that from the trigger.
Trigger:
Untitled Trigger 001
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Finger of Death (Archimonde)
Collapse Actions
Unit - Move (Triggering unit) instantly to (Position of (Targeted unit)), facing (Position of (Targeted unit))
Wait 0.00 seconds
Unit - Cause (Triggering unit) to damage (Targeted unit), dealing (((Real((Level of Finger of Death (Archimonde) for (Triggering unit)))) x 50.00) + 10000.00) damage of attack type Spells and damage type Normal
Again i think the mistake is the Move action but im not using anything from the base spell except for the target.
04-21-2007, 06:32 AM#8
Zwan
ya, forget what I said about blink, you need a targeted spell.

what you just posted looks ok, but you need to change (targeted unit) to (target unit of ability being cast). targeted unit refers units aquiring a target events. And you wont need the wait now that your not using stormbolt.
04-21-2007, 07:52 AM#9
blu_da_noob
Targeted Unit should be Target Unit of Ability Being Cast if I remember my GUI correctly.
04-21-2007, 10:44 AM#10
Hsinker
Yeah its working now :D