HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

[Help] channeled spell increase dmg on other spell

10-30-2008, 05:51 AM#1
jooster
im trying to get a spell that im channeling that lasts 10 seconds to increase dmg on another spell my hero has active.

first spell the triggering spell, its based off spell like drain life or aerial shackles.
once i begin channeling this specific spell on a unit. during the 10 seconds this spell is being channeled, for every second id like the dmg on immolation to go up a set amount. if the spell is cancled via the target moves out of range or it is interupted by either the triggering hero moves or is hexed, stunned, silenced ect ect the dmg amount stops adding up for the immolation spell. but i only want the increased damage to last for 20 seconds on the immolation or when the hero is killed for it to be reset back to the normal ammount. im all out of ideas on how to get it to work. any help is very much appriciated. thanks
10-30-2008, 08:03 AM#2
Limb_Smasher
You're going to have to resort to triggering it.

And by that I mean the spell turns into a dummy spell and you use triggers to do everything for you (deal spell damage, detect if a unit is in range, set the amount of damage, etc).

Sounds kind of complex, but I think it's doable with triggers. At least how I understand the spell.
10-31-2008, 02:40 AM#3
Zerzax
You're going to need structs to store data and the involved units to do it well, as well as a timer and some detection triggers in case the unit stops channeling. It's definitely doable.
10-31-2008, 03:25 AM#4
Malf
I don't think he'd find that helpful if he doesn't even know what those are.
10-31-2008, 04:51 AM#5
jooster
these are the variables for the level detection
Trigger:
touch of flames 1
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Touch of Flames
(Level of Touch of Flames for (Casting unit)) Equal to 1
Collapse Actions
Set touch_of_flames = 0
Wait 1.00 seconds
Set touch_of_flames = 1
Wait 1.00 seconds
Set touch_of_flames = 2
Wait 1.00 seconds
Set touch_of_flames = 3
Wait 1.00 seconds
Set touch_of_flames = 4
Wait 1.00 seconds
Set touch_of_flames = 5
Wait 1.00 seconds
Set touch_of_flames = 6
Wait 1.00 seconds
Set touch_of_flames = 7
Wait 1.00 seconds
Set touch_of_flames = 8
Wait 1.00 seconds
Set touch_of_flames = 9
Wait 1.00 seconds
Set touch_of_flames = 10

Trigger:
touch of flames 2
Collapse Events
Unit - A unit Begins channeling an ability
Collapse Conditions
(Ability being cast) Equal to Touch of Flames
(Level of Touch of Flames for (Casting unit)) Equal to 2
Collapse Actions
Set touch_of_flames = 0
Wait 1.00 seconds
Set touch_of_flames = 11
Wait 1.00 seconds
Set touch_of_flames = 12
Wait 1.00 seconds
Set touch_of_flames = 13
Wait 1.00 seconds
Set touch_of_flames = 14
Wait 1.00 seconds
Set touch_of_flames = 15
Wait 1.00 seconds
Set touch_of_flames = 16
Wait 1.00 seconds
Set touch_of_flames = 17
Wait 1.00 seconds
Set touch_of_flames = 18
Wait 1.00 seconds
Set touch_of_flames = 19
Wait 1.00 seconds
Set touch_of_flames = 20


this trigger removes the primary immolation and returns it after 20 seconds
Trigger:
set immolation
Collapse Events
Unit - A unit Finishes casting an ability
Collapse Conditions
(Ability being cast) Equal to Touch of Flames
Collapse Actions
Unit - Remove Immolation (custom hero) from (Triggering unit)
Unit - Add Immolation (secondary) to (Triggering unit)
Unit - Set level of Immolation (secondary) for (Triggering unit) to touch_of_flames
Unit - Order (Triggering unit) to Night Elf Demon Hunter - Activate Immolation
Wait 20.00 seconds
Unit - Remove Immolation (secondary) from (Triggering unit)
Unit - Add Immolation (custom hero) to (Triggering unit)
Unit - Set level of Immolation (custom hero) for (Triggering unit) to immolation
Unit - Order (Triggering unit) to Night Elf Demon Hunter - Activate Immolation

Trigger:
immolation
Collapse Events
Unit - A unit Learns a skill
Collapse Conditions
(Learned Hero Skill) Equal to Immolation (custom hero)
Collapse Actions
Set immolation = (immolation + 1)
Unit - Order (Triggering unit) to Night Elf Demon Hunter - Activate Immolation


i ran into a slight problem, i am unable to run multiple levels of immolation off from the permenate immolation spell so i had to improvise and use the demon hunters immolation using a trigger to activate it so it "LOOKED" like it is a passive ability.

what i was TRYING to accomplish was that the channeled spell increased the damage of the primary immolation spell. i could not figure out another way of doing it without using a secondary immolation spell and calling the variables to remove the primary immolation and replace it for 20 seconds with the secondary spell.

so this "works" just not the way i wanted it to. i guess. if anyone could figure out a better way to do it. please feel free!
10-31-2008, 07:49 AM#6
Limb_Smasher
Just an optimization thing:
you can combine the two "Unit - A unit Begins channeling an ability" triggers into 1.
And you could use a loop to just decrease the length.

All of which aren't necessary; they just "clean" it up.
10-31-2008, 02:25 PM#7
Anitarf
Oh god...

I suggest you trigger the immolation ability. Personally I find your tools dreadfully inadequate but you just might be able to pull this through with GUI.
10-31-2008, 09:02 PM#8
jooster
Quote:
Originally Posted by Anitarf
Oh god...

I suggest you trigger the immolation ability. Personally I find your tools dreadfully inadequate but you just might be able to pull this through with GUI.

could u possible go more into depth by which u mean. i have only been trigger editing for about a week or so. so i know im not the greatest. but i do find myself catching on quite fast.
11-03-2008, 06:31 PM#9
Anitarf
Well, you're using GUI and it's been so long since I have used it that my reaction might have been a bit exaggerated. This spell is definitely doable. My suggestion is to trigger the immolation ability; you'd need to use a periodic trigger so you'd have to be careful about memory leaks but otherwise it's nothing GUI couldn't do, especially if you don't need it to be MUI. Once the immolation is triggered you can easily customize the amount of damage it deals.