• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Channeled Spell

Status
Not open for further replies.
Level 10
Joined
Mar 23, 2007
Messages
261
Well, i got to make a channeled spell, with a trigger. But i dont know what spell i should base it on. (It got to be a single target, not an AoE)
It is going to be something, that decreases the enemy's maximum HP over 5 seconds. After 15 seconds, its maximum HP is restored.:weekani:
 
Level 24
Joined
May 9, 2007
Messages
3,563
Are you making the spell triggerd. . . if so base of the spell "Channel" this will let you edit order strings, chanelling time and much other stuff which would not be otherwise possible.

If you want to make a normal skill life drain or mana drain should work fine.

Just giving a second opinion.


Tell me more about the spell
 
Level 7
Joined
Mar 16, 2008
Messages
348
Umm to reduce max hp gradually i think it must be triggered, anyways ye channel is the best base ability
 
Level 10
Joined
Mar 23, 2007
Messages
261
Are you making the spell triggerd. . . if so base of the spell "Channel" this will let you edit order strings, chanelling time and much other stuff which would not be otherwise possible.

If you want to make a normal skill life drain or mana drain should work fine.

Just giving a second opinion.


Tell me more about the spell

Well:
The hero channels for 5 seconds, decreases the target units maximum HP every second. After 15 seconds, its hp is restored.
Level 1: 30 HP per second
Level 2: 55 HP per second
Level 3: 80 HP per second
Level 4: 105 HP per second
(all spells in this map got 4 levels)
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Cant an item ability be made to give negative max HP.
Multiple levels(25)
Each second(starting from zero) a check must be made to see if the unit should die after the reduction(max Hp lower than the reduction, % current life before and after the decrease).
If the targeted unit will not die:
if level of item ability for the targeted unit is equal to 0 then add it to it endif
set the level of the item ability for targeted unit to (level of casted ability -1)*5 + Number of second.
else
If it dies, make casting unit damage the unit for something big.
endif
This can be done very efficiently with a loop and a wait. Or can be done a bit harder with timers and all the rest this would require.

Base the ability (the one that is actually going to appear in your unit/hero 's 'ability list', and going to be casted) on channel as everyone said.
But that will not be too easy for you. Just go in the object editor and try getting what each line is(google them if you cant get it from their names).
 
Level 12
Joined
Apr 27, 2008
Messages
1,228
Yeah :)

P.s. What I suggested has an instancability problem caused by setting the level of the ability so only one at a time(haven't tested it, maybe one at a time but not for the whole duration but only for the channeling).
In the object editor edit channel Data - options, check visible.
 
Level 7
Joined
Mar 16, 2008
Messages
348
its easy to make a trigger that reduces max hp, and there's no instanceability problem if you use jass.You don't need to use that system, you can even make it in GUI and multinstanceable.
 
Level 17
Joined
Apr 13, 2008
Messages
1,608
Go ahead. Make it. Post it. Tell me how much time it took.

OR

Use that damn system from Blade-dk which works perfectly well and it spares you from unnecessary future whining. Your call. I'm out.

By the way, if you think a little more you can make a 1000 level ability from 3 9-leveled ability. Just a hint.
:hint: :hint:
 
Status
Not open for further replies.
Top