|
|
#1 |
Forum Staff
Join Date: Sep 2009
Location: Moscow, Russia
Posts: 8,391
|
|
|
|
#2 |
Member
Join Date: Apr 2010
Posts: 4,688
|
I don't know a thing about coding but I've seen skills in other maps with shared cooldown so I think it's possible. I can't think of a specific map though since it's been years since i've touched them.
Also the fortification ability between the circles shares cd right? (haven't played dota1 in a while)
__________________
![]() Bronze scum unite! \o/ |
|
|
#3 |
Member
|
^I believe the fortification part is true.
Other than that, I honestly can't think of anything that works on the same line; not in DotA and not in any other game~
__________________
|
|
|
#4 |
Member
Join Date: Jun 2010
Location: Australia
Posts: 453
|
The only proper way of making skills go into cd is to cast them.
Just make the skills dummy abilities (they themselves do nothing when cast, but then you have code that detects when they are cast and this code does everything you want). When one of the abilities is cast, immediately cast the other ability, using a bool to prevent the second ability's code from executing. Also, this belongs in the programming forum. e: fixed :P
__________________
|
| Last edited by Glowackos; 03-20-2012 at 09:21 AM. | |
|
|
#5 | |
Member
Join Date: Sep 2009
Location: Chennai/Pune, India
Posts: 1,403
|
Quote:
So, the second method seems to be the only one, but I see some problems. First of all, the cast point of the unit should be 0, otherwise the player can cancel the ability from being cast (as well as stuns can). Also, it will cause problems if the unit gets silenced after casting first ability (eg. Silencer's aura). |
|
|
|
#6 | ||
Member
Join Date: Jan 2010
Location: Germany
Posts: 5,044
|
Quote:
Quote:
Also, for mana cost, just give the unit the needed mana to cast the second ability. Shouldn't be a problem.
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the week:
Jass:
function Func0243 takes nothing returns nothing
call Func0242()
endfunction
|
||
|
|
#7 |
Forum Staff
|
Moved to Programming.
__________________
|
|
|
#8 |
Banned
Join Date: Jul 2009
Posts: 5,654
|
Disable the ability for the duration.
If the abilities are to have different cooldowns, you need to specify the "disable" time for each ability cast. |
|
|
#9 |
Member
|
Or use a dummy ability that gets "cast" and shown when the other gets into effect?
__________________
Click here for the first orange video tnx ZdeafZ- tnx turtlemonster- BIG tnx to ADozeNFurieS- tnx to lukedeadwalker- |
|
|
#10 |
Member
Join Date: May 2010
Location: Croatia
Posts: 3,618
|
to run into cooldown - uncodable
to disable for a period of time -codable (jsut like doom's first->it gets disabled when it is cast untill devoured unit is dead)
__________________
|
|
|
#11 |
Member
Join Date: Oct 2009
Location: Where all life began, inside of and all around you.
Posts: 41
|
To be exact, this is uncodable ONLY on JASS/vJASS.Generally, it is codable otherwise WoW wouldn't have it.
__________________
I am reborn from the ashes...of the past.
|
|
|
#12 |
Member
Join Date: Jan 2010
Location: Germany
Posts: 5,044
|
^And how does that help? We don't want to code it in WoW, but in DotA/wc3.
__________________
I might edit my p0sts frequently and rapidly after posting.
DotA code of the week:
Jass:
function Func0243 takes nothing returns nothing
call Func0242()
endfunction
|
|
|
#13 |
Member
Join Date: Jul 2009
Location: Everywhere
Posts: 997
|
No, it's not codeable
|
|
|
#14 | |
Member
Join Date: May 2010
Location: Croatia
Posts: 3,618
|
Quote:
![]() ![]() ![]()
__________________
|
|