Cooldown on passive splash

obucke

Member
Reaction score
23
How do i make a passive splash spell that has a 5 sec cooldown on all lvls ?
5 sec to be precise :)
i tried something but its a complete mess so i wont bother u with it ...
Just help me plz :)
 

Exide

I am amazingly focused right now!
Reaction score
448
I guess you could remove the ability for 5 sec from the hero and replace it with a cooldown ability, or something. :p
 

Tukki

is Skeleton Pirate.
Reaction score
29
But then it would lock really awful. I suppose you could do something like this;

1) The unit attacks another unit..(duh), and you create your struct. Adding the unit to a group and using a timer to remove the unit from the group.

But; this only works if your ability is triggered.
 

obucke

Member
Reaction score
23
Unfortunately i dono shit about JASS ... so ... i need the GUI version if possible :(
OR :) if u could make me 1 in JASS it would be awsome :)
 

Nerfpl

New Member
Reaction score
53
"Cleaveing atack" in "neutral hostile - heroes" have cooldown field actually. you can test it out.
EDIT: Nvm dont works ;p

you can try something like


I think it will work good
Cooldown - boolean (false default)
Cleave_Level - integer
Wait 0.5 seconds - is to let unit attack b4 swaping cleave (you may want to change it to bigger/smaller value or more accurate)
Cleave Attack Fake - fake cleave with 0% splash, or even dummy ability to do nothing (changed icon to some inactive cleave)

Just let some pro look at it because i could skip something.
 

obucke

Member
Reaction score
23
K ill try that :) But 1 more thing, i need the spell to be MPI and im not sure if that 1 is ...

______________________________________________________________________
If you want to get smarter, you have to play a smarter opponent. Play me :)
Eternal Realms:
Eternal War of the Tribes
 

Tukki

is Skeleton Pirate.
Reaction score
29
You're right, his GUI trigger isn't mpi/mui etc.

You have a damage detection system in your map?

EDIT: But you can easily make it mpi, just make Cooldown an array and use PlayerId to refer to a slot in it.
 

Nerfpl

New Member
Reaction score
53
hehe :) i dont even know what you talk about (some MPI,MUI) ;p its working concept so ofc you modify it as you want ^^ i just know that something like "unit recive dmg" would be more accurate, it could remove that wait 0.5

Or seting this wait 0.5 to same vaule as "Combat - Attack X - Animation damage point" ( i think)
 
Y

y00

Guest
You could use a dummy variable, and reset it every 5 seconds, as in:

Events:
- unit is attacked
Conditions:
- attacking unit equivalent to X unit
- DummyVar equal to 0
Actions:
- <stuff triggering aoe damage - creation of dummy unit to cast spell like nova on attacked unit>
- Set DummyVar equal to 1
- wait 5 seconds
- Set DummyVar equal to 0

Of course you will also have to check whether the unit actually has the spell. If it is a passive ability, you can probably just add it into the conditions. If it is auto-cast, you will probably need seperate <activate> and <deactivate> triggers.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top