| 04-23-2004, 06:55 PM | #1 | |
Quote:
So to detect cool down I have to -order the unit in question to cast the spell in question -check return value of the order native -if false then it is coolingdown if true then it isent ?? Is there anyway to reapply a cooldown to a spell? When a unit is replaced with a unit of the same type its cooldown isent saved. When a unit casts a spell on another unit of the same type and that spell causes the unit its being cast on to be replaced by a unit of the same type the cooldown isent saved so these two units can continue to cast on eachother and avoid cooldown. Ie unit A casts a spell on enemy unit C and then unit B casts a spll on unit A so now unit A no longer has a cool down and the process can be repeated infinitly (mana isent involved) So how can i fix this problem? Should I make the spell cost mana and then detect when a spell is cast and then wait according to the spell being cast then give that unit mana back? There doesent seem to be any quick fixs, atm just removing the spell and giving it back after the cooldown would have finished seems to be the best solution, the only issue with this is the spells tend to jump around due to adding/removing so its annoying. if anyone has more solutions i'd love to hear them, thx! ^_^ |
| 04-25-2004, 01:07 AM | #2 |
[bump] no one knows... :( i thought people here were smart wheres the guy who made the item system? can anyone tell me how to solv my problem? ^_^ [/bump] |
| 04-25-2004, 01:10 AM | #3 |
Theres no way currently. We are all pretty bummed about it, but currently I'm ignoring the cooldown junk and just working heavily at finishing the drag and drop++ project. (By finish I mean add new stuff and get rid of bugs) |
| 04-25-2004, 04:55 AM | #4 | |
Quote:
whats this drag and drop++ project? a summery of what it does would be nice. thx! ^_^ |
| 04-25-2004, 04:45 PM | #5 |
There's no way to check the current state of a cooldown (get seconds), or set the state. You can try using chaos instead of replaceunit, maybe it preserves the cooldown. |
| 04-25-2004, 05:44 PM | #6 |
http://www.wc3campaigns.com/showthread.php?t=53832 Its an object oriented approach to adding new interfaces to warcraft III. Interfaces added include: Hero Object (my handler of everything) SpellBook Object (A dynamic spellbook that adds abilities to your skill card) Drag and Drop BackPack (A size 12 backpack that you drag items in and out of) Attributer (launches each time you level allowing you to manually chose stats) Scroll (An item that when used will add a spell to your spellbook). |
| 04-25-2004, 08:51 PM | #7 | |
Quote:
what do you mean use chaos instead of replaceunit? ChaosBJ? ^_^ |
| 04-25-2004, 09:01 PM | #8 |
Chaos is an "ability" which is given to Steam Tanks upon researching barrage. Chaos replaces the steam tank with a steam tank that has a secondary attack. The barrage ability in fact doesn't do anything, and is just a front for Chaos. |
